Affected Area

The “buffer” operation allows to remotely calculate polygons generated from a user specified geometry, applying certain affected areas around, also specified by the user.

The following figure shows the creation of polygon (defined permiter by a continous blue line) from some initial polygons.

Request example:

http://galileo.icc.cat/arcgis/rest/services/Utilities/Geometry/GeometryServer/buffer?f=json&unit=9036&unionResults=false&geodesic=false&geometries={"geometryType":"esriGeometryPoint","geometries":[{"x":418050,"y":4579838.333892822,"spatialReference":{"wkid":23031}}]}&inSR=23031&distances=5,10&outSR=23031&bufferSR=23031&token=WgTR74xQdSvkHVECel6pSEijFKWafsP3g9DLA8WYg1sD3ycDBOx4g-Vj_i4xHhus

and related response:

{"geometries":[{"rings":[[[418050,4584838.3338928223],[418248.78257548466,4584834.3808789589],[418447.25083485857,4584822.5280878954],[418645.09095900954,4584802.7942613317],[418841.99012203608,4584775.2106025042],[419037.63698588975,4584739.8207268454],[419231.72219266451,4584696.680593024],[419423.93885375513,4584645.858414459],[419613.98303511116,4584587.4345514616],[419801.5542378191,4584521.5013841661],[419986.3558732532,4584448.1631664634],[420168.09573204262,4584367.5358611494],....,[418050,4589838.3338928223]]]}]}

Paràmetres del servei

Parameter

Description

f

Response format

Valid values: html | json
Default value: html

geometries

The array of geometries of which the affected areas are wanted to be generated. The syntax of this parameter should be:

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

inSR

Reference system identifier used to describe the geometries from which the affected area should be calculated.

outSR

Reference system identifier used to  describe the geometries resulting from the operation. If not specified, the one indicated as  inSR is taken by default.

bufferSR

Reference system identifier used to  describe the affected area. If not specified, the one indicated as inSR is taken by default.

distances

Magnitude of the distances to which the areas affected by the geometry are wanted to be calculated. If more than one are indicated, the corresponding polygons for each of them will be created. The syntax of this parameter should be:

distances=,

unit

Unit in which the distances are expressed. If not specified, the associated value of the reference system indicated as the bufferSR is taken by default. See the list of possible values

unionResults

If equal to “true”, all geometries calculated  using the same distance are joint on a single one.

Valid values: : true | false

Default value: false

geodesic

If coordinates are expressed in a geograhic corodinate system, this parameter has to be 'true' in order to generate the affected areas using geodesic distances and non projected. The parameter “bufferSR” will be ignored when euql to “true”.

Valid values: true | false

Default value: false

token

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

Additional information

Example Usage