ArcEngine 改变线IPolyline的方向(小技巧)

private IPolyline ChangeDirection(IPolyline polyline)
{
IPointCollection pointCollection = polyline as IPointCollection;
IPointCollection newPC = newPolylineClass();
for (int i =pointCollection.PointCount - 1; i >= 0; i--)
     {
      newPC.AddPoint(pointCollection.get_Point(i), mis, mis);
     }
IPolyline newPolyline = newPC as IPolyline;
}

转载自:https://blog.csdn.net/kone0611/article/details/78530182

You may also like...