cityImage.network_from_lines#
- cityImage.network_from_lines(edges_gdf, crs, *, dict_columns=None, other_columns=None)[source]#
Build cityImage nodes/edges from a line GeoDataFrame.
This replaces the old
get_network_fromGDFroute without owning file IO or OSM download. Load files withgeopandas.read_fileand download OSM networks with OSMnx, then pass the resulting line GeoDataFrame here when endpoint-derived node construction is actually needed.- Return type:
tuple[GeoDataFrame,GeoDataFrame]