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;
185 GDALDriverH openOutputDriver();
197 void outputGeoTransform(
double *transform )
const;
200 Result processCalculationGPU( std::unique_ptr< QgsRasterCalcNode > calcNode,
QgsFeedback *feedback =
nullptr );
202 QString mFormulaString;
204 QString mOutputFormat;
211 int mNumOutputColumns = 0;
213 int mNumOutputRows = 0;
218 QVector<QgsRasterCalculatorEntry> mRasterEntries;
This class represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Represents an individual raster layer/band number entry within a raster calculation.
QString ref
Name of entry.
Performs raster layer calculations.
Result
Result of the calculation.
Represents a raster layer.
A rectangle specified with double values.
std::unique_ptr< std::remove_pointer< GDALDatasetH >::type, GDALDatasetCloser > dataset_unique_ptr
Scoped GDAL dataset.
const QgsCoordinateReferenceSystem & outputCrs