ArcEngine 复制要素Geometry时,产生 几何不能具有Z值 的异常

解决方法:http://forums.esri.com/Thread.asp?c=159&f=1707&t=275474

参考上述帖子。将Geometry中的Z值丢掉即可。

代码如下:

IFeatureBuffer pNewFeatureBuffer = pNewFtCls.CreateFeatureBuffer();
//要素属性复制
IGeometry pGeom = pOldFeature.Shape;
IZAware pZaware = pGeom as IZAware;
pZaware.DropZs();
pZaware.ZAware = false;
pNewFeatureBuffer.Shape = pGeom;

 

相关文章:

  • 2022-12-23
  • 2021-12-27
  • 2021-05-30
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
猜你喜欢
  • 2021-10-09
  • 2021-08-26
  • 2021-11-18
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
相关资源
相似解决方案