ArcGISは穴のC#を含むポリゴンフィーチャを作成します

 

1              IGeometryCollection GEOMETRYCOLLECTIONは= 新しいPolygonClass()。
2              IPointCollection pointCollection_ExteriorRing = 新しい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 としてIRing。
8              ring_Exterior.Close()。
9             geometryCollection.AddGeometry(ring_Exterior としてIGeometry)。
10  
11              IPointCollection pointCollection_InteriorRing = 新しい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 としてIRing。
17             ring_Interior.Close();
18              geometryCollection.AddGeometry(ring_Interior としてIGeometry)。
19  
20  
21              IPolygonポリゴン= GEOMETRYCOLLECTION としてIPolygon。
22              のiFeature featureBack = featureClass.CreateFeature()。
23              featureBack.Shape = ポリゴン。
24              featureBack.Store()。    

 

おすすめ

転載: www.cnblogs.com/yzhyingcool/p/11517050.html