#2528 closed defect (fixed)
nodata masks fail for negative nodata values on int16 and int32 bands.
Reported by: | warmerdam | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.5.3 |
Component: | GDAL_Raster | Version: | 1.5.0 |
Severity: | normal | Keywords: | mask |
Cc: |
Description
The !GDALNoDataBand class does not properly handle signed integer bands with negative nodata values because GDALNoDataMaskBand::IReadBlock() uses an UInt32 working buffer, and all negative values are truncated to zero when data is read into the buffers.
Change History (2)
comment:1 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 16 years ago
Same fix applied in r15130 for GDALNoDataValuesMaskBand that is roughly a copy&paste of GDALNoDataMaskBand
Note:
See TracTickets
for help on using tickets.
Fixed in trunk (r15126) and 1.5 branch (r15127).