Class: QgsRasterResampleFilter¶
- class qgis.core.QgsRasterResampleFilter¶
Bases:
QgsRasterInterface
Resample filter pipe for rasters.
Methods
- rtype
int
- param bandNo
- rtype
QgsRasterResampleFilter
- param bandNo
Fill in histogram defaults if not specified
Fill in statistics defaults if not specified
- rtype
float
Sets base class members from xml.
- param input
- param os
Sets resampler for zoomed in scales.
Sets resampler for zoomed out scales.
- param doc
- rtype
QgsRasterResampler
- rtype
QgsRasterResampler
- 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) QgsRasterResampleFilter ¶
- 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
- maxOversampling(self) float ¶
- Return type
float
- readXml(self, filterElem: QDomElement)¶
Sets base class members from xml. Usually called from
create()
methods of subclasses- Parameters
filterElem (QDomElement) –
- setInput(self, input: QgsRasterInterface) bool ¶
- Parameters
input (QgsRasterInterface) –
- Return type
bool
- setMaxOversampling(self, os: float)¶
- Parameters
os (float) –
- setZoomedInResampler(self, r: QgsRasterResampler)¶
Sets resampler for zoomed in scales. Takes ownership of the object
- Parameters
r (QgsRasterResampler) –
- setZoomedOutResampler(self, r: QgsRasterResampler)¶
Sets resampler for zoomed out scales. Takes ownership of the object
- Parameters
r (QgsRasterResampler) –
- writeXml(self, doc: QDomDocument, parentElem: QDomElement)¶
- Parameters
doc (QDomDocument) –
parentElem (QDomElement) –
- zoomedInResampler(self) QgsRasterResampler ¶
- Return type
- zoomedOutResampler(self) QgsRasterResampler ¶
- Return type