GDAL

Public Member Functions | Public Attributes | List of all members
gdal::Reclassifier::Interval Struct Reference

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

## Detailed Description

Internal struct to hold an interval of values to be reclassified.

## Member Function Documentation

## ◆ Parse()

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.

Parameters

  pszText | string from which to parse an interval
  end | pointer to first non-consumed character

Returns
  CE_None on success, CE_Failure otherwise

The documentation for this struct was generated from the following files:

- vrtreclassifier.h
- vrtreclassifier.cpp