Union

The “union” operation allows to obtain the resulting geometry by applying the union, following the set-theoretic, from geometries specified by the user. All geometry inputs have to be of the same type.

Example of request:

http://galileo.icc.cat/arcgis/rest/services/Utilities/Geometry/GeometryServer/union?sr=25831&geometries={"geometryType":"esriGeometryPolyline","geometries":[{"paths":[[[417500,4584975],[418200,4584975]]]},{"paths":[[[417800,4585975],[418200,4585975]]]}]}&f=json&token=WgTR74xQdSvkHVECel6pSEijFKWafsP3g9DLA8WYg1sD3ycDBOx4g-Vj_i4xHhus

and related response:

{
 "geometryType": "esriGeometryPolyline",
 "geometry": {"paths": [
  [[417500,4584975],[418200,4584975]],[[417800,4585975],[418200,4585975]]
 ]}
}

Service parameters

Parameter

Description

f

Response format

Valid values: html | json
Default value: html

geometries

The array of geometries to be unioned. The syntax of this parameter should be::

{
"geometryType" : ""
"geometries" : [ , ]
}

sr

Reference system identifier related to geometries.

token

Required security key in order to perform this function which is generated by filling in the corresponding form

Additional information