
string strShpFullName = @"G:\学习资料\ArcGIS空间数据\ATShp\Boundary\China_Boundary.shp"
//注册Ogr
Ogr.RegisterAll()
OSGeo.GDAL.Gdal.SetConfigOption("GDAL_FILENAME_IS_UTF8", "NO")
//读取字段属性值时设置,否则乎渣有中文岁闷悄乱码
OSGeo.GDAL.Gdal.SetConfigOption("SHAPE_ENCODING", "罩核NO")
DataSource ds = Ogr.Open(strShpFullName, 0)
if (ds == null)
1,安装shpjs 并引用
cnpm install shpjs --s
import shp from "毁迟卖shpjs"
2,使用elementui控件旦做上传纤逗shp.zip
3,解析的数据格式
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)