Calculation of Areas and Lengths
The “areasAndLengths” operation, allows to remotely calculate the area and perimeter of polygons specified by the user.
Example of request:
and related response:
{"areas":[260.02001497661342],"lengths":[6.018457343510268]}
Service parameters:
Parameter | Description |
---|---|
f | Response format Valid values: html | json |
Array of polygons of which the area and perimeter are wanted to be calculated. The syntax of this parameter should be: | |
Reference system identifier used to describe polygons. | |
lengthUnit | Unity in which the polygons perimeter is desired. See the list of possible values |
areaUnit | Unity in which the area of polygons should be expressed. Vegeu els valors possibles |
calculationType | Type of calculation performer to determine the area and perimeter. Valids values: planar | geodesic | preserveShape. planar: calculation that express geometries such as polygons on a flat surface geodesic: calculations based on the vertices of the polygon, defining the lines between them as geodetic segment (shorter lines between two points on the Earth ellipsoid) independent of the specific polygon forms. preserveShape: calculation expressing geometries (vertices and lines between them) on the Earth ellipsoid surface. |
token | Required security key in order to perform this function which is generated by filling in the corresponding form. |