cityImage.correct_edges#
- cityImage.correct_edges(nodes_gdf, edges_gdf)[source]#
The function adjusts the edges LineString coordinates consistently with their relative u and v nodes’ coordinates. It might be necessary to run the function after having cleaned the network.
- Parameters:
nodes_gdf (Point GeoDataFrame) – The nodes (junctions) GeoDataFrame.
edges_gdf (LineString GeoDataFrame) – The street segments GeoDataFrame.
- Returns:
edges_gdf – The updated street segments GeoDataFrame.
- Return type:
LineString GeoDataFrame