Ticket #2528 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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

Changed 5 years ago by warmerdam

  • status changed from new to closed
  • resolution set to fixed

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

Changed 5 years ago by rouault

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

Note: See TracTickets for help on using tickets.