Subgroup: Raster

Class: QgsRasterMinMaxOrigin

class qgis.core.QgsRasterMinMaxOrigin

Bases: sip.wrapper

Default constructor.

QgsRasterMinMaxOrigin(QgsRasterMinMaxOrigin)

This class describes the origin of min/max values. It does not store by itself the min/max values.

New in version 3.0: Methods

cumulativeCutLower Returns the lower bound of cumulative cut method (between 0 and 1).
cumulativeCutUpper Returns the upper bound of cumulative cut method (between 0 and 1).
extent Returns the raster extent.
extentFromString Deserialize Extent
extentString Returns a string to serialize Extent
limits Returns the raster limits.
limitsFromString Deserialize Limits
limitsString Returns a string to serialize Limits
readXml Deserialize object.
setCumulativeCutLower Sets the lower bound of cumulative cut method (between 0 and 1).
setCumulativeCutUpper Sets the upper bound of cumulative cut method (between 0 and 1).
setExtent Sets the extent.
setLimits Sets the limits.
setStatAccuracy Sets the statistics accuracy.
setStdDevFactor Sets the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]
statAccuracy Returns the raster statistic accuracy.
statAccuracyFromString Deserialize StatAccuracy
statAccuracyString Returns a string to serialize StatAccuracy
stdDevFactor Returns the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]
writeXml Serialize object.

Signals

Attributes

CUMULATIVE_CUT_LOWER
CUMULATIVE_CUT_UPPER
CumulativeCut
CurrentCanvas
DEFAULT_STDDEV_FACTOR
Estimated
Exact
MinMax
None_
StdDev
UpdatedCanvas
WholeRaster
CUMULATIVE_CUT_LOWER = 0.02
CUMULATIVE_CUT_UPPER = 0.98
CumulativeCut = 3
CurrentCanvas = 1
DEFAULT_STDDEV_FACTOR = 2.0
Estimated = 1
Exact = 0
class Extent

Bases: int

class Limits

Bases: int

MinMax = 1
None_ = 0
class StatAccuracy

Bases: int

StdDev = 2
UpdatedCanvas = 2
WholeRaster = 0
cumulativeCutLower(self) → float

Returns the lower bound of cumulative cut method (between 0 and 1).

cumulativeCutUpper(self) → float

Returns the upper bound of cumulative cut method (between 0 and 1).

extent(self) → QgsRasterMinMaxOrigin.Extent

Returns the raster extent.

extentFromString(extent: str) → QgsRasterMinMaxOrigin.Extent

Deserialize Extent

extentString(extent: QgsRasterMinMaxOrigin.Extent) → str

Returns a string to serialize Extent

limits(self) → QgsRasterMinMaxOrigin.Limits

Returns the raster limits.

limitsFromString(limits: str) → QgsRasterMinMaxOrigin.Limits

Deserialize Limits

limitsString(limits: QgsRasterMinMaxOrigin.Limits) → str

Returns a string to serialize Limits

readXml(self, elem: QDomElement)

Deserialize object.

setCumulativeCutLower(self, val: float)

Sets the lower bound of cumulative cut method (between 0 and 1).

setCumulativeCutUpper(self, val: float)

Sets the upper bound of cumulative cut method (between 0 and 1).

setExtent(self, extent: QgsRasterMinMaxOrigin.Extent)

Sets the extent.

setLimits(self, limits: QgsRasterMinMaxOrigin.Limits)

Sets the limits.

setStatAccuracy(self, accuracy: QgsRasterMinMaxOrigin.StatAccuracy)

Sets the statistics accuracy.

setStdDevFactor(self, val: float)

Sets the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]

statAccuracy(self) → QgsRasterMinMaxOrigin.StatAccuracy

Returns the raster statistic accuracy.

statAccuracyFromString(accuracy: str) → QgsRasterMinMaxOrigin.StatAccuracy

Deserialize StatAccuracy

statAccuracyString(accuracy: QgsRasterMinMaxOrigin.StatAccuracy) → str

Returns a string to serialize StatAccuracy

stdDevFactor(self) → float

Returns the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]

writeXml(self, doc: QDomDocument, parentElem: QDomElement)

Serialize object.