Overlaps

Returns TRUE only when two geometries of the same dimension intersect (polygon/polygon, linestring/linestring, multilinestring/multilinestring) and their intersection results in a geometry of the same dimension (e.g. polygon intersects with a polygon, and the intersection results in a polygon).

 

JavaScript

 

Overlaps(

       otherGeometry)

 

C#

 

bool Overlaps(

       IGeometry otherGeometry)

 

C++

 

HRESULT Overlaps(

       IGeometry* otherGeometry,

       VARIANT_BOOL* pVal)

Parameters

otherGeometry

An IGeometry representing the geometry being checked for overlap with the selected geometry.

Return Value

pVal

Returns TRUE if the two geometries intersect.

Exceptions

See:  HRESULT Return Values for a list of possible values returned by the HRESULT.