-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Value Error when downloading Data from OSM #13
Comments
I have tried on 2 different Machine and the same error , maybe I am doing something wrong as I am new to python? |
Your error seems to be related with fiona
It seems that some fields of the dataframe has value of tuple that cannot be saved by fiona. |
@cyang-kth |
Solved using an older version of the osmnx library |
Hi I face the same problem can you tell which version of osmnx should be used? |
the version it worked with is " 0.15.0 " |
Thank you. Now I face onother problem osmnx pulls the data from nominatim.openstreetmap.org and this service seems to be down. Does anyone know a different possibility? |
now it works! |
I am trying to use the code to download the routable data from osmnx it produce#
Error
(
File "import.py", line 32, in
save_graph_shapefile_directional(G, filepath='stockholm')
File "import.py", line 26, in save_graph_shapefile_directional
gdf_edges.to_file(filepath_edges, encoding=encoding)
File "/home/mustafa/.local/lib/python3.8/site-packages/geopandas/geodataframe.py", line 746, in to_file
_to_file(self, filename, driver, schema, index, **kwargs)
File "/home/mustafa/.local/lib/python3.8/site-packages/geopandas/io/file.py", line 257, in _to_file
colxn.writerecords(df.iterfeatures())
File "/home/mustafa/.local/lib/python3.8/site-packages/fiona/collection.py", line 361, in writerecords
self.session.writerecs(records, self)
File "fiona/ogrext.pyx", line 1291, in fiona.ogrext.WritingSession.writerecs
File "fiona/ogrext.pyx", line 466, in fiona.ogrext.OGRFeatureBuilder.build
ValueError: Invalid field type <class 'tuple'>
)
"code for error reproduction"
The text was updated successfully, but these errors were encountered: