geojson shp esrijson 相互转换【附代码】

今天爱分享给大家带来geojson shp esrijson 相互转换【附代码】,希望能够帮助到大家啊。

geojson shp 通过geopandas 相互转换

import geopandas as gpd
# shp到geojson
data = gpd.read_file('data.shp')
data.to_file("data.json", driver='GeoJSON', encoding="utf-8")
# geojson到shp
data = gpd.read_file('data.json')
data.to_file('data.shp', driver='ESRI Shapefile', encoding='utf-8')

esrijson shp 通过arcmap的转换工具
tips:json文件格式要存为ASNI编码。 可通过记事本另存格式
不然通过工具json转shp会报错

原文链接:https://blog.itblood.com/1586.html,转载请注明出处。
0
特工17 V0.25.9 官方中文版[更新][PC+安卓][4.6G] [亚洲风SLG/中文/动态CG]
特工17 V0.25.9 官方中文版[更新][PC+安卓][4.6G] [亚洲风SLG/中文/动态CG]
3分钟前 有人购买 去瞅瞅看

站点公告

显示验证码
没有账号?注册  忘记密码?