Opened 16 years ago

Closed 16 years ago

Last modified 16 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 by warmerdam, 16 years ago

Resolution: fixed
Status: newclosed

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

comment:2 by Even Rouault, 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.