Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert shp to geojson python

import geopandas as gpd

gdf = gpd.read_file('filename.shp')
json = gpd.GeoSeries([gdf.geometry.iloc[0]]).__geo_interface__
 
PREVIOUS NEXT
Tagged: #convert #shp #geojson #python
ADD COMMENT
Topic
Name
6+6 =