python 里面 GeoJson 和 shp 文件互转
# shp to GeoJsonimport geopandas as gpddata = gpd.read_file('中国省级区域20200720.shp')data.to_file("中国省级区域20200720.json", driver='GeoJSON', encoding="utf-8")# GeoJson to shpdata = gpd.read_file('中国省级区域20200720.json')data.to_file('中国省级区