GDAL
Public Member Functions | Public Attributes

VRTFuncSource Class Reference

Inheritance diagram for VRTFuncSource:
VRTSource

List of all members.

Public Member Functions

virtual CPLErr XMLInit (CPLXMLNode *, const char *)
virtual CPLXMLNodeSerializeToXML (const char *pszVRTPath)
virtual CPLErr RasterIO (int nXOff, int nYOff, int nXSize, int nYSize, void *pData, int nBufXSize, int nBufYSize, GDALDataType eBufType, GSpacing nPixelSpace, GSpacing nLineSpace, GDALRasterIOExtraArg *psExtraArg)
virtual double GetMinimum (int nXSize, int nYSize, int *pbSuccess)
virtual double GetMaximum (int nXSize, int nYSize, int *pbSuccess)
virtual CPLErr ComputeRasterMinMax (int nXSize, int nYSize, int bApproxOK, double *adfMinMax)
 Compute the min/max values for a band.
virtual CPLErr ComputeStatistics (int nXSize, int nYSize, int bApproxOK, double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev, GDALProgressFunc pfnProgress, void *pProgressData)
virtual CPLErr GetHistogram (int nXSize, int nYSize, double dfMin, double dfMax, int nBuckets, GUIntBig *panHistogram, int bIncludeOutOfRange, int bApproxOK, GDALProgressFunc pfnProgress, void *pProgressData)

Public Attributes

VRTImageReadFunc pfnReadFunc
void * pCBData
GDALDataType eType
float fNoDataValue

Member Function Documentation

CPLErr VRTFuncSource::ComputeRasterMinMax ( int  nXSize,
int  nYSize,
int  bApproxOK,
double *  adfMinMax 
) [virtual]

Compute the min/max values for a band.

If approximate is OK, then the band's GetMinimum()/GetMaximum() will be trusted. If it doesn't work, a subsample of blocks will be read to get an approximate min/max. If the band has a nodata value it will be excluded from the minimum and maximum.

If bApprox is FALSE, then all pixels will be read and used to compute an exact range.

This method is the same as the C function GDALComputeRasterMinMax().

Parameters:
bApproxOKTRUE if an approximate (faster) answer is OK, otherwise FALSE.
adfMinMaxthe array in which the minimum (adfMinMax[0]) and the maximum (adfMinMax[1]) are returned.
Returns:
CE_None on success or CE_Failure on failure.

Implements VRTSource.


The documentation for this class was generated from the following files:

Generated for GDAL by doxygen 1.7.3.