Class: GeneralizeParameters

Description

Class added v2.0.

Sets the geomteries, maximum deviation and units for the generalize operation.

Samples

Search for samples that use this class.  

Class hierarchy

esri.tasks.GeneralizeParameters

Constructor

Constructor Description
esri.tasks.GeneralizeParameters() Creates a new GeneralizeParameters object. The constructor takes no parameters

Properties

Property Type Description
deviationUnit esri.tasks.GeometryService Constant The maximum deviation unit. If the unit is not specified, units are derived from the spatial reference. For a list of valid units see esriSRUnitType constants or esriSRUnit2Type constants.
geometries Geometry[] The array of input geometries to generalize. All geometries in this array must be of the same geometry type (esriGeometryPolyline or esriGeometryPolygon).
maxDeviation Number The maximum deviation for constructing a generalized geometry based on the input geomteries.
Constructor Detail

esri.tasks.GeneralizeParameters()

Creates a new GeneralizeParameters object. The constructor takes no parameters
Code snippets:
 var generalizeParams = new esri.tasks.GeneralizeParameters();
Properties Detail
The maximum deviation unit. If the unit is not specified, units are derived from the spatial reference. For a list of valid units see esriSRUnitType constants or esriSRUnit2Type constants.

<Geometry[]> geometries

The array of input geometries to generalize. All geometries in this array must be of the same geometry type (esriGeometryPolyline or esriGeometryPolygon).
Code snippets:
    var geoms = dojo.map(featureSet.features,function(feature){
      return feature.geometry;
    });
        
    generalizeParams.geometries = geoms;

<Number> maxDeviation

The maximum deviation for constructing a generalized geometry based on the input geomteries.
Code snippets:
    generalizeParams.maxDeviation = 0.05;