public class DistanceParameters
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static DistanceParameters |
create()
Creates a new DistanceParameters object.
|
GeometryService.UnitType |
getDistanceUnit()
Specifies the units for measuring distance between geometry1 and geometry2.
|
Geometry |
getGeometry1()
The geometry from which the distance is to measured.
|
Geometry |
getGeometry2()
The geometry to which the distance is measured.
|
boolean |
isGeodesic()
Default value is false.
|
void |
setDistanceUnit(GeometryService.UnitType distanceUnit)
Set the disance unit parameter.
|
void |
setGeodesic(boolean geodesic)
Set the geodesic parameter
|
void |
setGeometry1(Geometry geometry1)
Set the geometry1 parameter.
|
void |
setGeometry2(Geometry geometry2)
set the geometry2 parameter.
|
public static DistanceParameters create()
public final GeometryService.UnitType getDistanceUnit()
public final void setDistanceUnit(GeometryService.UnitType distanceUnit)
distanceUnit
- - Specifies the units for measuring distance between geometry1 and geometry2. If the unit
is not specified the units are derived from the spatial reference.public final boolean isGeodesic()
public final void setGeodesic(boolean geodesic)
geodesic
- - Default value is false. When true the geodesic distance between geometry1 and geometry2 is measured.public final Geometry getGeometry1()
public final void setGeometry1(Geometry geometry1)
geometry1
- - The geometry from which the distance is to measured. The geometry can be one of the following
geometry types: esriGeometryPoint, esriGeometryPolyline, esriGeometryPolygon or esriGeometryMultipoint.public final Geometry getGeometry2()
public final void setGeometry2(Geometry geometry2)
geometry2
- - The geometry to which the distance is measured. The geometry can be one of the following geomtry
types: esriGeometryPoint, esriGeometryPolyline, esriGeometryPolygon or esriGeometryMultipoint.