Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
WMS blank for classified raster with NaN #5289
In 7.0.1, WMS renders blank image if a classified raster has NaN values and SCALE is not specified even if GDAL gives correctly NaN as nodata value.
The problem is that when min/max is calculated in mapdrawgdal.c, it skips nodata:
but not NaN which must be tested with isnan(). The result is min = max = NaN and blank image.
but a macro/function which tests both nodata value and NaN would be better. There are probably more places in mapserver where NaN is not correctly handled.