IGeometry.SymDifference

IGeometry.SymDifference method

Builds a symmetric difference between this geometry and a specified geometry.

public IGeometry SymDifference(IGeometry other)
ParameterTypeDescription
otherIGeometryA geometry to compute symmetric difference with.

Return Value

A geometry that represents a symmetric difference of this geometry and an argument. The result geometry contains point set that present in one of the geometries but not present in both of them.

Exceptions

exceptioncondition
ArgumentNullExceptionother is null.
ArgumentExceptionOne of the geometries is invalid in such way that operation can not be finished.
ArgumentExceptionSpatialReferenceSystem of geometries are not equivalent. You can use SpatialReferenceSystemTransformation in order to convert geometries to the same spatial reference system.

See Also