2017-06-01 15:39:31 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/raster/qgsrasterbandstats.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-12-30 04:56:31 +00:00
|
|
|
|
2005-11-20 01:57:36 +00:00
|
|
|
class QgsRasterBandStats
|
|
|
|
{
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
The RasterBandStats struct is a container for statistics about a single
|
|
|
|
raster band.
|
2007-01-09 02:39:15 +00:00
|
|
|
%End
|
|
|
|
|
2017-06-01 15:39:31 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsrasterbandstats.h"
|
|
|
|
%End
|
2005-11-20 01:57:36 +00:00
|
|
|
public:
|
2012-09-24 02:28:15 +02:00
|
|
|
enum Stats
|
|
|
|
{
|
2014-05-27 23:22:50 +02:00
|
|
|
None,
|
|
|
|
Min,
|
|
|
|
Max,
|
|
|
|
Range,
|
|
|
|
Sum,
|
|
|
|
Mean,
|
|
|
|
StdDev,
|
|
|
|
SumOfSquares,
|
|
|
|
All
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
QgsRasterBandStats();
|
|
|
|
|
|
|
|
bool contains( const QgsRasterBandStats &s ) const;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Compares region, size etc. not collected statistics
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
int bandNumber;
|
|
|
|
|
2013-11-02 13:52:45 +01:00
|
|
|
qgssize elementCount;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2008-11-01 18:36:02 +00:00
|
|
|
double maximumValue;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
double minimumValue;
|
|
|
|
|
2008-01-11 06:38:10 +00:00
|
|
|
double mean;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
double range;
|
|
|
|
|
2008-01-11 06:38:10 +00:00
|
|
|
double stdDev;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
int statsGathered;
|
|
|
|
|
2008-01-11 06:38:10 +00:00
|
|
|
double sum;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
double sumOfSquares;
|
|
|
|
|
|
|
|
int width;
|
|
|
|
|
|
|
|
int height;
|
|
|
|
|
|
|
|
QgsRectangle extent;
|
2005-11-20 01:57:36 +00:00
|
|
|
};
|
2017-06-01 15:39:31 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/raster/qgsrasterbandstats.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|