Class: QgsRasterHistogram

A container for a histogram of a single raster band.

It is used to cache computed histograms in raster providers.

Attributes

bandNumber

The gdal band number (starts at 1)

binCount

Number of bins (intervals,buckets) in histogram.

extent

Extent used to calc histogram

height

Number of rows used to calc histogram

histogramVector

Stores the histogram for a given layer

includeOutOfRange

Whether histogram includes out of range values (in first and last bin)

maximum

The maximum histogram value.

minimum

The minimum histogram value.

nonNullCount

The number of non NULL cells used to calculate histogram.

valid

Histogram is valid

width

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