Geometry.CoveredBy

Geometry.CoveredBy method

Determines whether this geometry is covered by a specified geometry.

public bool CoveredBy(IGeometry other)
ParameterTypeDescription
otherIGeometryA geometry.

Return Value

true if this geometry is “spatially covered by” another geometry. false otherwise.

Exceptions

exceptioncondition
ArgumentNullExceptionArgument is null.
ArgumentExceptionOne 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 tests whether one geometry is covered by another in terms of DE-9IM intersection matrix. This method is equivalent to:

other.Covers(this);

See Also