ArcGis 创建含孔洞面要素 C#

Posted yzhyingcool

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ArcGis 创建含孔洞面要素 C#相关的知识,希望对你有一定的参考价值。

 

 1             IGeometryCollection geometryCollection = new PolygonClass();
 2             IPointCollection pointCollection_ExteriorRing = new RingClass();
 3             pointCollection_ExteriorRing.AddPoint(upperLfetPoint);
 4             pointCollection_ExteriorRing.AddPoint(upperRightPoint);
 5             pointCollection_ExteriorRing.AddPoint(lowerRightPoint);
 6             pointCollection_ExteriorRing.AddPoint(lowerLeftPoint);
 7             IRing ring_Exterior = pointCollection_ExteriorRing as IRing;
 8             ring_Exterior.Close();
 9             geometryCollection.AddGeometry(ring_Exterior as IGeometry);
10 
11             IPointCollection pointCollection_InteriorRing = new RingClass();
12             pointCollection_InteriorRing.AddPoint(quadriCorners.UpperLeft);
13             pointCollection_InteriorRing.AddPoint(quadriCorners.UpperRight);
14             pointCollection_InteriorRing.AddPoint(quadriCorners.LowerRight);
15             pointCollection_InteriorRing.AddPoint(quadriCorners.LowerLeft);
16             IRing ring_Interior = pointCollection_InteriorRing as IRing;
17             ring_Interior.Close();
18             geometryCollection.AddGeometry(ring_Interior as IGeometry);
19 
20 
21             IPolygon polygon = geometryCollection as IPolygon;
22             IFeature featureBack = featureClass.CreateFeature();
23             featureBack.Shape = polygon;
24             featureBack.Store();    

 

以上是关于ArcGis 创建含孔洞面要素 C#的主要内容,如果未能解决你的问题,请参考以下文章

ArcGis面要素空间连接,取相交面积最大者 C#

ArcGIS入门教程(6)——要素高级编辑

老师,您好,ArcGIS有两个面图层,有一部分要素相交,请问怎么提取出不相交的要素,保留相交的要素呢?

arcgis中如何将点要素转化成线要素

高分求教arcgis发布在线编辑要素服务成功后无法编辑要素的问题

arcgis要素转面一直没反应