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

noData

param bandNo

setNoData

param bandNo

setOutputNoDataValue

Sets the output no data value.

class NoData
class NoData(QgsRasterNuller.NoData) None

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

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