Geometry.Intersects
Intersects(Extent)
确定此几何体是否与指定范围相交。
public bool Intersects(Extent extent)
| 参数 | 类型 | 描述 |
|---|---|---|
| 范围 | 范围 | 该范围。 |
返回值
true 表示此几何与范围相交;false 表示否则。
异常
| 异常 | 条件 |
|---|---|
| ArgumentNullException | 参数为 null。 |
另见
- method Intersects
- class Extent
- class Geometry
- namespace Aspose.Gis.Geometries
- assembly Aspose.GIS
Intersects(IGeometry)
确定此几何体和指定几何体是否相交。
public bool Intersects(IGeometry other)
| 参数 | 类型 | 描述 |
|---|---|---|
| 其他 | IGeometry | 一个几何体。 |
返回值
true 表示此几何“空间相交”另一个几何;false 表示否则。
异常
| 异常 | 条件 |
|---|---|
| ArgumentNullException | 参数为 null。 |
| ArgumentException | 其中一个几何体无效,导致操作无法完成。 |
| ArgumentException | SpatialReferenceSystem 的几何体空间参考系统不等价。您可以使用 SpatialReferenceSystemTransformation 将几何体转换为相同的空间参考系统。 |
备注
此方法等价于:
!this.Disjoint(other);
这是对Disjoint的否定。更多细节请参见Disjoint。
另见
- interface IGeometry
- class Geometry
- namespace Aspose.Gis.Geometries
- assembly Aspose.GIS