cityImage.remove_disconnected_islands#

cityImage.remove_disconnected_islands(nodes_gdf, edges_gdf)[source]#

Remove disconnected islands from a graph.

Parameters:#

nodes_gdf: Point GeoDataFrame

The nodes (junctions) GeoDataFrame.

edges_gdf: LineString GeoDataFrame

The street segments GeoDataFrame.

returns:

nodes_gdf, edges_gdf – The updated junctions and street segments GeoDataFrame.

rtype:

tuple of GeoDataFrames