mapmaker.routing package

Submodules

Module contents

Networks are defined in terms of their topological connections and geometric structures and can be thought of as conduit networks through which individual wires are routed.

mapmaker.routing.expand_centreline_graph(graph: MultiGraph) Graph[source]
mapmaker.routing.collapse_centreline_graph(graph: Graph) Graph[source]
class mapmaker.routing.NetworkNode(full_id: str, intermediate: bool = False, map_feature: mapmaker.flatmap.feature.Feature | None = None)[source]

Bases: object

full_id: str
intermediate: bool = False
map_feature: Feature | None = None
feature_id: str
ftu_id: str | None
properties: dict[str, Any]
property centre: Point | None
property geometry
property radii: tuple[float, float] | None
set_properties_from_feature(feature: Feature | None)[source]
class mapmaker.routing.Network(flatmap: FlatMap, network: dict, properties_store: PropertiesStore | None = None)[source]

Bases: object

property id
check_features_on_map()[source]
has_feature(feature)[source]
create_geometry()[source]
route_graph_from_path(path: Path) tuple[networkx.classes.graph.Graph, networkx.classes.graph.Graph][source]
layout(route_graphs: Graph) dict[int, mapmaker.routing.routedpath.RoutedPath][source]