![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
A simple classification definition.
This definition will result in a new child feature for each unique value of the specified attribute. Use of this definition will require data to be analysed in order to determine the possible values of an attribute.
The new child features will be named according to the corresponding attribute values. For example:
This classification definition does not define rendering attributes for the new child features. Applications using this class will need to set appropriate rendering feature/rendering attribute definitions to the TSLFeatureList.
Public Member Functions | |
TSLFeatureClassifierCategorised & | operator= (const TSLFeatureClassifierCategorised &other) |
Assignment operator. | |
bool | operator== (const TSLFeatureClassifierCategorised &other) const |
Equality operator. | |
const char * | attributeName () const |
void | attributeName (const char *attribute) |
virtual TSLFeatureClassifier * | clone () const |
virtual bool | getClassifiedFeatures (TSLFeature *rootFeature, unsigned int classificationLevel, bool caseSensitive) const |
virtual bool | classifyFeature (const TSLMUGeometry *geometry, TSLRenderingAttributes &renderingAttribs, TSLSimpleString &childFeatureName) const |
![]() | |
void | destroy () |
Delete this object. | |
TSLFeatureClassifier::ClassifierType | type () const |
Static Public Member Functions | |
static TSLFeatureClassifierCategorised * | create (const char *attribute=NULL) |
Constructor. | |
Additional Inherited Members | |
![]() | |
enum | ClassifierType { ClassifierTypeCategorised , ClassifierTypeGraduated , ClassifierTypeCustom } |
The type of a classification definition. More... | |
const char * TSLFeatureClassifierCategorised::attributeName | ( | ) | const |
Query the attribute name which this classification definition applies to.
void TSLFeatureClassifierCategorised::attributeName | ( | const char * | attribute | ) |
Set the attribute name which this classification definition applies to.
attribute | A string containing the attribute name. |
|
virtual |
Query the feature name for a given geometry
geometry | The geometry to classify |
renderingAttribs | The given TSLRenderingAttributes object will be set to the rendering attributes (if any) of the feature. Not all classifier definitions can specify rendering attributes. |
childFeatureName | Returned name of the child feature for this geometry |
Implements TSLFeatureClassifier.
|
virtual |
|
static |
Constructor.
|
virtual |
Process the classification definition and add child features to the hierarchy.
Returns false, since this classifier is fully dependent upon instance attribute values
rootFeature | The top-level feature (TSLFeature) in the hierarchy the sub-classing should be applied to. |
classificationLevel | The level of this sub-class, starting at 0. |
caseSensitive | Whether the identification of existing classifications should be case sensitive or not. |
true
if any new features were created, false
otherwise. Implements TSLFeatureClassifier.
TSLFeatureClassifierCategorised & TSLFeatureClassifierCategorised::operator= | ( | const TSLFeatureClassifierCategorised & | other | ) |
Assignment operator.
bool TSLFeatureClassifierCategorised::operator== | ( | const TSLFeatureClassifierCategorised & | other | ) | const |
Equality operator.