码迷,mamicode.com
首页 > 其他好文 > 详细

ArcEngine 通过IRelationalOperator.Relation判断几何体相交

时间:2014-12-10 14:07:19      阅读:1608      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   http   io   ar   color   os   sp   

  IRelationalOperator 接口

1. Provides access to members that determine if a certain spatial relationship exists between two geometries.

  Members

  Description
bubuko.com,布布扣 Contains Indicates if this geometry contains the other geometry.
前者是否包含后者!
bubuko.com,布布扣 Crosses Indicates if the two geometries intersect in a geometry of lesser dimension.
bubuko.com,布布扣 Disjoint Indicates if the two geometries share no points in common. Negate this result to compute the Intersect relation.
bubuko.com,布布扣 Equals Indicates if the two geometries are of the same type and define the same set of points in the plane.
bubuko.com,布布扣 Overlaps Indicates if the intersection of the two geometries has the same dimension as one of the input geometries.
前者和后者是否有重叠!不包括包含关系!
bubuko.com,布布扣 Relation Indicates if the defined relationship exists.
bubuko.com,布布扣 Touches Indicates if the boundaries of the geometries intersect.
bubuko.com,布布扣 Within Indicates if this geometry is contained (is within) another geometry.
前者是否在后者内部!

  

 

 

 

 

 

 

 

 

 

 

 

这边没有判断几何体相交的方法。

采用Relation来实现Intersects: RELATE(G1, G2, ‘T********‘)

1 string relationDescription = "RELATE(G1, G2, ‘T********‘)";
2 isIntersects = (track as IRelationalOperator).Relation(ele.Geometry, relationDescription);
3 if (isIntersects)
4 {
5 selectedcount++;
6 pGraphicsContainerSelect.SelectElement(ele);
7 }

 

ArcEngine 通过IRelationalOperator.Relation判断几何体相交

标签:des   style   blog   http   io   ar   color   os   sp   

原文地址:http://www.cnblogs.com/janehlp/p/4155151.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!