symmetricDifferenceOrNull

fun symmetricDifferenceOrNull(geometry1: Geometry, geometry2: Geometry): Geometry?

Calculates the symmetric difference (exclusive or) of the two geometries. Symmetric difference obtains those parts of the two input geometries that do not overlap. If you want to perform a more atomic-level difference operation where the spatial subtraction of two input geometries might look different if the order of the geometries were switched, consider using GeometryEngine.differenceOrNull.

Supports true curves.

Return

The symmetric difference of the two geometries, or null if geometry1 and geometry2 do not have equivalent spatial references.

Since

200.1.0

Parameters

geometry1

A geometry object.

geometry2

Another geometry object.