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 aslayerNamein thenamedLayerobject of the raw SLD.
Public Properties¶
Public properties in addition to those listed for Ext.util.Observable.
-
FeatureTypeClassifier.methods¶ ObjectClassification methods for use withclassify:graduated(attribute, classes, method)Uses GeoServer’sgs:getFeatureClassStatsWPS process.attributeis the field of the layer to create the classification from;classesis the number of classes to create, andmethodis 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 classifyMethod: StringName of one of the classification methods frommethodsArgs: ArrayArguments 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.