QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsGridFileWriter Class Reference

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

#include <qgsgridfilewriter.h>

Public Member Functions

 QgsGridFileWriter (QgsInterpolator *interpolator, const QString &outputPath, const QgsRectangle &extent, int nCols, int nRows)
 Constructor for QgsGridFileWriter, for the specified interpolator.
 
int writeFile (QgsFeedback *feedback=nullptr)
 Writes the grid file.
 

Detailed Description

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

Definition at line 35 of file qgsgridfilewriter.h.

Constructor & Destructor Documentation

◆ QgsGridFileWriter()

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.

Definition at line 25 of file qgsgridfilewriter.cpp.

Member Function Documentation

◆ writeFile()

int QgsGridFileWriter::writeFile ( QgsFeedback feedback = nullptr)

Writes the grid file.

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

Returns
0 in case of success

Definition at line 35 of file qgsgridfilewriter.cpp.


The documentation for this class was generated from the following files: