Intersect

The “intersect” operation allows to remotely calculate, following the set-theoretic, the set of elements that define the intersection between and array of geometries and another, all them specified by the user.

The following illustrations show the resulting of this operation. The red (lines and points) an blue (polygons) elements are the result of applying the initial set of geometries (all, excepting those of the green circle, ‘geometries’ parameter) the intersection of the content of the green circle (‘geometry’ parameter).

Example of request:

http://galileo.icc.cat/arcgis/rest/services/Utilities/Geometry/GeometryServer/intersect?sr=25831&geometries={"geometryType":"esriGeometryPolygon","geometries":[{"rings":[[[418000,4584800],[418500,4584800],[418500,4585000],[418000,4585000],[418000,4584800]]]}]}&geometry={"geometryType":"esriGeometryPolyline","geometry":{"paths":[[[417500,4584900],[419000,4584900]]]}}&f=json&token=WgTR74xQdSvkHVECel6pSEijFKWafsP3g9DLA8WYg1sD3ycDBOx4g-Vj_i4xHhus

and related response:

{
 "geometryType": "esriGeometryPolyline",
 "geometries": [{"paths": [[
  [418000,4584900],[418500,4584900]
 ]]}]
}

Service parameters

Parameter

Description

f

Response format

Valid values: html | json
Default value: html

geometries

Array of geometries from which the intersection with the geometry specified at the “geometry” parameter is wanted to be calculated.. The syntax of this parameter should be:

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

geometry

Geometry of any type, which dimension is equal to or greater than the elements listed at the “geometries” parameter. The syntax of this parameter should be:

{
"geometryType" : "",
"geometry" :
}

sr

Reference system identifier used to describe geometries.

token

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

Additional information