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

initStatistics

noData

param bandNo

setNoData

param bandNo

setOutputNoDataValue

Sets the output no data value.

class NoData

Bases: sip.wrapper

QgsRasterNuller.NoData(QgsRasterNuller.NoData)

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()
initStatistics()
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) –