Class: QgsGridFileWriter¶
A class that does interpolation to a grid and writes the results to an ascii grid.
Methods
Writes the grid file. |
- class qgis.analysis.QgsGridFileWriter[source]¶
Bases:
object- __init__(interpolator: QgsInterpolator | None, outputPath: str | None, extent: QgsRectangle, nCols: int, nRows: int)
Constructor for QgsGridFileWriter, for the specified
interpolator.The
outputPathargument is used to set the output file path.The
extentandnCols,nRowsarguments dictate the extent and size of the output raster.- Parameters:
interpolator (Optional[QgsInterpolator])
outputPath (Optional[str])
extent (QgsRectangle)
nCols (int)
nRows (int)
- __init__(a0: QgsGridFileWriter)
- Parameters:
a0 (QgsGridFileWriter)
- writeFile(self, feedback: QgsFeedback | None = None) int[source]¶
Writes the grid file.
An optional
feedbackobject can be set for progress reports and cancellation support- Return type:
int
- Returns:
0 in case of success
- Parameters:
feedback (Optional[QgsFeedback] = None)