cityImage.fix_self_loops#
- cityImage.fix_self_loops(nodes_gdf, edges_gdf)[source]#
Fix the network topology by removing (fake) self-loops and adding fixed edges.
- 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