码迷,mamicode.com
首页 > 其他好文 > 详细

Polyline转Polygon

时间:2014-05-23 12:25:26      阅读:349      评论:0      收藏:0      [点我收藏+]

标签:class   c   a   int   get   cti   

IGeometry geo = feature.ShapeCopy;
IGeometryCollection pPolyline = geo as IGeometryCollection;

ISegmentCollection pRing;
IGeometryCollection pPolygon = new PolygonClass();
object ob = Type.Missing;
for (int i = 0; i < pPolyline.GeometryCount; i++)
{
pRing = new RingClass();
pRing.AddSegmentCollection(pPolyline.get_Geometry(i) as ISegmentCollection);
pPolygon.AddGeometry(pRing as IGeometry, ref ob, ref ob);
}

Polyline转Polygon,布布扣,bubuko.com

Polyline转Polygon

标签:class   c   a   int   get   cti   

原文地址:http://www.cnblogs.com/fatherZyl/p/3737326.html

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