Public Member Functions | |
GDALAllValidMaskBand (GDALRasterBand *) | |
virtual GDALRasterBand * | GetMaskBand () |
Return the mask band associated with the band. | |
virtual int | GetMaskFlags () |
Return the status flags of the mask band associated with the band. | |
Protected Member Functions | |
virtual CPLErr | IReadBlock (int, int, void *) |
GDALRasterBand * GDALAllValidMaskBand::GetMaskBand | ( | ) | [virtual] |
Return the mask band associated with the band.
The GDALRasterBand class includes a default implementation of GetMaskBand() that returns one of four default implementations :
If a corresponding .msk file exists it will be used for the mask band. If the dataset has a NODATA_VALUES metadata item, an instance of the new GDALNoDataValuesMaskBand class will be returned. GetMaskFlags() will return GMF_NODATA | GMF_PER_DATASET.
Reimplemented from GDALRasterBand.
int GDALAllValidMaskBand::GetMaskFlags | ( | ) | [virtual] |
Return the status flags of the mask band associated with the band.
The GetMaskFlags() method returns an bitwise OR-ed set of status flags with the following available definitions that may be extended in the future:
GMF_ALL_VALID(0x01): There are no invalid pixels, all mask values will be 255. When used this will normally be the only flag set. GMF_PER_DATASET(0x02): The mask band is shared between all bands on the dataset. GMF_ALPHA(0x04): The mask band is actually an alpha band and may have values other than 0 and 255. GMF_NODATA(0x08): Indicates the mask is actually being generated from nodata values. (mutually exclusive of GMF_ALPHA)
The GDALRasterBand class includes a default implementation of GetMaskBand() that returns one of four default implementations :
Reimplemented from GDALRasterBand.