Class: QgsRasterNuller¶
- class qgis.core.QgsRasterNuller¶
Bases:
QgsRasterInterface
Raster pipe that deals with null values.
Methods
- rtype:
int
- param bandNo:
- rtype:
Optional[QgsRasterNuller]
- param bandNo:
Fill in histogram defaults if not specified
Fill in statistics defaults if not specified
- param bandNo:
- param bandNo:
Sets the output no data value.
- class NoData¶
- class NoData(a0: 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 = None) QgsRasterBlock | None ¶
- Parameters:
bandNo (int)
extent (QgsRectangle)
width (int)
height (int)
feedback (Optional[QgsRasterBlockFeedback] = None)
- Return type:
Optional[QgsRasterBlock]
- clone(self) QgsRasterNuller | None ¶
- Return type:
Optional[QgsRasterNuller]
- dataType(self, bandNo: int) Qgis.DataType ¶
- Parameters:
bandNo (int)
- Return type:
- initHistogram(self, histogram: QgsRasterHistogram, bandNo: int, binCount: int, minimum: Any = Py_None, maximum: Any = 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 = QgsRasterBandStats.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:
bandNo (int)
noData (Iterable[QgsRasterRange])
- setOutputNoDataValue(self, bandNo: int, noData: float)¶
Sets the output no data value.
- Parameters:
bandNo (int)
noData (float)