Changes between Version 2 and Version 3 of rfc15_nodatabitmask


Ignore:
Timestamp:
Aug 9, 2007, 1:12:15 PM (17 years ago)
Author:
warmerdam
Comment:

fix wiki formatting.

Legend:

Unmodified
Added
Removed
Modified
  • rfc15_nodatabitmask

    v2 v3  
    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 thetype
    2323
    2424The GDALNullMaskType enumeration has the following values:
     
    2828 * GDALNMTPerDataset: The mask band is meaningful and is shared between all bands on this dataset.
    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 type set to GDALNMTAllValid.
    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 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.   
    3535
    3636== Drivers Updated ==
     
    5757== Issues ==
    5858
    59 I'm tempted to change GetNullMaskType() into GetNullMaskFlags() and have the result be an or-ed set of flags.  It would allow us to differentiate mask bands auto generated from nodata, and add special interpretations in the future, like is-alpha or is-confidence.
     59I'm tempted to change !GetNullMaskType() into !GetNullMaskFlags() and have the result be an or-ed set of flags.  It would allow us to differentiate mask bands auto generated from nodata, and add special interpretations in the future, like is-alpha or is-confidence.
    6060
    6161 * I haven't filled in how creation of masks works.