获取要素的折点

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;
}

posted @ 2022-03-28 11:52  南山种豆8  阅读(29)  评论(0)    收藏  举报