18 #ifndef QGSRASTERCALCULATOR_H 19 #define QGSRASTERCALCULATOR_H 26 #include "qgis_analysis.h" 54 static QVector<QgsRasterCalculatorEntry> rasterEntries();
84 CreateOutputError = 1,
105 QgsRasterCalculator(
const QString &formulaString,
const QString &outputFile,
const QString &outputFormat,
106 const QgsRectangle &outputExtent,
int nOutputColumns,
int nOutputRows,
107 const QVector<QgsRasterCalculatorEntry> &rasterEntries,
123 QgsRasterCalculator(
const QString &formulaString,
const QString &outputFile,
const QString &outputFormat,
125 int nOutputColumns,
int nOutputRows,
126 const QVector<QgsRasterCalculatorEntry> &rasterEntries,
141 Q_DECL_DEPRECATED
QgsRasterCalculator(
const QString &formulaString,
const QString &outputFile,
const QString &outputFormat,
142 const QgsRectangle &outputExtent,
int nOutputColumns,
int nOutputRows,
const QVector<QgsRasterCalculatorEntry> &rasterEntries )
SIP_DEPRECATED;
157 Q_DECL_DEPRECATED
QgsRasterCalculator(
const QString &formulaString,
const QString &outputFile,
const QString &outputFormat,
174 QString lastError()
const;
183 GDALDriverH openOutputDriver();
193 void outputGeoTransform(
double *transform )
const;
196 Result processCalculationGPU( std::unique_ptr< QgsRasterCalcNode > calcNode,
QgsFeedback *feedback =
nullptr );
198 QString mFormulaString;
200 QString mOutputFormat;
207 int mNumOutputColumns = 0;
209 int mNumOutputRows = 0;
214 QVector<QgsRasterCalculatorEntry> mRasterEntries;
219 #endif // QGSRASTERCALCULATOR_H A rectangle specified with double values.
Performs raster layer calculations.
This class provides qgis with the ability to render raster datasets onto the mapcanvas.
QString ref
Name of entry.
Base class for feedback objects to be used for cancellation of something running in a worker thread...
Contains information about the context in which a coordinate transform is executed.
Represents an individual raster layer/band number entry within a raster calculation.
Result
Result of the calculation.
This class represents a coordinate reference system (CRS).
const QgsCoordinateReferenceSystem & outputCrs
std::unique_ptr< std::remove_pointer< GDALDatasetH >::type, GDALDatasetCloser > dataset_unique_ptr
Scoped GDAL dataset.