fmm icon indicating copy to clipboard operation
fmm copied to clipboard

routable network download error

Open Fern-Parker opened this issue 2 years ago • 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

Fern-Parker avatar Mar 15 '22 13:03 Fern-Parker

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 "

https://github.com/cyang-kth/osm_mapmatching/issues/13

cyang-kth avatar Mar 16 '22 02:03 cyang-kth

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

Fern-Parker avatar Mar 16 '22 13:03 Fern-Parker

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: https://github.com/geopandas/geopandas/issues/1697#issuecomment-878705571

Fern-Parker avatar Mar 16 '22 14:03 Fern-Parker