cyang-kth / fmm

Fast map matching, an open source framework in C++
https://fmm-wiki.github.io/
Apache License 2.0
875 stars 205 forks source link

routable network download error #236

Open Fern-Parker opened 2 years ago

Fern-Parker commented 2 years ago

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

微信图片1 微信图片_20220315210151
cyang-kth commented 2 years ago

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

Fern-Parker commented 2 years ago

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

Fern-Parker commented 2 years ago

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