dojo.require("esri.tasks.BufferParameters")
Description
(Added at v1.0)
Sets the distances, units, and other parameters for a buffer operation.
Samples
Search for
samples that use this class.
Constructors
Properties
Constructor Details
Creates a new BufferParameters object. The constructor takes no parameters.
Sample:
var params = new esri.tasks.BufferParameters();
Property Details
The spatial reference in which the geometries are buffered. See
Projected Coordinate Systems and
Geographic Coordinate Systems for the list of supported spatial references.
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.
Sample:
params.bufferSpatialReference = new esri.SpatialReference({wkid: 32662});
The distances the input features are buffered. The distance units are specified by unit.
Sample:
params.distances = [ dojo.byId('bufferDistance').value ];
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. For more information, see the ArcGIS REST API documentation on the GeometryService buffer operation and the
geodesic
property.
(Added at v2.7) Known values: true | false
Sample:
params.geodesic = true;
The input geometries to buffer. (Added at v2.0)
Sample:
params.geometries = [ evt.mapPoint ];
The spatial reference for the returned geometries. See
Projected Coordinate Systems and
Geographic Coordinate Systems for the list of supported spatial references.
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.
Sample:
params.outSpatialReference = map.spatialReference;
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.
Known values: true | false
Default value: false
Sample:
params.unit = esri.tasks.GeometryService.UNIT_KILOMETER;