Geometry.Intersects

Intersects(Extent)

确定此几何体是否与指定范围相交。

public bool Intersects(Extent extent)
参数类型描述
范围范围该范围。

返回值

true 表示此几何与范围相交;false 表示否则。

异常

异常条件
ArgumentNullException参数为 null

另见


Intersects(IGeometry)

确定此几何体和指定几何体是否相交。

public bool Intersects(IGeometry other)
参数类型描述
其他IGeometry一个几何体。

返回值

true 表示此几何“空间相交”另一个几何;false 表示否则。

异常

异常条件
ArgumentNullException参数为 null
ArgumentException其中一个几何体无效,导致操作无法完成。
ArgumentExceptionSpatialReferenceSystem 的几何体空间参考系统不等价。您可以使用 SpatialReferenceSystemTransformation 将几何体转换为相同的空间参考系统。

备注

此方法等价于:

!this.Disjoint(other);

这是对Disjoint的否定。更多细节请参见Disjoint

另见