I have multiple shape files which are publicly available for UK region.
i have loaded these shape files to postgreSQL using postGIS and the geometry (with multipolygons) of the shapes are captured.
now im pulling these tables from postGIS to Dash using the query
df = gpd.GeoDataFrame.from_postgis(query, connection)
the type of my output df is geodataframe
however im not able to convert this data into a geojson to plot it on dash leaflet map
this is the structure of my table pulled from postgres to dash
the data is normalized table
i want a generic solution to convert all tables to geojsons so its applicable for other shape files too
pandas-geojson module is not supported in my current dash environment
harsha vardhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.