#### Parameters

*geometry1*- The first geometry.
*geometry2*- The second geometry.

#### Return Value

Returns the result of the symmetric difference.

ArcGIS Pro 3.4 API Reference Guide

The first geometry.

The second geometry.

In This Topic

SymmetricDifference Method (GeometryEngine)

In This Topic

Performs the symmetric difference operation on the two geometries. The symmetric difference
is the union of the geometries minus the intersection.

Syntax

*geometry1*- The first geometry.
*geometry2*- The second geometry.

Returns the result of the symmetric difference.

Exceptions

Exception | Description |
---|---|

System.ArgumentNullException | Either geometry1 or geometry2 or both are null. |

System.NotImplementedException | The method is not implemented for GeometryBag. |

System.InvalidOperationException | Incompatible spatial references between the input geometries. |

ArcGIS.Core.Geometry.Exceptions.InvalidParameterException | Input geometries do not have the same dimension. |

ArcGIS.Core.Geometry.Exceptions.GeometryObjectException | The operation cannot be performed on a non-simple geometry. |

System.NotImplementedException | Spatial reference of geometry1or geometry2is an image coordinate system. |

ArcGIS.Core.Geometry.Exceptions.InvalidParameterException | Input geometries do not have same dimensions. |

Remarks

If the input geometries are not known-simple, then the operation will be performed on simplified copies of the geometries. There is no need for you to call any simplify method.

Requirements

**Target Platforms: **Windows 11, Windows 10

See Also