首页 > 其他 > 详细

关于在交叉点处打断线的问题总结(*待续)

时间:2015-06-11 10:54:15      阅读:387      评论:0      收藏:0      [点我收藏+]

问题:将相互交叉的线从交点处打断,并且需要得到所有两个交叉点间的线段(下图中的A)。

技术分享

解决思路:

(1)将所有的线进行拼接,成为一个IPolyline;

(2)使用ITopologicalOperator接口对线集合IPolyline进行在交点处的打断操作;

(3)为得到两个交叉点间的线段,需要将IPolyline转成IGeometryCollection,IGeometryCollection中即为所需的所有两个交叉点间的线段集合,在arcgis的在线帮助文档中有对Polyline 的相关介绍中可以知晓这一点:Use the IGeometryCollection interface to directly access its paths and the ISegmentCollection interface to directly access its segments.

解决方法:

关于在交叉点处打断线的问题总结(*待续)

原文:http://www.cnblogs.com/lettet/p/4568194.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!