码迷,mamicode.com
首页 > Windows程序 > 详细

ArcGis 创建含孔洞面要素 C#

时间:2019-09-13 18:04:08      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:sha   nbsp   interior   geometry   ext   ftp   ntc   style   geo   

 

 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#

标签:sha   nbsp   interior   geometry   ext   ftp   ntc   style   geo   

原文地址:https://www.cnblogs.com/yzhyingcool/p/11517050.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!