Geometry Service Union method

Constructs the set-theoretic intersection between an array of geometries and another geometry.

 

Union(SpatialReference SpatialReference,  Geometry[] InGeometryArray)

 

Parameter

Description

SpatialReference

The spatial reference of the geometries in the InGeometryArray. This cannot be null.

InGeometryArray

An array of points, multipoints, polylines or polygons. The input types cannot be mixed.

 

Return Value

 

A single Geometry of the same type as the inputs.

 

Remarks

 

This operation constructs the set-theoretic union of the geometries in the input array. All inputs must be of the same type.

 

Figure 1 - The union operation applied to a collection of three polygons.