Class: 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.  | 
|
Returns the raster 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.  | 
|
Returns the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]  | 
|
Serialize object.  | 
Static Methods
Deserialize Extent  | 
|
Returns a string to serialize Extent  | 
|
Deserialize Limits  | 
|
Returns a string to serialize Limits  | 
|
Deserialize StatAccuracy  | 
|
Returns a string to serialize StatAccuracy  | 
Attributes
Default cumulative cut lower limit  | 
|
Default cumulative cut upper limit  | 
|
Default standard deviation factor  | 
|
- class qgis.core.QgsRasterMinMaxOrigin[source]¶
 Bases:
object- CUMULATIVE_CUT_LOWER = 0.02¶
 Default cumulative cut lower limit
- CUMULATIVE_CUT_UPPER = 0.98¶
 Default cumulative cut upper limit
- CumulativeCut = 3¶
 
- CurrentCanvas = 1¶
 
- DEFAULT_STDDEV_FACTOR = 2.0¶
 Default standard deviation factor
- 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[source]¶
 Returns the lower bound of cumulative cut method (between 0 and 1).
- Return type:
 float
- cumulativeCutUpper(self) float[source]¶
 Returns the upper bound of cumulative cut method (between 0 and 1).
- Return type:
 float
- extent(self) QgsRasterMinMaxOrigin.Extent[source]¶
 Returns the raster extent.
- Return type:
 
- static extentFromString(extent: str | None) QgsRasterMinMaxOrigin.Extent[source]¶
 Deserialize Extent
- Parameters:
 extent (Optional[str])
- Return type:
 
- static extentString(extent: QgsRasterMinMaxOrigin.Extent) str[source]¶
 Returns a string to serialize Extent
- Parameters:
 extent (QgsRasterMinMaxOrigin.Extent)
- Return type:
 str
- limits(self) QgsRasterMinMaxOrigin.Limits[source]¶
 Returns the raster limits.
- Return type:
 
- static limitsFromString(limits: str | None) QgsRasterMinMaxOrigin.Limits[source]¶
 Deserialize Limits
- Parameters:
 limits (Optional[str])
- Return type:
 
- static limitsString(limits: QgsRasterMinMaxOrigin.Limits) str[source]¶
 Returns a string to serialize Limits
- Parameters:
 limits (QgsRasterMinMaxOrigin.Limits)
- Return type:
 str
- setCumulativeCutLower(self, val: float)[source]¶
 Sets the lower bound of cumulative cut method (between 0 and 1).
- Parameters:
 val (float)
- setCumulativeCutUpper(self, val: float)[source]¶
 Sets the upper bound of cumulative cut method (between 0 and 1).
- Parameters:
 val (float)
- setExtent(self, extent: QgsRasterMinMaxOrigin.Extent)[source]¶
 Sets the extent.
- Parameters:
 extent (QgsRasterMinMaxOrigin.Extent)
- setLimits(self, limits: QgsRasterMinMaxOrigin.Limits)[source]¶
 Sets the limits.
- Parameters:
 limits (QgsRasterMinMaxOrigin.Limits)
- setStatAccuracy(self, accuracy: QgsRasterMinMaxOrigin.StatAccuracy)[source]¶
 Sets the statistics accuracy.
- Parameters:
 accuracy (QgsRasterMinMaxOrigin.StatAccuracy)
- setStdDevFactor(self, val: float)[source]¶
 Sets the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]
- Parameters:
 val (float)
- statAccuracy(self) QgsRasterMinMaxOrigin.StatAccuracy[source]¶
 Returns the raster statistic accuracy.
- Return type:
 
- static statAccuracyFromString(accuracy: str | None) QgsRasterMinMaxOrigin.StatAccuracy[source]¶
 Deserialize StatAccuracy
- Parameters:
 accuracy (Optional[str])
- Return type:
 
- static statAccuracyString(accuracy: QgsRasterMinMaxOrigin.StatAccuracy) str[source]¶
 Returns a string to serialize StatAccuracy
- Parameters:
 accuracy (QgsRasterMinMaxOrigin.StatAccuracy)
- Return type:
 str