Selon Radim Blazek <[email protected]>:

> 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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>


_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to