cityImage.fix_network_topology#
- cityImage.fix_network_topology(nodes_gdf, edges_gdf)[source]#
Fix the network topology by splitting intersecting edges and adding fixed edges to the network. This function considers as segments to be fixed only segments that are actually fully intersecting, thus sharing coordinates, excluding their from and to vertices coordinates, but withouth actually generating, in the given GeoDataFrame, the right number of features.
- Parameters:
nodes_gdf (Point GeoDataFrame) – The nodes (junctions) GeoDataFrame.
edges_gdf (LineString GeoDataFrame) – The street segments GeoDataFrame.
- Returns:
The updated edges GeoDataFrame.
- Return type:
LineString GeoDataFrame