FutureWarning: '+init=<authority>:<code>' syntax is deprecated. '<authority>:<code>' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable/gotchas.html#axis-order-changes-in-proj-6 in_crs_string = _prepare_from_proj_string(in_crs_string)
This means you can't do things like network.edges.crs.to_epsg() (you just get None back). If you set the CRS on the edges manually with network.edges.set_crs(epsg=<epsg_code>) then to_epsg() does work.
I've experienced difficulty retrieving a CRS set with Network.set_crs when round tripping a network to disk as GPKG.
FutureWarning: '+init=<authority>:<code>' syntax is deprecated. '<authority>:<code>' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable/gotchas.html#axis-order-changes-in-proj-6 in_crs_string = _prepare_from_proj_string(in_crs_string)
This means you can't do things like
network.edges.crs.to_epsg()
(you just getNone
back). If you set the CRS on the edges manually withnetwork.edges.set_crs(epsg=<epsg_code>)
thento_epsg()
does work.I've experienced difficulty retrieving a CRS set with
Network.set_crs
when round tripping a network to disk as GPKG.See: https://pyproj4.github.io/pyproj/stable/gotchas.html#min-confidence
Suggest
Network.set_crs
simply delegates to geopandas to set the CRS of nodes and edges.