Class: QgsGridFileWriter¶
- class qgis.analysis.QgsGridFileWriter¶
Bases:
sip.wrapper
A class that does interpolation to a grid and writes the results to an ascii grid.
QgsGridFileWriter(interpolator:
QgsInterpolator
, outputPath: str, extent:QgsRectangle
, nCols: int, nRows: int) Constructor forQgsGridFileWriter
, for the specifiedinterpolator
.The
outputPath
argument is used to set the output file path.The
extent
andnCols
,nRows
arguments dictate the extent and size of the output raster.QgsGridFileWriter(
QgsGridFileWriter
)- writeFile(self, feedback: QgsFeedback = None) int ¶
Writes the grid file.
An optional
feedback
object can be set for progress reports and cancellation support- Return type
int
- Returns
0 in case of success
- Parameters
feedback (
QgsFeedback
= None) –