cityImage.remove_disconnected_islands#

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

Remove disconnected islands from a graph.

Parameters:#

nodes_gdf: Point GeoDataFrame

The nodes (junctions) GeoDataFrame.

edges_gdf: LineString GeoDataFrame

The street segments GeoDataFrame.

nodeID: str

The name of the field containing the nodeIDs.

returns:

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

rtype:

tuple of GeoDataFrames