On Sat, Nov 11, 2017 at 11:14 AM, Even Rouault <[email protected]> wrote: > > > inf is a perfectly valid number, meaning infinity. Unfortunately, a test > > > for inf is only available with C standard 99, and I don't know of a manual > > > test in C for inf (or -inf) to avoid C 99. The bug is in r.out.gdal, not > > > testing for input inf values. > > > > You could use the CPLIsInf() macro from GDAL's cpl_port.h . It uses different implementations depending on the platform.
Nice! Thanks for the hint, using it now to test for inf during export. inf values are now exported with r.out.gdal in trunk and relbr72 (r71665,6). Markus M > > > > -- > > Spatialys - Geospatial professional services > > http://www.spatialys.com
_______________________________________________ grass-user mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/grass-user
