QgsGridFileWriter class

A class that does interpolation to a grid and writes the results to an ascii grid.

Constructors, destructors, conversion operators

QgsGridFileWriter(QgsInterpolator* interpolator, const QString& outputPath, const QgsRectangle& extent, int nCols, int nRows)
Constructor for QgsGridFileWriter, for the specified interpolator.

Public functions

auto writeFile(QgsFeedback* feedback = nullptr) -> int
Writes the grid file.

Function documentation

QgsGridFileWriter::QgsGridFileWriter(QgsInterpolator* interpolator, const QString& outputPath, const QgsRectangle& extent, int nCols, int nRows)

Constructor for QgsGridFileWriter, for the specified interpolator.

The outputPath argument is used to set the output file path.

The extent and nCols, nRows arguments dictate the extent and size of the output raster.

int QgsGridFileWriter::writeFile(QgsFeedback* feedback = nullptr)

Writes the grid file.

Returns 0 in case of success

An optional feedback object can be set for progress reports and cancelation support