#5692 closed defect (fixed)
GetMaskBand() doesn't work on UInt16 RGBA
Reported by: | Even Rouault | Owned by: | Even Rouault |
---|---|---|---|
Priority: | normal | Milestone: | 1.11.2 |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | normal | Keywords: | overview uint16 alpha |
Cc: |
Description
GDALRasterBand::GetMaskBand() returns ALL_VALID on a UInt16 RGBA dataset because it checks that the alpha band is of type Byte (since according to https://trac.osgeo.org/gdal/wiki/rfc15_nodatabitmask "The masks are represented as GDT_Byte bands with a value of zero indicating nodata and non-zero values indicating valid data. Normally the value 255 will be used for valid data pixels") So average overview computation on such a dataset will average everything including the transparent areas whose value is 0
Change History (2)
comment:1 by , 10 years ago
Milestone: | → 1.11.2 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 10 years ago
Note:
See TracTickets
for help on using tickets.
trunk r27857, branches/1.11 r27858 "Make GetMaskBand() work with GDT_UInt16 alpha bands (#5692)"