ArcGIS中Shapefile和Geodatabase坐标容差的问题

本文探讨了ArcGIS中Shapefile与Geodatabase坐标容差的区别。Shapefile不支持容差设置,而Geodatabase默认容差可能引入较大误差。文章提供了设置Geodatabase容差为0的方法。

转自原文 ArcGIS中Shapefile和Geodatabase坐标容差的问题

 

ArcGIS中,Shapefile文件是没有容差设置的,所以无论什么单位的坐标写入shapefile文件,都不存在容差问题。而在Geodatabase(gdb、mdb、sde)中,却有容差的问题。Geodatabase的默认的resolution为0.0001个单位,当单位为度的时候,0.0001度相当于11米左右,误差就相当的大,所以在写入Geodatabase坐标数据的时候,切记要把容差设置为0.

ISpatialReferenceFactory spatialReferenceFactory = new SpatialReferenceEnvironmentClass();
ISpatialReference spatialReference = spatialReferenceFactory.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_WGS1984);
ISpatialreferenceResolution srr=spatialReference as ISpatialReferenceResolution;
srr.set_XYResolution(true,0.0);

 

转载于:https://www.cnblogs.com/arxive/p/8182799.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值