首页 > 代码库 > ArcEngine 通过IRelationalOperator.Relation判断几何体相交
ArcEngine 通过IRelationalOperator.Relation判断几何体相交
IRelationalOperator 接口:
1. Provides access to members that determine if a certain spatial relationship exists between two geometries.
Members
Description | ||
---|---|---|
Contains | Indicates if this geometry contains the other geometry. 前者是否包含后者! | |
Crosses | Indicates if the two geometries intersect in a geometry of lesser dimension. | |
Disjoint | Indicates if the two geometries share no points in common. Negate this result to compute the Intersect relation. | |
Equals | Indicates if the two geometries are of the same type and define the same set of points in the plane. | |
Overlaps | Indicates if the intersection of the two geometries has the same dimension as one of the input geometries. 前者和后者是否有重叠!不包括包含关系! | |
Relation | Indicates if the defined relationship exists. | |
Touches | Indicates if the boundaries of the geometries intersect. | |
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判断几何体相交
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。