Class: QgsRasterBlockFeedback

class qgis.core.QgsRasterBlockFeedback(parent: QObject = None)

Bases: QgsFeedback

Construct a new raster block feedback object

Feedback object tailored for raster block reading.

New in version 3.0.

Parameters

parent

appendError(self, error: str)

Appends an error message to the stored list of errors. Should be called whenever an error is encountered while retrieving a raster block.

See also

errors()

New in version 3.8.0.

Parameters

error (str) –

childEvent()
connectNotify()
customEvent()
disconnectNotify()
errors(self) → List[str]

Returns a list of any errors encountered while retrieving the raster block.

See also

appendError()

New in version 3.8.0.

Return type

List[str]

isPreviewOnly(self) → bool

Whether the raster provider should return only data that are already available without waiting for full result. By default this flag is not enabled.

See also

setPreviewOnly()

Return type

bool

isSignalConnected()
onNewData(self)

May be emitted by raster data provider to indicate that some partial data are available and a new preview image may be produced

receivers()
renderPartialOutput(self) → bool

Whether our painter is drawing to a temporary image used just by this layer

Return type

bool

sender()
senderSignalIndex()
setPreviewOnly(self, preview: bool)

set flag whether the block request is for preview purposes only

See also

isPreviewOnly()

Parameters

preview (bool) –

setRenderPartialOutput(self, enable: bool)

Set whether our painter is drawing to a temporary image used just by this layer

Parameters

enable (bool) –

timerEvent()