I created a circle using geopandas and it returned a shapely polygon:
POLYGON: ((...))
I want this same polygon as a geojson object. I ran acr
You can also use PyShp
import shapefile with shapefile.Reader("shapefile.shp") as shp: geojson_data = shp.__geo_interface__
or
geojson_data = shapefile.Reader("shapefile.shp").__geo_interface__
example usage:
>>> geojson_data["type"] 'MultiPolygon'