24#include "moc_qgsrasterfilewritertask.cpp"
42 , mExtent( outputExtent )
46 , mTransformContext( transformContext )
50 mFeedback->setRenderContext( renderContext );
68 mError = mWriter.writeRaster( mPipe.get(), mColumns, mRows, mExtent, mCrs, mTransformContext, mFeedback.get() );
81 if ( !mFeedback->errors().isEmpty() )
82 errorMsg = mFeedback->errors().front();
@ Success
Successful export.
@ Export
Renderer used for printing or exporting to a file.
Represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
void progressChanged(double progress)
Emitted when the feedback object reports a progress change.
Feedback object tailored for raster block reading.
~QgsRasterFileWriterTask() override
void writeComplete(const QString &outputUrl)
Emitted when writing the layer is successfully completed.
void cancel() override
Notifies the task that it should terminate.
Q_DECL_DEPRECATED QgsRasterFileWriterTask(const QgsRasterFileWriter &writer, QgsRasterPipe *pipe, int columns, int rows, const QgsRectangle &outputExtent, const QgsCoordinateReferenceSystem &crs)
Constructor for QgsRasterFileWriterTask.
void errorOccurred(int error)
Emitted when an error occurs which prevented the file being written (or if the task is canceled).
void finished(bool result) override
If the task is managed by a QgsTaskManager, this will be called after the task has finished (whether ...
bool run() override
Performs the task's operation.
The raster file writer which allows you to save a raster to a new file.
Contains a pipeline of raster interfaces for sequential raster processing.
A rectangle specified with double values.
Contains information about the context of a rendering operation.
void setRendererUsage(Qgis::RendererUsage usage)
Sets the renderer usage.
virtual void cancel()
Notifies the task that it should terminate.
QgsTask(const QString &description=QString(), QgsTask::Flags flags=AllFlags)
Constructor for QgsTask.
@ CanCancel
Task can be canceled.
void setProgress(double progress)
Sets the task's current progress.