18#ifndef QGSRASTERMINMAXORIGIN_H
19#define QGSRASTERMINMAXORIGIN_H
21#include <QDomDocument>
39 static constexpr double CUMULATIVE_CUT_LOWER = 0.02;
42 static constexpr double CUMULATIVE_CUT_UPPER = 0.98;
45 static constexpr double DEFAULT_STDDEV_FACTOR = 2.0;
94 void writeXml( QDomDocument &doc, QDomElement &parentElem )
const;
97 void readXml(
const QDomElement &elem );
124 double mCumulativeCutLower;
125 double mCumulativeCutUpper;
126 double mStdDevFactor;
RasterRangeLimit
Describes the limits used to compute raster ranges (min/max values).
RasterRangeAccuracy
Describes the accuracy used to compute raster ranges (min/max values).
@ Estimated
Approximated statistics.
RasterRangeExtent
Describes the extent used to compute raster ranges (min/max values).
@ WholeRaster
Whole raster is used to compute statistics.
This class describes the origin of min/max values.
void setLimits(Qgis::RasterRangeLimit limits)
Sets the limits.
void setExtent(Qgis::RasterRangeExtent extent)
Sets the extent.
double cumulativeCutLower() const
Returns the lower bound of cumulative cut method (between 0 and 1).
Qgis::RasterRangeExtent extent() const
Returns the raster extent.
double stdDevFactor() const
Returns the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ].
void setCumulativeCutUpper(double val)
Sets the upper bound of cumulative cut method (between 0 and 1).
void setStdDevFactor(double val)
Sets the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ].
double cumulativeCutUpper() const
Returns the upper bound of cumulative cut method (between 0 and 1).
void setCumulativeCutLower(double val)
Sets the lower bound of cumulative cut method (between 0 and 1).
Qgis::RasterRangeAccuracy statAccuracy() const
Returns the raster statistic accuracy.
Qgis::RasterRangeLimit limits() const
Returns the raster limits.
void setStatAccuracy(Qgis::RasterRangeAccuracy accuracy)
Sets the statistics accuracy.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)