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.Store
Store of style rules, read from GetStyles response using GeoExt.data.StyleReader. Classification operations will be performed on the layer denoted aslayerName
in thenamedLayer
object of the raw SLD.
Public Properties¶
Public properties in addition to those listed for Ext.util.Observable.
-
FeatureTypeClassifier.
methods
¶ Object
Classification methods for use withclassify
:graduated(attribute, classes, method)
Uses GeoServer’sgs:getFeatureClassStats
WPS process.attribute
is the field of the layer to create the classification from;classes
is the number of classes to create, andmethod
is one of “EQUAL_INTERVL”, “NATURAL_BREAKS”, “QUANTILE”.
Public Methods¶
Public methods in addition to those listed for Ext.util.Observable.
-
FeatureTypeClassifier.
classify
()¶ Parameters: group – String
Name of the group to classifyMethod: String
Name of one of the classification methods frommethods
Args: Array
Arguments to pass to the classification methodCreates 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.