Show / Hide Table of Contents

Method Intersects

Intersects(Geometry, Geometry)

Tests if two geometries intersect each other.

Declaration
public static bool Intersects(this 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
System.Boolean

true if the two geometries intersects.

Remarks

A geometry intersects another geometry if it shares any portion of its geometry with the other geometry feature. If either geometry contain, is within, crosses, touches, or overlaps the other geometry, they intersect. The following is a visual example of when this method returns true:

GeometryEngine.Intersects visual examples.

This spatial relationship test is based on the Dimensionally Extended 9 Intersection Model (DE-9IM) developed by Clementini, et al., and is discussed further in the web pages: DE-9IM and Understanding spatial relations.

Supports true curves.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Spatial relationships: Determine spatial relationships between two geometries.
In This Article
Back to top Copyright © 2022 Esri.