Packagecom.esri.ags.tasks
Classpublic class BufferParameters

Input parameters for a buffer operation on the GeometryService, for example distances and units.


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

See also

GeometryService.buffer()
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 the input geometries are buffered.
BufferParameters
  features : Array
The array of graphics that should be buffered.
BufferParameters
  outSpatialReference : SpatialReference
The well-known ID of the spatial reference for the returned geometries.
BufferParameters
  unionResults : Boolean
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
Public Constants
 ConstantDefined by
  UNIT_FOOT : Number = 9002
[static] International foot (0.3048 meters).
BufferParameters
  UNIT_KILOMETER : Number = 9036
[static] Kilometers.
BufferParameters
  UNIT_METER : Number = 9001
[static] International meter.
BufferParameters
  UNIT_NAUTICAL_MILE : Number = 9030
[static] Nautical miles (1,852 metres).
BufferParameters
  UNIT_STATUTE_MILE : Number = 9093
[static] Miles (5,280 feet, 1,760 yards, or exactly 1,609.344 meters).
BufferParameters
  UNIT_US_NAUTICAL_MILE : Number = 109012
[static] US nautical miles.
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 the input geometries are buffered. The distance units are specified by unit.

featuresproperty 
public var features:Array

The array of graphics that should 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, they are in the spatial reference specified by inSpatialReference.

unionResultsproperty 
public var unionResults:Boolean

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.

Constant detail
UNIT_FOOTconstant
public static const UNIT_FOOT:Number = 9002

International foot (0.3048 meters).

UNIT_KILOMETERconstant 
public static const UNIT_KILOMETER:Number = 9036

Kilometers.

UNIT_METERconstant 
public static const UNIT_METER:Number = 9001

International meter.

UNIT_NAUTICAL_MILEconstant 
public static const UNIT_NAUTICAL_MILE:Number = 9030

Nautical miles (1,852 metres).

UNIT_STATUTE_MILEconstant 
public static const UNIT_STATUTE_MILE:Number = 9093

Miles (5,280 feet, 1,760 yards, or exactly 1,609.344 meters).

UNIT_US_NAUTICAL_MILEconstant 
public static const UNIT_US_NAUTICAL_MILE:Number = 109012

US nautical miles.