cityImage.merge_pseudo_edges#
- cityImage.merge_pseudo_edges(first_edge, second_edge, nodeID, nodes_gdf, edges_gdf)[source]#
Merge pseudo-edges by updating node and edge information in the corresponding GeoDataFrames.
- Parameters:
first_edge (Series) – The first pseudo-edge to be merged.
second_edge (Series) – The second pseudo-edge to be merged.
nodeID (int) – The nodeID of the node where the pseudo-edges meet.
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 GeoDataFrames.
- Return type:
tuple of GeoDataFrames