Class: QgsRasterHistogram¶
A container for a histogram of a single raster band.
It is used to cache computed histograms in raster providers.
Attributes
The gdal band number (starts at 1) |
|
Number of bins (intervals,buckets) in histogram. |
|
Extent used to calc histogram |
|
Number of rows used to calc histogram |
|
Stores the histogram for a given layer |
|
Whether histogram includes out of range values (in first and last bin) |
|
The maximum histogram value. |
|
The minimum histogram value. |
|
The number of non NULL cells used to calculate histogram. |
|
Histogram is valid |
|
Number of columns used to calc histogram |
- class qgis.core.QgsRasterHistogram[source]¶
Bases:
object
- __init__()
Constructor for an invalid QgsRasterHistogram.
- __init__(a0: QgsRasterHistogram)
- Parameters:
a0 (QgsRasterHistogram)
- bandNumber: int¶
The gdal band number (starts at 1)
- binCount: int¶
Number of bins (intervals,buckets) in histogram.
- extent: QgsRectangle¶
Extent used to calc histogram
- height: int¶
Number of rows used to calc histogram
- histogramVector: QgsRasterHistogram.HistogramVector¶
Stores the histogram for a given layer
- includeOutOfRange: bool¶
Whether histogram includes out of range values (in first and last bin)
- maximum: float¶
The maximum histogram value.
- minimum: float¶
The minimum histogram value.
- nonNullCount: int¶
The number of non NULL cells used to calculate histogram.
- valid: bool¶
Histogram is valid
- width: int¶
Number of columns used to calc histogram