cityImage.simplify_same_vertexes_edges#
- cityImage.simplify_same_vertexes_edges(edges_gdf, preserve_direction)[source]#
This function is used to simplify edges that have the same start and end point (i.e. ‘u’ and ‘v’ values) in the edges_gdf GeoDataFrame. It removes duplicate edges that have similar geometry, keeping only the one with the longest length if one of them is 10% longer of the other. Otherwise generates a center line
- Parameters:
edges_gdf (LineString GeoDataFrame) – The street segments GeoDataFrame.
- Returns:
edges_gdf – The clean street segments GeoDataFrames.
- Return type:
LineString GeoDataFrame