gxp.data.FeatureTypeClassifier¶
- 
class gxp.data.FeatureTypeClassifier(config)¶
Utility class for creating classifications of vector styles
Config Options¶
Configuration properties in addition to those listed for Ext.util.Observable.
- 
store
- Ext.data.StoreStore of style rules, read from GetStyles response using GeoExt.data.StyleReader. Classification operations will be performed on the layer denoted as- layerNamein the- namedLayerobject of the raw SLD.
Public Properties¶
Public properties in addition to those listed for Ext.util.Observable.
- 
FeatureTypeClassifier.methods¶
- ObjectClassification methods for use with- classify:- graduated(attribute, classes, method)Uses GeoServer’s- gs:getFeatureClassStatsWPS process.- attributeis the field of the layer to create the classification from;- classesis the number of classes to create, and- methodis one of “EQUAL_INTERVL”, “NATURAL_BREAKS”, “QUANTILE”.
 
Public Methods¶
Public methods in addition to those listed for Ext.util.Observable.
- 
FeatureTypeClassifier.classify()¶
- Parameters: - group – - StringName of the group to classify- Method: - StringName of one of the classification methods from- methods- Args: - ArrayArguments to pass to the classification method- Creates a classification for a - group. If there are already rules for the selected group, the class breaks will be replaced with the new classification and linear stretching will be applied to the existing symbolizers to match the number of new classes.