QGIS/python/core/raster/qgsrasterbandstats.sip

117 lines
2.7 KiB
Plaintext
Raw Normal View History

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 *
************************************************************************/
class QgsRasterBandStats
{
2017-06-01 15:39:31 +02:00
%Docstring
The RasterBandStats struct is a container for statistics about a single
raster band.
%End
2017-06-01 15:39:31 +02:00
%TypeHeaderCode
#include "qgsrasterbandstats.h"
%End
public:
enum Stats
{
2014-05-27 23:22:50 +02:00
None,
Min,
Max,
Range,
Sum,
Mean,
StdDev,
SumOfSquares,
All
};
QgsRasterBandStats();
bool contains( const QgsRasterBandStats &s ) const;
2017-06-01 15:39:31 +02:00
%Docstring
Compares region, size etc. not collected statistics
:rtype: bool
%End
int bandNumber;
2017-06-01 15:39:31 +02:00
%Docstring
The gdal band number (starts at 1)
%End
qgssize elementCount;
double maximumValue;
2017-06-01 15:39:31 +02:00
%Docstring
The maximum cell value in the raster band. NO_DATA values
are ignored. This does not use the gdal GetMaximmum function. *
%End
double minimumValue;
2017-06-01 15:39:31 +02:00
%Docstring
The minimum cell value in the raster band. NO_DATA values
are ignored. This does not use the gdal GetMinimum function. *
%End
double mean;
2017-06-01 15:39:31 +02:00
%Docstring
The mean cell value for the band. NO_DATA values are excluded.
%End
double range;
2017-06-01 15:39:31 +02:00
%Docstring
The range is the distance between min & max.
%End
double stdDev;
2017-06-01 15:39:31 +02:00
%Docstring
The standard deviation of the cell values.
%End
int statsGathered;
2017-06-01 15:39:31 +02:00
%Docstring
Collected statistics
%End
double sum;
2017-06-01 15:39:31 +02:00
%Docstring
The sum of all cells in the band. NO_DATA values are excluded.
%End
double sumOfSquares;
2017-06-01 15:39:31 +02:00
%Docstring
The sum of the squares. Used to calculate standard deviation.
%End
int width;
2017-06-01 15:39:31 +02:00
%Docstring
Number of columns used to calc statistics
%End
int height;
2017-06-01 15:39:31 +02:00
%Docstring
Number of rows used to calc statistics
%End
QgsRectangle extent;
2017-06-01 15:39:31 +02:00
%Docstring
Extent used to calc statistics
%End
};
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 *
************************************************************************/