Complete Polygons

The operation “autoComplete” allows to generate new polygons resulting from closing polylines specified by the user, using the existing perimeters of polygons, also indicated by the user.

The following figure shows the creation of polygon D from polygons A, B, C and the polyline a.

Example of request:

http://galileo.icc.cat/arcgis/rest/services/Utilities/Geometry/GeometryServer/autoComplete?sr=25831&polygons=[{"rings":[[[415847,4595634],[415947,4595634],[415947,4595734],[415847,4595734],[415847,4595634]]]},{"rings":[[[416847,4595634],[416947,4595634],[416947,4595734],[416847,4595734],[416847,4595634]]]}]&polylines=[{"paths":[[[415947,4595734],[416847,4595734]]]},{"paths":[[[415947,4595634],[416847,4595634]]]}]&f=json&token=WgTR74xQdSvkHVECel6pSEijFKWafsP3g9DLA8WYg1sD3ycDBOx4g-Vj_i4xHhus

and related response:

{"geometries": [{
 "rings": [[
 [416847,4595634],[415947,4595634],[415947,4595734],
 [416847,4595734],[416847,4595634]]],
 "spatialReference": {
 "wkid": 25831,
 "latestWkid": 25831
 }
}]}

Service parameters:

Parameter

Description

f

Response format

Valid values: html | json
Default value: html

polygons

Cadena de polígons dels quals es vol computar la seva àrea i perímetre. La sintaxi d’aquest paràmetre ha de ser:

[, ]

polylines

Array of polygons of which the area and perimeter are wanted to be calculated. The syntax of this parameter should be:

[, ]

sr

Reference system identifier used to  describe polygons.

token

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

Additional information