[gdal-dev] GDALSetRasterNoDataValue and NaN

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

Re: [gdal-dev] GDALSetRasterNoDataValue and NaN

2012-08-21 Thread Mateusz Loskot
On 21 August 2012 12:01, Radim Blazek radim.bla...@gmail.com wrote: Hi, is it safe to use GDALSetRasterNoDataValue() with std::numeric_limitsdouble::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

Re: [gdal-dev] GDALSetRasterNoDataValue and NaN

2012-08-21 Thread Even Rouault
Selon Radim Blazek radim.bla...@gmail.com: Hi, is it safe to use GDALSetRasterNoDataValue() with std::numeric_limitsdouble::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