Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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 Changed 11 years ago by warmerdam

Resolution: fixed
Status: newclosed

Fixed in trunk (r15126) and 1.5 branch (r15127).

comment:2 Changed 11 years ago by Even Rouault

Same fix applied in r15130 for GDALNoDataValuesMaskBand that is roughly a copy&paste of GDALNoDataMaskBand

Note: See TracTickets for help on using tickets.