Skip to content
Permalink
Browse files
Added Python wrappers for QgsZonalStatistics
  • Loading branch information
alexbruy authored and mach0 committed Nov 13, 2011
1 parent 6f25bf3 commit 97e643d45a1856b73729d57503e0b9741ef76727
Showing with 22 additions and 1 deletion.
  1. +1 −1 python/analysis/analysis.sip
  2. +21 −0 python/analysis/qgszonalstatistics.sip
@@ -9,4 +9,4 @@

%Include qgsgeometryanalyzer.sip
%Include qgsoverlayanalyzer.sip

%Include qgszonalstatistics.sip
@@ -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 );
};

0 comments on commit 97e643d

Please sign in to comment.