Re: [gdal-dev] GDALSetRasterNoDataValue and NaN

2012-08-21 Thread Even Rouault
Selon Radim Blazek : > Hi, > is it safe to use GDALSetRasterNoDataValue() with > std::numeric_limits::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

Re: [gdal-dev] GDALSetRasterNoDataValue and NaN

2012-08-21 Thread Mateusz Loskot
On 21 August 2012 12:01, Radim Blazek wrote: > Hi, > is it safe to use GDALSetRasterNoDataValue() with > std::numeric_limits::quiet_NaN()? What kind of safety do you mean? AFAICT, it does not sound sensible anyway. Use of NaN would give unreliable results, by definition of NaN: double n1 =

[gdal-dev] GDALSetRasterNoDataValue and NaN

2012-08-21 Thread Radim Blazek
Hi, is it safe to use GDALSetRasterNoDataValue() with std::numeric_limits::quiet_NaN()? Radim ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev