public class BufferParameters
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static BufferParameters |
create()
Creates a new BufferParameters object.
|
SpatialReference |
getBufferSpatialRefernce()
The spatial reference in which the geometries are buffered.
|
com.google.gwt.core.client.JsArrayNumber |
getDistances()
The distances the input features are buffered.
|
com.google.gwt.core.client.JsArray<Geometry> |
getGeometries()
The input geometries to buffer.
|
SpatialReference |
getOutSpatialRefernce()
The spatial reference for the returned geometries.
|
GeometryService.UnitType |
getUnit()
The units for calculating each buffer distance.
|
boolean |
isGeodesic()
If the input geometries are in geographic coordinate system set geodesic to true in order
to generate a buffer polygon using a geodesic distance.
|
void |
setBufferSpatialRefernce(SpatialReference bufferSpatialReference)
Set the bufferSpatialReference parameter.
|
void |
setDistances(int[] distances)
Set the distances parameter.
|
void |
setGeodesic(boolean geodesic)
Set the geodesic parameter.
|
void |
setGeometries(Geometry[] geometries)
Set the geometries parameter.
|
void |
setOutSpatialRefernce(SpatialReference outSpatialReference)
Set the outSpatialReference parameter.
|
void |
setUnionResults(boolean unionResults)
Set the unionResults parameter.
|
void |
setUnit(GeometryService.UnitType unit)
Set the unit parameter.
|
boolean |
unionResults()
If true, all geometries buffered at a given distance are unioned into a single (possibly multipart)
polygon, and the unioned geometry is placed in the output array.
|
public static BufferParameters create()
public final SpatialReference getBufferSpatialRefernce()
public final void setBufferSpatialRefernce(SpatialReference bufferSpatialReference)
bufferSpatialReference
- - The spatial reference in which the geometries are buffered. If
bufferSpatialReference is not specified, the geometries are buffered in the spatial reference
specified by outSpatialReference. If outSpatialReference is also not specified, they are buffered
in the spatial reference of the features.public final com.google.gwt.core.client.JsArrayNumber getDistances()
public final void setDistances(int[] distances)
distances
- - The distances the input features are buffered. The distance units are specified by unit.public final boolean isGeodesic()
public final void setGeodesic(boolean geodesic)
geodesic
- - If the input geometries are in geographic coordinate system set geodesic
to true in order to generate a buffer polygon using a geodesic distance. The bufferSpatialReference
property is ignored when geodesic is set to true. Requires ArcGIS Server 10.1 or greater geometry
service. (As of v2.7)public final com.google.gwt.core.client.JsArray<Geometry> getGeometries()
public final void setGeometries(Geometry[] geometries)
geometries
- - The input geometries to buffer.public final SpatialReference getOutSpatialRefernce()
public final void setOutSpatialRefernce(SpatialReference outSpatialReference)
outSpatialReference
- - The spatial reference for the returned geometries. If
outSpatialReference is not specified, the output geometries are in the spatial reference
specified by bufferSR. If bufferSpatialReference is also not specified, they are in the
spatial reference of the features.public final boolean unionResults()
public final void setUnionResults(boolean unionResults)
unionResults
- - If true, all geometries buffered at a given distance are unioned into a
single (possibly multipart) polygon, and the unioned geometry is placed in the output array.public final GeometryService.UnitType getUnit()
public final void setUnit(GeometryService.UnitType unit)
unit
- - The units for calculating each buffer distance. If unit is not specified, the units are derived from
bufferSpatialReference. If bufferSpatialReference is not specified, the units are derived from the
features. See the Geometry service constants table for values.