here.content.hmc2.topology_geometry module — HERE Data SDK for Python documentation
- Last UpdatedJun 18, 2025
- 2 minute read
Bindings for the HMC Topology Geometry.
- class here.content.hmc2.topology_geometry.Node(partition_id: Partition, node_id: Identifier, segment_ref: List[Ref], geometry: Point, z_level: int)[source]#
Bases:
object
Topology node.
- geometry: Point#
- indexer = ContentIndexer(partition='partition_id', identifier='node_id', refs={})#
- node_id: Identifier#
- partition_id: Partition#
- z_level: int#
- class here.content.hmc2.topology_geometry.Segment(partition_id: Partition, segment_id: Identifier, start_node_ref: Ref, end_node_ref: Ref, geometry: LineString, z_level: List[int], length: float)[source]#
Bases:
object
Topology segment.
- geometry: LineString#
- indexer = ContentIndexer(partition='partition_id', identifier='segment_id', refs={})#
- length: float#
- partition_id: Partition#
- segment_id: Identifier#
- z_level: List[int]#
- class here.content.hmc2.topology_geometry.TopologyGeometry(content: Content, layer_id: str, adapter: Adapter | None = None, layer_type: LayerType | None = None)[source]#
Bases:
SingleLayerBinding
Bindings for the HMC Topology Geometry.
- classmethod object_types() Mapping[str, type] [source]#
- Returns:
the types of features supported by this binding
- classmethod parse_and_index(partition_id: str, msg: Message) ContentPartition [source]#
Parse and index decoded message.
- Parameters:
partition_id – identifier of the partition
msg – decoded content from the layer, in the form of a Protobuf message
- Returns:
the content of a partition parsed and indexed in its own data structure