Non-finite nodata values are getting clamped
|Reported by:||cdestigter||Owned by:||warmerdam|
In  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