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.
Methods
Returns the lower bound of cumulative cut method (between 0 and 1).
Returns the upper bound of cumulative cut method (between 0 and 1).
Returns the raster extent.
Deserialize Extent
Returns a string to serialize Extent
Returns the raster limits.
Deserialize Limits
Returns a string to serialize Limits
Deserialize object.
Sets the lower bound of cumulative cut method (between 0 and 1).
Sets the upper bound of cumulative cut method (between 0 and 1).
Sets the extent.
Sets the limits.
Sets the statistics accuracy.
Sets the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]
Returns the raster statistic accuracy.
Deserialize StatAccuracy
Returns a string to serialize StatAccuracy
Returns the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]
Serialize object.
Attributes
-
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).
- Return type
float
-
cumulativeCutUpper
(self) → float¶ Returns the upper bound of cumulative cut method (between 0 and 1).
- Return type
float
-
extent
(self) → QgsRasterMinMaxOrigin.Extent¶ Returns the raster extent.
- Return type
-
extentFromString
(extent: str) → QgsRasterMinMaxOrigin.Extent¶ Deserialize Extent
- Parameters
extent (str) –
- Return type
-
extentString
(extent: QgsRasterMinMaxOrigin.Extent) → str¶ Returns a string to serialize Extent
- Parameters
extent (QgsRasterMinMaxOrigin.Extent) –
- Return type
str
-
limits
(self) → QgsRasterMinMaxOrigin.Limits¶ Returns the raster limits.
- Return type
-
limitsFromString
(limits: str) → QgsRasterMinMaxOrigin.Limits¶ Deserialize Limits
- Parameters
limits (str) –
- Return type
-
limitsString
(limits: QgsRasterMinMaxOrigin.Limits) → str¶ Returns a string to serialize Limits
- Parameters
limits (QgsRasterMinMaxOrigin.Limits) –
- Return type
str
-
readXml
(self, elem: QDomElement)¶ Deserialize object.
- Parameters
elem (QDomElement) –
-
setCumulativeCutLower
(self, val: float)¶ Sets the lower bound of cumulative cut method (between 0 and 1).
- Parameters
val (float) –
-
setCumulativeCutUpper
(self, val: float)¶ Sets the upper bound of cumulative cut method (between 0 and 1).
- Parameters
val (float) –
-
setExtent
(self, extent: QgsRasterMinMaxOrigin.Extent)¶ Sets the extent.
- Parameters
extent (QgsRasterMinMaxOrigin.Extent) –
-
setLimits
(self, limits: QgsRasterMinMaxOrigin.Limits)¶ Sets the limits.
- Parameters
limits (QgsRasterMinMaxOrigin.Limits) –
-
setStatAccuracy
(self, accuracy: QgsRasterMinMaxOrigin.StatAccuracy)¶ Sets the statistics accuracy.
- Parameters
accuracy (QgsRasterMinMaxOrigin.StatAccuracy) –
-
setStdDevFactor
(self, val: float)¶ Sets the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]
- Parameters
val (float) –
-
statAccuracy
(self) → QgsRasterMinMaxOrigin.StatAccuracy¶ Returns the raster statistic accuracy.
- Return type
-
statAccuracyFromString
(accuracy: str) → QgsRasterMinMaxOrigin.StatAccuracy¶ Deserialize StatAccuracy
- Parameters
accuracy (str) –
- Return type
-
statAccuracyString
(accuracy: QgsRasterMinMaxOrigin.StatAccuracy) → str¶ Returns a string to serialize StatAccuracy
- Parameters
accuracy (QgsRasterMinMaxOrigin.StatAccuracy) –
- Return type
str
-
stdDevFactor
(self) → float¶ Returns the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]
- Return type
float
-
writeXml
(self, doc: QDomDocument, parentElem: QDomElement)¶ Serialize object.
- Parameters
doc (QDomDocument) –
parentElem (QDomElement) –
-