Packagecom.esri.ags.tasks.supportClasses
Classpublic class LengthsParameters
InheritanceLengthsParameters Inheritance Object

Since : ArcGIS API for Flex 2.0

Input parameters for the lengths() method on the GeometryService - requires at least an array of polylines, and optionally lengthUnit and geodesic. The two optional properties are only available with ArcGIS Server 10.0 and higher.

See also

com.esri.ags.tasks.GeometryService.lengths()
Live Sample - using LengthsParameters as input for lengths() method.
Lengths (Operation) in REST documentation


Public Properties
 PropertyDefined By
  geodesic : Boolean = false
Whether to calculate ellipsoidal shortest path distances between each pair of the vertices in the polylines.
LengthsParameters
  lengthUnit : Number
The length unit in which the length of the polylines will be calculated.
LengthsParameters
  polylines : Array
The array of polylines whose lengths are to be computed.
LengthsParameters
Property Detail
geodesicproperty
public var geodesic:Boolean = false

Whether to calculate ellipsoidal shortest path distances between each pair of the vertices in the polylines. When polylines are in a geographic coordinate system, you would usually set geodesic to true in order to get an accurate measurement.

This is an optional property and is only available with ArcGIS Server 10.0 and higher.

The default value is false.

lengthUnitproperty 
public var lengthUnit:Number

The length unit in which the length of the polylines will be calculated. If it is not specified and the input spatial reference is a geographic coordinate system, then the lengths are expressed in meters.

This is an optional property and is only available with ArcGIS Server 10.0 and higher.

polylinesproperty 
public var polylines:Array

The array of polylines whose lengths are to be computed.

See also