cityImage.fix_dead_ends#
- cityImage.fix_dead_ends(nodes_gdf, edges_gdf)[source]#
The function removes dead-ends. In other words, it eliminates nodes from where only one segment originates, and the relative segment.
- Parameters:
nodes_gdf (Point GeoDataFrame) – The nodes (junctions) GeoDataFrame.
edges_gdf (LineString GeoDataFrame) – The street segments GeoDataFrame
- Returns:
nodes_gdf, edges_gdf – The cleaned junctions and street segments GeoDataFrames.
- Return type:
tuple of GeoDataFrames