public class LengthsParameters
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static LengthsParameters |
create()
Creates a new LengthsParameter object.
|
GeometryService.UnitType |
getLengthUnit()
The length unit in which perimeters of polygons will be calculated.
|
com.google.gwt.core.client.JsArray<Geometry> |
getPolylines()
The array of polylines whose lengths are to be computed.
|
boolean |
isGeodesic()
If polylines are in geographic coordinate system, then geodesic needs to be set to true in order to
calculate the ellipsoidal shortest path distance between each pair of the vertices in the polylines.
|
void |
setGeodesic(boolean geodesic)
Set the geodesic parameter
|
void |
setLengthUnit(GeometryService.UnitType lengthUnit)
Set the length unit parameter.
|
void |
setPolylines(Geometry[] polylines)
Set the polylines parameter.
|
public static LengthsParameters create()
public final boolean isGeodesic()
public final void setGeodesic(boolean geodesic)
geodesic
- - If polylines are in geographic coordinate system, then geodesic needs to be set to true in order to
calculate the ellipsoidal shortest path distance between each pair of the vertices in the polylines.
The output if lengthUnit if not specified is returned in meters.public final GeometryService.UnitType getLengthUnit()
public final void setLengthUnit(GeometryService.UnitType lengthUnit)
lengthUnit
- - The length unit in which perimeters of polygons will be calculated. It can be any esriUnits
constant. If unit is not specified, the units are derived from srpublic final com.google.gwt.core.client.JsArray<Geometry> getPolylines()
public final void setPolylines(Geometry[] polylines)
polylines
- - The array of polylines whose lengths are to be computed. The spatial reference of the polylines
is specified by sr. The structure of each polyline in the array is same as the structure of the JSON polyline objects
returned by the ArcGIS REST API.