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);

 

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2021-12-05
  • 2021-08-19
  • 2021-11-01
  • 2022-01-31
  • 2022-03-05
猜你喜欢
  • 2021-12-13
  • 2021-09-27
  • 2022-12-23
  • 2021-12-14
  • 2021-11-17
  • 2022-01-07
相关资源
相似解决方案