'Convert geopandas.geodataframe to geojson
I am trying to save a geopandas.geodataframe in geojson format. but i have an error and i don't know where it comes from and how to solve it. here is the code and the error :
Thanks in advance for your help.
batiments = ox.geometries_from_place(saint_denis, tags={'building':['office',
'university', 'stadium',
'civic']})
routes = ox.geometries_from_place(saint_denis, tags={'highway':['primary',
'secondary']})
#export to geojson
batiments.to_file('dataframe.geojson', driver='GeoJSON')
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

