Parameters
- geometry1
- The first geometry to union with.
- geometry2
- The second geometry to union with.
Return Value
A geometry representing the union of the input geometries.
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. |
System.NotImplementedException | Spatial reference of geometry1or geometry2is an image coordinate system. |
If an input geometry is an envelope, then it will be converted to a polygon. If you want the union of two envelopes to be an envelope, then use Envelope.Union.
Target Platforms: Windows 11, Windows 10