Class: QgsRasterNuller

class qgis.core.QgsRasterNuller

Bases: QgsRasterInterface

Raster pipe that deals with null values.

Methods

bandCount

rtype:

int

block

param bandNo:

clone

rtype:

QgsRasterNuller

dataType

param bandNo:

initHistogram

Fill in histogram defaults if not specified

initStatistics

Fill in statistics defaults if not specified

noData

param bandNo:

setNoData

param bandNo:

setOutputNoDataValue

Sets the output no data value.

class NoData
class NoData(QgsRasterNuller.NoData)

Bases: sip.wrapper

max
min
bandCount(self) int
Return type:

int

block(self, bandNo: int, extent: QgsRectangle, width: int, height: int, feedback: QgsRasterBlockFeedback = None) QgsRasterBlock
Parameters:
Return type:

QgsRasterBlock

clone(self) QgsRasterNuller
Return type:

QgsRasterNuller

dataType(self, bandNo: int) Qgis.DataType
Parameters:

bandNo (int) –

Return type:

Qgis.DataType

initHistogram(self, histogram: QgsRasterHistogram, bandNo: int, binCount: int, minimum: object = Py_None, maximum: object = Py_None, boundingBox: QgsRectangle = QgsRectangle(), sampleSize: int = 0, includeOutOfRange: bool = False)

Fill in histogram defaults if not specified

Note

the parameters are the same as in histogram()

initStatistics(self, statistics: QgsRasterBandStats, bandNo: int, stats: int, boundingBox: QgsRectangle = QgsRectangle(), binCount: int = 0)

Fill in statistics defaults if not specified

Deprecated since version Use: Qgis.RasterBandStatistic instead of int for stats argument

initStatistics(self, statistics: QgsRasterBandStats, bandNo: int, stats: Union[Qgis.RasterBandStatistics, Qgis.RasterBandStatistic] = Qgis.RasterBandStatistic.All, boundingBox: QgsRectangle = QgsRectangle(), binCount: int = 0) Fill in statistics defaults if not specified

noData(self, bandNo: int) List[QgsRasterRange]
Parameters:

bandNo (int) –

Return type:

List[QgsRasterRange]

setNoData(self, bandNo: int, noData: Iterable[QgsRasterRange])
Parameters:
setOutputNoDataValue(self, bandNo: int, noData: float)

Sets the output no data value.

Parameters:
  • bandNo (int) –

  • noData (float) –