c# arcgis IRing与Ipolygon转换

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/Prince999999/article/details/100209630
       public static IGeometry  CreatePolygonfromRing(IRing ExRing)

         {

             ISegmentCollection  SegCol= ExRing as ISegmentCollection;

             IPolygon  PPolygon =new PolygonClass();

              ISegmentCollection newSegCol = PPolygon as ISegmentCollection;

             newSegCol.AddSegmentCollection(SegCol);

             return PPolygon as IGeometry;

         }

猜你喜欢

转载自blog.csdn.net/Prince999999/article/details/100209630