Click or drag to resize

GeometryEngineIntersections Method

Calculates the intersection of two geometries.

Namespace:  Esri.ArcGISRuntime.Geometry
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.9.0
Syntax
public static IReadOnlyList<Geometry> Intersections(
	Geometry geometry1,
	Geometry geometry2
)

Parameters

geometry1
Type: Esri.ArcGISRuntime.GeometryGeometry
A geometry object.
geometry2
Type: Esri.ArcGISRuntime.GeometryGeometry
Another geometry object.

Return Value

Type: IReadOnlyListGeometry
A collection of geometry objects that represent the intersection of the given geometries.
Remarks
The returned collection contains one geometry of each dimension for which there are intersections. For example, if both inputs are polylines, the collection will contain at most two geometries: the first a multipoint containing the points at which the lines cross, and the second a polyline containing the lines of overlap. If a crossing point lies within a line of overlap, only the line of overlap is present the result set is not self-intersecting. If there are no crossing points or there are no lines of overlap, the respective geometry will not be present in the returned collection. If the input geometries do not intersect, the resulting collection will be empty. The table below shows, for each combination of pairs of input geometry types, the types of geometry that will be contained within the returned collection if there are intersections of that type. Set of potential output geometry types for pairs of input geometry types Input type Point/Multipoint Polyline Polygon/Envelope Point/Multipoint Multipoint Multipoint Multipoint Polyline Multipoint Multipoint, Polyline Multipoint, Polyline Polygon/Envelope Multipoint Multipoint, Polyline Multipoint, Polyline, Polygon The geometries in the returned collection are sorted by ascending dimensionality, e.g. multipoint (dimension 0) then polyline (dimension 1) then polygon (dimension 2) for the intersection of two geometries with area that have intersections of those types.
See Also