I am trying to export a geodatabase I created via the OMSNX package. ()
When I attempt to convert the file from a geodatabase to shapefile I get an error "ValueError: Invalid field type <class 'list'>". This is because the geodatabase has some formats that are not compatible with shapefiles as mentioned here under the spatial data section.
How do I convert the geodataframe to allow for an export as a shapefile? My code and attached error are below.
import geopandas as gpd
import osmnx as ox
import fiona as fi
print(fi.supported_drivers)
%matplotlib inline
ox.__version__
place = "Dickinson, Texas"
tags = {"building": True}
gdf = ox.geometries_from_place(place, tags)
gdf.shape
fig, ax = ox.plot_footprints(gdf, figsize=(8, 8))
gdf.shape
gdf.to_file('testgalvy.gpkg',driver='GPKG')