true if geometry1 overlaps geometry2.
public static bool Overlaps(this Geometry geometry1, Geometry geometry2)
The first geometry to calculate intersection with.
The second geometry to calculate intersection with.
This method is one of several that determines the spatial relationship between two geometries. If the spatial relationship exists between the two input geometries then true is returned. If the spatial relationship does not exist between the two input geometries then false is returned. The spatial relationship test used by this method is based on the Dimensionally Extended 9 Intersection Model (DE-9IM) developed Clementini, et al., and is discussed further in the web pages: DE-9IM and Understanding spatial relations.
The GeometryEngine.Overlaps Method returns true if the two geometries have the same dimension and when their intersection set results in a geometry of the same dimension. If the resultant geometry from the operation is one or more dimension(s) less than the input geometries then method returns false. For example: two input polygons must return a polygon to overlap. If two polygons cross each other at exactly one point then no overlap has occurred because only one dimension was returned. The following is a visual example of when this method returns true:
Supports true curves.
Platforms and versions
|.NET Standard 2.0||100.3 - 200.1|
|.NET 6.0||100.13 - 200.1|
|.NET 6.0 Windows||100.13 - 200.1|
|.NET 6.0 Android||200.0 - 200.1|
|.NET 6.0 iOS||200.0 - 200.1|
|.NET Framework||100.0 - 200.1|
|.NET 5||100.10 - 100.12|
|.NET Core 3.1||100.7 - 100.12|
|Android||100.0 - 100.15|
|iOS||100.0 - 100.15|
|UWP||100.0 - 200.1|