[Gdal-dev] RFC 15: Band Masks

Frank Warmerdam warmerdam at pobox.com
Tue Aug 21 13:04:05 EDT 2007


Simon Perkins wrote:
> This all seems reasonable to me. Just to clarify: in the case where 
> there is a genuine binary valued bitmaks per raster band, will 
> GetMaskFlags() return 0? i.e. is it intended that there is no specific 
> flag for GMF_PER_BAND?

Sy,

PER_BAND is now the assumption unless PER_DATASET is set.

So yes, GetMaskFlags() would normally return zero when there is a
"real" band specific mask not derived from nodata, and not just the alpha.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list