mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Added Python wrappers for QgsZonalStatistics
This commit is contained in:
parent
c5d1f7a479
commit
3cac713cc3
@ -9,4 +9,4 @@
|
|||||||
|
|
||||||
%Include qgsgeometryanalyzer.sip
|
%Include qgsgeometryanalyzer.sip
|
||||||
%Include qgsoverlayanalyzer.sip
|
%Include qgsoverlayanalyzer.sip
|
||||||
|
%Include qgszonalstatistics.sip
|
||||||
|
21
python/analysis/qgszonalstatistics.sip
Normal file
21
python/analysis/qgszonalstatistics.sip
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/** \ingroup analysis
|
||||||
|
* The QGis class that calculates raster statistics (count, sum, mean) for
|
||||||
|
* a polygon or multipolygon layer and appends the results as attributes
|
||||||
|
*/
|
||||||
|
|
||||||
|
class QgsZonalStatistics
|
||||||
|
{
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include <qgszonalstatistics.h>
|
||||||
|
%End
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
QgsZonalStatistics( QgsVectorLayer* polygonLayer, const QString& rasterFile,
|
||||||
|
const QString& attributePrefix = "", int rasterBand = 1 );
|
||||||
|
~QgsZonalStatistics();
|
||||||
|
|
||||||
|
/**Starts the calculation
|
||||||
|
@return 0 in case of success*/
|
||||||
|
int calculateStatistics( QProgressDialog* p );
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user