Packagecom.esri.ags.tasks.supportClasses
Classpublic class BufferParameters
InheritanceBufferParameters Inheritance Object

Since : ArcGIS API for Flex 2.0

Input parameters for the buffer() method on the GeometryService - requires at least geometries and distances.

View the examples

See also

com.esri.ags.tasks.GeometryService.buffer()
Buffer (Operation) in REST documentation
Live Sample - Get population for any area.


Public Properties
 PropertyDefined By
  bufferSpatialReference : SpatialReference
The well-known ID of the spatial reference in which the geometries are buffered.
BufferParameters
  distances : Array
The distances that the input geometries should be buffered.
BufferParameters
  geometries : Array
The array of geometries to be buffered.
BufferParameters
  outSpatialReference : SpatialReference
The well-known ID of the spatial reference for the returned geometries.
BufferParameters
  unionResults : Boolean = false
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.
BufferParameters
  unit : Number
The units for calculating each buffer distance.
BufferParameters
Property Detail
bufferSpatialReferenceproperty
public var bufferSpatialReference:SpatialReference

The well-known ID of 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 specified by inSpatialReference.

distancesproperty 
public var distances:Array

The distances that the input geometries should be buffered. The distance units are specified by unit.

geometriesproperty 
public var geometries:Array

The array of geometries to be buffered.

See also

outSpatialReferenceproperty 
public var outSpatialReference:SpatialReference

The well-known ID of the spatial reference for the returned geometries. If outSpatialReference is not specified, the output geometries are in the spatial reference specified by bufferSpatialReference. If bufferSpatialReference is also not specified, the output geometries will be in the spatial reference specified by inSpatialReference.

unionResultsproperty 
public var unionResults:Boolean = false

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.

The default value is false.

unitproperty 
public var unit:Number

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 inSpatialReference.

See also

Examples
ActionScript to use BufferParameters:
 var bufferParameters:BufferParameters = new BufferParameters();
 bufferParameters.geometries = [myLastFeature];
 bufferParameters.distances = [ 3000 ]; // [ 2000, 4000 ];
 bufferParameters.unit = GeometryService.UNIT_METER;
 bufferParameters.bufferSpatialReference = new SpatialReference(102100); //30800
 myGeometryService.buffer(bufferParameters);