cityImage.network_from_file#

cityImage.network_from_file(input_path, crs, *, dict_columns=None, other_columns=None)[source]#

Load line geometries from file and convert them to cityImage network schema.

Parameters:
  • input_path (str) – Path to a vector file readable by GeoPandas.

  • crs (Any) – Target CRS for output nodes and edges.

  • dict_columns (Mapping[str, str | None] | None) – Mapping from cityImage edge columns to source columns.

  • other_columns (Sequence[str] | None) – Additional source columns to preserve on the output edges.

Returns:

Nodes and edges in cityImage schema.

Return type:

tuple[GeoDataFrame, GeoDataFrame]