获取要素的折点
作者:互联网
public static List<IPoint> GetPointsFromFeature(IGeometry geometry)
{
//IPolygon pPolygon = new PolylineClass();
List<IPoint> li = new List<IPoint>();
if (geometry != null)
{
IPointCollection pPointCollection = geometry as IPointCollection;
for (int i = 0; i < pPointCollection.PointCount; i++)
{
li.Add(pPointCollection.get_Point(i));
}
}
return li;
}
标签:要素,geometry,IPointCollection,List,li,获取,折点,new,pPointCollection 来源: https://www.cnblogs.com/wzyong/p/16066457.html