here.content.hmc2.topology_geometry module
here.content.hmc2.topology_geometry module
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)
Bases: object
Topology node.
geometry: Point
indexer = ContentIndexer(partition='partition_id', identifier='node_id', refs=)
node_id: Identifier
partition_id: Partition
segment_ref: List[Ref]
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)
Bases: object
Topology segment.
end_node_ref: Ref
geometry: LineString
indexer = ContentIndexer(partition='partition_id', identifier='segment_id', refs=)
length: float
partition_id: Partition
segment_id: Identifier
start_node_ref: Ref
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)
Bases: SingleLayerBinding
Bindings for the HMC Topology Geometry.
classmethod object_types() Mapping[str, type]
Returns:
the types of features supported by this binding
classmethod parse_and_index(partition_id: str, msg: Message) ContentPartition
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
classmethod schema_hrn() List[str]
Returns:
the HRN of schema this binding can parse and index