Show / Hide Table of Contents

Method Disjoint

Disjoint(Geometry, Geometry)

Returns true if geometry1 is not within geometry2.

Declaration
public static bool Disjoint(Geometry geometry1, Geometry geometry2)
Parameters
Type Name Description
Geometry geometry1

The first geometry to calculate intersection with.

Geometry geometry2

The second geometry to calculate intersection with.

Returns
Type Description
Boolean

true if the geometry1 is disjoint to geometry2.

Remarks

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.Disjoint Method returns true if there is no intersection/overlap between the two geometries. The following is a visual example of when this method returns true:

GeometryEngine.Disjoint visual examples.

Supports true curves.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.0 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.14
UWP100.0 - 100.14
Relevant samples
Spatial relationships: Determine spatial relationships between two geometries.
In This Article
Back to top Copyright © 2021 Esri.