📜  将 shp 转换为 geojson python - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:33.529000             🧑  作者: Mango

代码示例1
import geopandas as gpd

gdf = gpd.read_file('filename.shp')
json = gpd.GeoSeries([gdf.geometry.iloc[0]]).__geo_interface__