Class: QgsRenderedLayerStatistics¶
Contains computed statistics for a layer render.
Added in version 3.42.
Class Hierarchy¶
Base classes¶
Base class for detailed information about a rendered item. |
Methods
Returns the maximum values of the computed statistics. |
|
Returns the minimum values of the computed statistics. |
|
Sets the maximum values of the computed statistics. |
|
Sets the minimum values of the computed statistics. |
- class qgis.core.QgsRenderedLayerStatistics[source]¶
Bases:
QgsRenderedItemDetails
- __init__(layerId: str | None, minimum: Iterable[float], maximum: Iterable[float])
Constructor for QgsRenderedLayerStatistics from a list of
minimum
andmaximum
.This is used to store the minimum and maximum values of a layer. Many values may be stored. For example, a raster layer may have multiple bands. In that case,
minimum
will contain the minimum value of each band andmaximum
will contain the maximum value of each band.- Parameters:
layerId (Optional[str])
minimum (Iterable[float])
maximum (Iterable[float])
- __init__(layerId: str | None, minimum: float | None = Py_None, maximum: float | None = Py_None)
Constructor for QgsRenderedLayerStatistics with only one value for
minimum
andmaximum
.- Parameters:
layerId (Optional[str])
minimum (Optional[float] = Py_None)
maximum (Optional[float] = Py_None)
- __init__(a0: QgsRenderedLayerStatistics)
- Parameters:
- maximum(self) List[float] [source]¶
Returns the maximum values of the computed statistics.
See also
- Return type:
List[float]
- maximum(self, index: int) float [source]
Returns the maximum values of the computed statistics at
index
.See also
- Parameters:
index (int)
- Return type:
float
- minimum(self) List[float] [source]¶
Returns the minimum values of the computed statistics.
See also
- Return type:
List[float]
- minimum(self, index: int) float [source]
Returns the minimum value of the computed statistics at
index
.See also
- Parameters:
index (int)
- Return type:
float
- setMaximum(self, maximum: Iterable[float])[source]¶
Sets the maximum values of the computed statistics.
See also
- Parameters:
maximum (Iterable[float])
- setMaximum(self, index: int, maximum: float) bool [source]
Sets the maximum value of the computed statistics at
index
.- Return type:
bool
- Returns:
True
if value has been set.
See also
- Parameters:
index (int)
maximum (float)