dojo.require("esri.tasks.GeneralizeParameters")
Description
(Added at v2.0)
Sets the geometries, maximum deviation and units for the
generalize operation.
Samples
Search for
samples that use this class.
Constructors
Properties
Constructor Details
Creates a new GeneralizeParameters object. The constructor takes no parameters
Sample:
var generalizeParams = new esri.tasks.GeneralizeParameters();
Property Details
The maximum deviation unit. If the unit is not specified, units are derived from the spatial reference. See the constants table of
GeometryService for a list of valid values.
The array of input geometries to generalize. All geometries in this array must be of the same geometry type (esriGeometryPolyline or esriGeometryPolygon).
Sample:
var geoms = dojo.map(featureSet.features,function(feature){
return feature.geometry;
});
generalizeParams.geometries = geoms;
The maximum deviation for constructing a generalized geometry based on the input geometries.
Sample:
generalizeParams.maxDeviation = 0.05;