zoukankan      html  css  js  c++  java
  • ArcEngine 通过IRelationalOperator.Relation判断几何体相交

      IRelationalOperator 接口

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

      Members

      Description
    Method Contains Indicates if this geometry contains the other geometry.
    前者是否包含后者!
    Method Crosses Indicates if the two geometries intersect in a geometry of lesser dimension.
    Method Disjoint Indicates if the two geometries share no points in common. Negate this result to compute the Intersect relation.
    Method Equals Indicates if the two geometries are of the same type and define the same set of points in the plane.
    Method Overlaps Indicates if the intersection of the two geometries has the same dimension as one of the input geometries.
    前者和后者是否有重叠!不包括包含关系!
    Method Relation Indicates if the defined relationship exists.
    Method Touches Indicates if the boundaries of the geometries intersect.
    Method 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 }
  • 相关阅读:
    阿里巴巴excel工具easyexcel 助你快速简单避免OOM
    IoC和AOP的理解
    WebSocket和kafka实现数据实时推送到前端
    Swagger使用指南
    转载:对于马老师对996的看法
    基础:新建个maven项目
    eclipse集成lombok
    多线程
    jar包

  • 原文地址:https://www.cnblogs.com/janehlp/p/4155151.html
Copyright © 2011-2022 走看看