Class: QgsRasterNuller¶
-
class
qgis.core.
QgsRasterNuller
¶ Bases:
QgsRasterInterface
Raster pipe that deals with null values.
Methods
- rtype
int
- param bandNo
- rtype
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.
-
bandCount
(self) → int¶ - Return type
int
-
block
(self, bandNo: int, extent: QgsRectangle, width: int, height: int, feedback: QgsRasterBlockFeedback = None) → QgsRasterBlock¶ - Parameters
bandNo (int) –
extent (QgsRectangle) –
width (int) –
height (int) –
feedback (
QgsRasterBlockFeedback
= None) –
- Return type
-
clone
(self) → QgsRasterNuller¶ - Return type
-
dataType
(self, bandNo: int) → Qgis.DataType¶ - Parameters
bandNo (int) –
- Return type
-
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 = 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) –