18 #ifndef QGSRASTERCALCULATOR_H
19 #define QGSRASTERCALCULATOR_H
26 #include "qgis_analysis.h"
54 static QVector<QgsRasterCalculatorEntry> rasterEntries();
84 CreateOutputError = 1,
106 QgsRasterCalculator(
const QString &formulaString,
const QString &outputFile,
const QString &outputFormat,
107 const QgsRectangle &outputExtent,
int nOutputColumns,
int nOutputRows,
108 const QVector<QgsRasterCalculatorEntry> &rasterEntries,
124 QgsRasterCalculator(
const QString &formulaString,
const QString &outputFile,
const QString &outputFormat,
126 int nOutputColumns,
int nOutputRows,
127 const QVector<QgsRasterCalculatorEntry> &rasterEntries,
142 Q_DECL_DEPRECATED
QgsRasterCalculator(
const QString &formulaString,
const QString &outputFile,
const QString &outputFormat,
143 const QgsRectangle &outputExtent,
int nOutputColumns,
int nOutputRows,
const QVector<QgsRasterCalculatorEntry> &rasterEntries )
SIP_DEPRECATED;
158 Q_DECL_DEPRECATED
QgsRasterCalculator(
const QString &formulaString,
const QString &outputFile,
const QString &outputFormat,
169 Result processCalculation(
QgsFeedback *feedback =
nullptr );
175 QString lastError()
const;
184 GDALDriverH openOutputDriver();
194 void outputGeoTransform(
double *transform )
const;
197 Result processCalculationGPU( std::unique_ptr< QgsRasterCalcNode > calcNode,
QgsFeedback *feedback =
nullptr );
199 QString mFormulaString;
201 QString mOutputFormat;
208 int mNumOutputColumns = 0;
210 int mNumOutputRows = 0;
215 QVector<QgsRasterCalculatorEntry> mRasterEntries;
220 #endif // QGSRASTERCALCULATOR_H