QGIS API Documentation
2.6.0-Brighton
|
A class that calculates raster statistics (count, sum, mean) for a polygon or multipolygon layer and appends the results as attributes. More...
#include <qgszonalstatistics.h>
Public Member Functions | |
QgsZonalStatistics (QgsVectorLayer *polygonLayer, const QString &rasterFile, const QString &attributePrefix="", int rasterBand=1) | |
~QgsZonalStatistics () | |
int | calculateStatistics (QProgressDialog *p) |
Starts the calculation. |
A class that calculates raster statistics (count, sum, mean) for a polygon or multipolygon layer and appends the results as attributes.
QgsZonalStatistics::QgsZonalStatistics | ( | QgsVectorLayer * | polygonLayer, |
const QString & | rasterFile, | ||
const QString & | attributePrefix = "" , |
||
int | rasterBand = 1 |
||
) |
QgsZonalStatistics::~QgsZonalStatistics | ( | ) |
int QgsZonalStatistics::calculateStatistics | ( | QProgressDialog * | p | ) |
Starts the calculation.