geosnap.io.project_network

geosnap.io.project_network(network, output_crs=None, input_crs=4326)[source]

Reproject a pandana.Network object into another coordinate system.

Note this function does not change the legth of any network edges, but reprojects the x and y coordinates of the nodes (e.g. for precise snapping) between nodes and projected origin/destination data

Parameters:
networkpandana.Network

an instantiated pandana Network object

input_crsint, optional

the coordinate system used in the Network.node_df dataframe. Typically these data are collected in Lon/Lat, so the default 4326

output_crsint, str, or pyproj.crs.CRS, required

EPSG code or pyproj.crs.CRS object of the output coordinate system

Returns:
pandana.Network

an initialized pandana.Network with ‘x’ and y’ values represented by coordinates in the specified CRS