Calculate Lengths
The “lengths” operation allows to remotely calculate the length of each polyline specified by the user.
Example of request:
and related response:
{"lengths":[166166.47962766109]}
Service parameters
Parameter | Description |
---|---|
f | Response format Valid values: html | json |
Array of polylines whose lengths want to be determined. The syntax of this parameter should be: | |
Reference system identifier used to describe polygons. | |
lengthUnit | Unity in which the length is to be expressed. See the list of possible values |
calculationType | Reference system identifier used to describe the affected area. If not specified, the one indicated as inSR is taken by default. |
distances | Type of calculation required to determine the length Valid values: planar | geodesic | preserveShape. Default value: 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. |