|
GDAL
|
Internal struct to hold an interval of values to be reclassified. More...
#include <vrtreclassifier.h>
Public Member Functions | |
| void | SetToConstant (double dfVal) |
| Set the interval to represent a single value [x,x]. | |
| CPLErr | Parse (const char *pszText, char **end) |
| Parse an interval. | |
| bool | IsConstant () const |
| Returns true of the interval represents a single value [x,x]. | |
| bool | Contains (double x) const |
| Returns true if the interval contains a value. | |
| bool | Overlaps (const Interval &other) const |
| Returns true if the intervals overlap. | |
Public Attributes | |
| double | dfMin |
| minimum value of range | |
| double | dfMax |
| maximum value of range | |
Internal struct to hold an interval of values to be reclassified.
| CPLErr gdal::Reclassifier::Interval::Parse | ( | const char * | pszText, |
| char ** | end ) |
Parse an interval.
The interval may be either a single constant value, or two comma-separated values enclosed by parentheses/brackets to represent open/closed intervals.
| pszText | string from which to parse an interval |
| end | pointer to first non-consumed character |