16 #ifndef QGSRASTERANALYSISUTILS_H 17 #define QGSRASTERANALYSISUTILS_H 19 #include "qgis_analysis.h" 34 namespace QgsRasterAnalysisUtils
40 void cellInfoForBBox(
const QgsRectangle &rasterBBox,
const QgsRectangle &featureBBox,
double cellSizeX,
double cellSizeY,
int &nCellsX,
int &nCellsY,
41 int rasterWidth,
int rasterHeight,
46 double cellSizeX,
double cellSizeY,
const QgsRectangle &rasterBBox,
const std::function<
void(
double )> &addValue,
bool skipNodata =
true );
49 void statisticsFromPreciseIntersection(
QgsRasterInterface *rasterInterface,
int rasterBand,
const QgsGeometry &poly,
int nCellsX,
int nCellsY,
50 double cellSizeX,
double cellSizeY,
const QgsRectangle &rasterBBox,
const std::function<
void(
double,
double )> &addValue,
bool skipNodata =
true );
53 bool validPixel(
double value );
59 std::unique_ptr< QgsProcessingParameterDefinition > createRasterTypeParameter(
const QString &name,
60 const QString &description,
73 #endif // QGSRASTERANALYSISUTILS_H A rectangle specified with double values.
DataType
Raster data types.
A geometry is the spatial representation of a feature.
Thirty two bit floating point (float)
Base class for processing filters like renderers, reprojector, resampler etc.
Base class for the definition of processing parameters.