cityImage.consolidate_edges#
- cityImage.consolidate_edges(edges_gdf, consolidated_nodes_gdf)[source]#
Consolidate edge geometries after node consolidation.
- Parameters:
nodes_gdf (geopandas.GeoDataFrame) – cityImage node table.
edges_gdf (geopandas.GeoDataFrame) – cityImage edge table.
consolidation_map (dict) – Mapping from original node IDs to consolidated node IDs.
- Returns:
Edge table with updated endpoints and geometries.
- Return type:
geopandas.GeoDataFrame
Notes
This helper preserves cityImage endpoint and identifier semantics while applying geometry consolidation. It is not a generic line-merge wrapper.