Geometry Service GetLengths method

Calculates length for each input polyline.

 

GetLengths(SpatialReference SpatialReference, Polyline[] InPolylineArray)

 

Parameter

Description

SpatialReference

SpatialReference of the geometries in the InPolygonArray. Cannot be null.

 

InPolylineArray

The array of Polylines on which the length will be calculated. All geometries are assumed to be in the coordinate system defined by the input SpatialReference.
 

 

Return Value

 

A double[] containing the length of each Polyline in the input array.  
 

Remarks

 
The length values are computed in the units of the input spatial reference.   It is not recommended that this method be used on geometries associated with a geographic coordinate system, since the length would then be calculated in units of "degrees". 

 

Examples

C#

VB.NET

Java