38 , mExtent( outputExtent )
42 , mTransformContext( transformContext )
59 mError = mWriter.
writeRaster( mPipe.get(), mColumns, mRows, mExtent, mCrs, mTransformContext, mFeedback.get() );
72 if ( !mFeedback->errors().isEmpty() )
73 errorMsg = mFeedback->errors().front();
QgsTask task which performs a QgsRasterFileWriter layer saving operation as a background task...
A rectangle specified with double values.
void setProgress(double progress)
Sets the task's current progress.
Base class for processing modules.
const QgsCoordinateReferenceSystem & crs
void progressChanged(double progress)
Emitted when the feedback object reports a progress change.
Abstract base class for long running background tasks.
void cancel() override
Notifies the task that it should terminate.
Q_DECL_DEPRECATED WriterError writeRaster(const QgsRasterPipe *pipe, int nCols, int nRows, const QgsRectangle &outputExtent, const QgsCoordinateReferenceSystem &crs, QgsRasterBlockFeedback *feedback=nullptr)
Write raster file.
Contains information about the context in which a coordinate transform is executed.
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.
void writeComplete(const QString &outputUrl)
Emitted when writing the layer is successfully completed.
virtual void cancel()
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.
This class represents a coordinate reference system (CRS).
void errorOccurred(int error)
Emitted when an error occurs which prevented the file being written (or if the task is canceled)...
Feedback object tailored for raster block reading.
QString outputUrl() const
Returns the output URL for the raster.
The raster file writer which allows you to save a raster to a new file.