[gdal-dev] GDALSetRasterNoDataValue and NaN

Even Rouault even.rouault at mines-paris.org
Tue Aug 21 04:40:27 PDT 2012


Selon Radim Blazek <radim.blazek at gmail.com>:

> Hi,
> is it safe to use GDALSetRasterNoDataValue() with
> std::numeric_limits<double>::quiet_NaN()?

There have been some work done in GDAL core (mainly in statistics functions), in
some algorithms (warping for example), in some utilities and in some drivers
(GTiff, VRT) to be able to deal properly with NaN as a nodata value, but the
support might be missing in other parts, because it generally requires a
particular case to deal with it.The support has been added incrementally when
someone raised a misbehaviour in a particular area. Basically, you can grep
CPLIsNan in the source tree and it will give you a good picture of the places
where some work has been done to support it.

>
> Radim
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>




More information about the gdal-dev mailing list