MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual bool MgGeometry::Overlaps ( MgGeometry other) [virtual]

Given 2 geometries a and b, a.Overlaps(b) is true if and only if the dimension of the interior of a equals the dimension of the interior of b equals the dimension of the intersection of the interior of a and the interior of b and the intersection of a and b is neither a nor b.

Remarks:
A Point cannot overlap a Point, and a MultiPoint cannot overlap a Point but a MultiPoint can overlap a MultiPoint.

Illustration

c and d are MultiPoint geometries.

overlaps.png
.NET Syntax
virtual bool Overlaps(MgGeometry other);
Java Syntax
virtual boolean Overlaps(MgGeometry other);
PHP Syntax
virtual bool Overlaps(MgGeometry other);
Parameters:
other(MgGeometry) The MgGeometry to test against this one.
Returns:
True if this geometry spatially overlaps the other geometry, false otherwise.