Changes between Version 4 and Version 5 of rfc15_nodatabitmask


Ignore:
Timestamp:
Aug 21, 2007, 7:37:27 AM (17 years ago)
Author:
warmerdam
Comment:

switch to mask flags.

Legend:

Unmodified
Added
Removed
Modified
  • rfc15_nodatabitmask

    v4 v5  
    1717{{{
    1818    GDALRasterBand *GetNullMask();
    19     GDALNullMaskType GetNullMaskType();
     19    int             GetNullMaskFlags();
    2020}}}
    2121
    22 Note that the !GetNullMask() should always return a GDALRasterBand mask, even if it is only an all 255 mask with thetype
     22Note that the !GetNullMask() should always return a GDALRasterBand mask, even if it is only an all 255 mask with the type indicating "all valid".
    2323
    24 The GDALNullMaskType enumeration has the following values:
     24The !GetNullMaskFlags() method returns an ORed set of status flags with the following available definitions that may be extended in the future:
    2525
    26  * GDALNMTAllValid: There are no invalid pixels, all mask values will be 255.
    27  * GDALNMTPerBand: The mask band is meaningful and is unique to this band (other bands may have masks with different areas of validity)
    28  * GDALNMTPerDataset: 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.
    2929
    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.
     30Note 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.
    3131
    3232== Default Implementation ==
    3333
    34 The GDALRasterBand class will include a default implementation of !GetNullMask() that returns one of two default implementations.  The first default implement is a GDALNMTAllValid 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.   
     34The 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.
    3535
    3636== Drivers Updated ==
     
    5151== SWIG Implications ==
    5252 
    53 The !GetNullMask() and !GetNullMaskType() 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.
     53The !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.
    5454
    5555== Testing ==