Changes between Version 4 and Version 5 of rfc15_nodatabitmask
- Timestamp:
- Aug 21, 2007, 7:37:27 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
rfc15_nodatabitmask
v4 v5 17 17 {{{ 18 18 GDALRasterBand *GetNullMask(); 19 GDALNullMaskType GetNullMaskType();19 int GetNullMaskFlags(); 20 20 }}} 21 21 22 Note that the !GetNullMask() should always return a GDALRasterBand mask, even if it is only an all 255 mask with the type22 Note that the !GetNullMask() should always return a GDALRasterBand mask, even if it is only an all 255 mask with the type indicating "all valid". 23 23 24 The GDALNullMaskType enumeration has the following values:24 The !GetNullMaskFlags() method returns an ORed set of status flags with the following available definitions that may be extended in the future: 25 25 26 * G DALNMTAllValid: There are no invalid pixels, all mask values will be 255.27 * G DALNMTPerBand: The mask band is meaningful and is unique to this band (other bands may have masks with different areas of validity)28 * G DALNMTPerDataset: The mask band is meaningful and is shared between all bands on this dataset.26 * GNMF_ALL_VALID(0x01): There are no invalid pixels, all mask values will be 255. When used this will normally be the only flag set. 27 * GNMF_PER_DATASET(0x02): The mask band is shared between all bands on the dataset. 28 * GNMF_ALPHA(0x04): The mask band is actually an alpha band and may have values other than 0 and 255. 29 29 30 Note that the !GetNullMask() should always return a GDALRasterBand mask, even if it is only an all 255 mask with the type set to GDALNMTAllValid.30 Note that the !GetNullMask() should always return a GDALRasterBand mask, even if it is only an all 255 mask with the flag GNMF_ALL_VALID set. 31 31 32 32 == Default Implementation == 33 33 34 The GDALRasterBand class will include a default implementation of !GetNullMask() that returns one of two default implementations. The first default implement is a G DALNMTAllValid band that returns all 255. The second default implementation would return a mask computed by reading the imagery data and comparing it to the nodata value. The nodata based one would be used when the base band has a nodata value.34 The GDALRasterBand class will include a default implementation of !GetNullMask() that returns one of two default implementations. The first default implement is a GNMF_ALL_VALID band that returns all 255. The second default implementation would return a mask computed by reading the imagery data and comparing it to the nodata value. The nodata based one would be used when the base band has a nodata value set. 35 35 36 36 == Drivers Updated == … … 51 51 == SWIG Implications == 52 52 53 The !GetNullMask() and !GetNullMask Type() methods (and corrsponding defines) will need to be added. The bitmask should work like a normal raster band for swig purposes so minimal special work should be required.53 The !GetNullMask() and !GetNullMaskFlags() methods (and corrsponding defines) will need to be added. The bitmask should work like a normal raster band for swig purposes so minimal special work should be required. 54 54 55 55 == Testing ==