GeometryIntersects Method (IGeometry)

Determines if this geometry and a specified geometry intersects.

Namespace:  Aspose.Gis.Geometries
Assembly:  Aspose.GIS (in Aspose.GIS.dll) Version: 20.3.0.0 (20.03)
Syntax
public bool Intersects(
	IGeometry other
)

Parameters

other
Type: Aspose.Gis.GeometriesIGeometry
A geometry.

Return Value

Type: Boolean
if this geometry "spatially intersects" another geometry. otherwise.

Implements

IGeometryIntersects(IGeometry)
Exceptions
ExceptionCondition
ArgumentNullExceptionArgument is .
ArgumentException One of the geometries is invalid in such way that operation can not be finished.
ArgumentExceptionSpatialReferenceSystem of geometries are not equivalent. You can use SpatialReferenceSystemTransformation in order to convert geometries to the same spatial reference system.
Remarks
This method is equivalent to:
!this.Disjoint(other);
This is the negation of Disjoint(IGeometry). See Disjoint(IGeometry) for more details.
See Also