#7097 closed defect (fixed)
Non-finite nodata values are getting clamped
Reported by: | cdestigter | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 2.2.3 |
Component: | default | Version: | svn-trunk |
Severity: | normal | Keywords: | |
Cc: |
Description
In [31514] clamping was added for invalid nodata values.
Unfortunately it didn't check if the values were finite, so non-finite values are getting clamped too.
However, -inf/inf/nan are actually very _good_ values for nodata:
- they aren't likely to otherwise appear in the band data
- they're specific, known values that can't be mathsed, rounded or otherwise munged.
We've been using them without problems for several years for nodata in our float-band gridded rasters.
This commit fixes the problem: https://github.com/koordinates/gdal/commit/1d465f64c327a95056c482c14c19744af07ae94c
Change History (3)
comment:1 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 6 years ago
Milestone: | → 2.2.3 |
---|
Note:
See TracTickets
for help on using tickets.
In 40478: