Lengths Task Activity


Uses the ArcGIS Geometry Service to calculate the lengths of polylines.

Inheritance Hierarchy:



This activity computes the lengths of a collection of polylines using the specified units.

In a Workflow:

After performing a query to obtain a set of linear features, this activity can be used to compute the lengths of the features.


Name Description

In Arguments

Calculation Type

The type of calculation to perform (Planar, Geodesic, PreserveShape).


The network credentials that are sent to the host and used to authenticate the request.

Custom Parameters

Additional parameters to include in the request.

Disable Client Caching

If true, adds a timestamp parameter (_ts) to the request to prevent it from being loaded from the application's cache.


If polylines are in a geographic coordinate system, then geodesic needs to be set to true in order to calculate the ellipsoidal shortest distance between each pair of the vertices in the polylines. If LengthUnit is not specified, the output is returned in meters.


The graphics used to calculate lengths.

Length Unit

The length unit in which the perimeters of polygons must be calculated. If the length unit is not specified, the units are derived from the spatial reference of the first geometry.

Geometry Service Url

The URL of the ArcGIS Server Geometry service. For example: http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer.


The token for accessing a secure ArcGIS task.

Proxy Url

The URL to proxy the request through.


Display Name


You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

Out Arguments


The calculated lengths.

Version Information:

Supported from: Geocortex Essentials 3.8.