Answers for "convert shp to geojson python"

1

convert shp to geojson python

import geopandas as gpd

gdf = gpd.read_file('filename.shp')
json = gpd.GeoSeries([gdf.geometry.iloc[0]]).__geo_interface__
Posted by: Guest on March-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language