Geometry到Polyline/Polygon的转换--转载

Posted 陈荷西

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Geometry到Polyline/Polygon的转换--转载相关的知识,希望对你有一定的参考价值。

转自:https://blog.csdn.net/freewaywalker/article/details/7694215

在ArcGIS Engine中,实现Geometry到Polyline/Polygon的转换:

  1. Geometry到Polyline的转换, Geometry类型可为以下几种:
    1. Polyline, 直接返回;
    2. Envelope, 将其中的四个端点和用于封闭的第一个端点, 加入Polyline QI后的IPointCollection;
    3. Line, CircularArc, EllipticArc, 将它们作为ISegment, 加入Polyline QI后的ISegmentCollection;
    4.  Polygon,  将它作为ISegmentCollection, 加入Polyline QI后的ISegmentCollection;
  2. Geometry到Polygon的转换, Geometry类型可为以下几种:
    1. Polygon, 直接返回;
    2. Envelope, 将其中的四个端点和用于封闭的第一个端点, 加入Polygoon QI后的IPointCollection, 最后调用IPolygon.Close();
    3. CircularArc, EllipticArc, 将它们作为ISegment, 加入Polyline QI后的ISegmentCollection, 最后调用IPolygon.Close();
    4.  Polyline , 将它作为ISegmentCollection, 加入Polygon QI后的ISegmentCollection, 最后调用IPolygon.Close();

以上是关于Geometry到Polyline/Polygon的转换--转载的主要内容,如果未能解决你的问题,请参考以下文章