cyang-kth/fmm

routable network download error

Fern-Parker opened this issue · 3 comments

When I download routable network from OSM, I get "CRSError: Invalid input to create CRS"****. Any help will be greatly appreciated!

微信图片1

微信图片_20220315210151

The problem seems to be an issue with fiona, try to check the version of osmnx

The version it worked with is " 0.15.0 "

cyang-kth/osm_mapmatching#13

Thank you. But, After changing to osmnx 0.15.0, I still encounter the same issue.

When I write like the following, it works well!

save the nodes and edges as separate ESRI shapefiles

with fiona.Env(OSR_WKT_FORMAT="WKT2_2018"):
gdf_nodes.to_file(filepath_nodes, encoding=encoding)
gdf_edges.to_file(filepath_edges, encoding=encoding)

Reference: geopandas/geopandas#1697 (comment)