IGeometry.Intersection

IGeometry.Intersection method

构建此几何体与指定几何体的交集。

public IGeometry Intersection(IGeometry other)
参数类型描述
其他IGeometry用于计算交集的几何体。

返回值

表示此几何体与参数交集的几何体。结果几何体包含同时存在于此几何体和参数中的点集。

异常

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

另见