QGIS/python/core/qgsrasterbandstats.sip
ersts 785dd83626 -Fix missed api updates in the unit tests
-Patched minor debug error in WMS provider
-Added ability to set transparency for WMS layer, closes ticket #1348. This patch needs to be reviewed on other platforms however as there seems to be a slight bug with QImage::setAlphaChannel

git-svn-id: http://svn.osgeo.org/qgis/trunk@9561 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-01 22:27:37 +00:00

49 lines
1.8 KiB
Plaintext

/** \brief The RasterBandStats struct is a container for statistics about a single
* raster band.
*/
class QgsRasterBandStats
{
%TypeHeaderCode
#include <qgsrasterbandstats.h>
%End
public:
/** \brief The name of the band that these stats belong to. */
QString bandName;
/** \brief The gdal band number (starts at 1)*/
int bandNumber;
/** \brief A flag to indicate whether this RasterBandStats struct
* is completely populated */
bool statsGathered;
/** \brief The minimum cell value in the raster band. NO_DATA values
* are ignored. This does not use the gdal GetMinimum function. */
double minimumValue;
/** \brief The maximum cell value in the raster band. NO_DATA values
* are ignored. This does not use the gdal GetMaximmum function. */
double maximumValue;
/** \brief The range is the distance between min & max. */
double range;
/** \brief The mean cell value for the band. NO_DATA values are excluded. */
double mean;
/** \brief The sum of the squares. Used to calculate standard deviation. */
double sumOfSquares;
/** \brief The standard deviation of the cell values. */
double stdDev;
/** \brief The sum of all cells in the band. NO_DATA values are excluded. */
double sum;
/** \brief The number of cells in the band. Equivalent to height x width.
* TODO: check if NO_DATA are excluded!*/
int elementCount;
/** \brief Store the histogram for a given layer */
typedef QVector<int> HistogramVector;
//HistogramVector * histogramVector;
/** \brief whteher histogram values are estimated or completely calculated */
bool isHistogramEstimated;
/** whehter histogram compuation should include out of range values */
bool isHistogramOutOfRange;
/** Color table */
//QList<QgsColorRampShader::ColorRampItem> colorTable;
};