The transformation of continuous values to distinct values (Categorize function). More...
#include <Categorize.h>
Public Types | |
typedef void | ReturnType |
enum | ThresholdsBelongToType { NONE , SUCCEEDING , PRECEDING } |
It controls the interval order. More... | |
typedef Visitor | VisitorType |
Public Member Functions | |
virtual ReturnType | accept (VisitorType &guest) const=0 |
It call the visit method from the guest object. More... | |
Initializer Methods | |
void | setFallbackValue (const std::string &v) |
const std::string & | getFallbackValue () const |
std::string | m_fallbackValue |
The value of the fallbackValue attribute is used as a default value, if the SE implementation does not support the function. If the implementation supports the function, then the result value is determined by executing the function. (Mandatory) More... | |
The transformation of continuous values to distinct values (Categorize function).
The Symbology encoding specification defines three pre-defined functions for transforming raw data:
The Thresholds have to be specified in ascending order and (like the LookupValue) have to be of a uniform and orderable type. The value of the function is determined by looking up into which interval between two thresholds the LookupValue falls. The first interval ranges from -Infinity to the first given threshold and the last one accordingly from the last threshold to +Infinity. In case the Categorize (or Interpolate) function is used inside a RasterSymbolizer as a ColorMap, the LookupValue is set to the fixed value "Rasterdata". The Values can be of any type, dependent on which symbolization context the function is employed. Color values (like #00ffff) or numeric values are typical. Whether the Threshold values themselves belong to the preceding or the succeeding interval can be controlled by the attribute thresholdsBelongTo= with the possible values "preceding" and "succeeding" the latter being the default.
Definition at line 90 of file Categorize.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
It controls the interval order.
Enumerator | |
---|---|
NONE | |
SUCCEEDING | |
PRECEDING |
Definition at line 99 of file Categorize.h.
te::se::Categorize::Categorize | ( | ) |
It initializes a new Categorize.
te::se::Categorize::Categorize | ( | const Categorize & | rhs | ) |
Copy constructor.
rhs | The other Categorize. |
te::se::Categorize::~Categorize | ( | ) |
Destructor.
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
void te::se::Categorize::addThreshold | ( | ParameterValue * | v | ) |
void te::se::Categorize::addValue | ( | ParameterValue * | v | ) |
|
virtual |
|
inherited |
|
inline |
Definition at line 135 of file Categorize.h.
const std::vector<ParameterValue*>& te::se::Categorize::getThresholds | ( | ) | const |
|
inline |
Definition at line 147 of file Categorize.h.
const std::vector<ParameterValue*>& te::se::Categorize::getThresholdValues | ( | ) | const |
|
inline |
Definition at line 139 of file Categorize.h.
|
inherited |
void te::se::Categorize::setLookupValue | ( | ParameterValue * | v | ) |
void te::se::Categorize::setThresholdsBelongTo | ( | ThresholdsBelongToType | t | ) |
void te::se::Categorize::setValue | ( | ParameterValue * | v | ) |
|
protectedinherited |
The value of the fallbackValue attribute is used as a default value, if the SE implementation does not support the function. If the implementation supports the function, then the result value is determined by executing the function. (Mandatory)
Definition at line 88 of file Function.h.
|
private |
Mandatory.
Definition at line 155 of file Categorize.h.
|
private |
(Optional)
Definition at line 159 of file Categorize.h.
|
private |
A vector of threshold. (Optional)
Definition at line 157 of file Categorize.h.
|
private |
A vector of threshold values. (Optional)
Definition at line 158 of file Categorize.h.
|
private |
Mandatory.
Definition at line 156 of file Categorize.h.