18#ifndef QGSRASTERCALCULATOR_H
19#define QGSRASTERCALCULATOR_H
27#include "qgis_analysis.h"
55 static QVector<QgsRasterCalculatorEntry> rasterEntries();
85 CreateOutputError = 1,
107 QgsRasterCalculator(
const QString &formulaString,
const QString &outputFile,
const QString &outputFormat,
108 const QgsRectangle &outputExtent,
int nOutputColumns,
int nOutputRows,
109 const QVector<QgsRasterCalculatorEntry> &rasterEntries,
125 QgsRasterCalculator(
const QString &formulaString,
const QString &outputFile,
const QString &outputFormat,
127 int nOutputColumns,
int nOutputRows,
128 const QVector<QgsRasterCalculatorEntry> &rasterEntries,
143 Q_DECL_DEPRECATED
QgsRasterCalculator(
const QString &formulaString,
const QString &outputFile,
const QString &outputFormat,
144 const QgsRectangle &outputExtent,
int nOutputColumns,
int nOutputRows,
const QVector<QgsRasterCalculatorEntry> &rasterEntries )
SIP_DEPRECATED;
159 Q_DECL_DEPRECATED
QgsRasterCalculator(
const QString &formulaString,
const QString &outputFile,
const QString &outputFormat,
170 Result processCalculation(
QgsFeedback *feedback =
nullptr );
176 QString lastError()
const;
186 GDALDriverH openOutputDriver();
198 void outputGeoTransform(
double *transform )
const;
201 Result processCalculationGPU( std::unique_ptr< QgsRasterCalcNode > calcNode,
QgsFeedback *feedback =
nullptr );
203 QString mFormulaString;
205 QString mOutputFormat;
212 int mNumOutputColumns = 0;
214 int mNumOutputRows = 0;
219 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