<div dir="ltr"><div><div><div><br><br>On Sat, Nov 11, 2017 at 11:14 AM, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br>><br>> > inf is a perfectly valid number, meaning infinity. Unfortunately, a test<br>><br>> > for inf is only available with C standard 99, and I don't know of a manual<br>><br>> > test in C for inf (or -inf) to avoid C 99. The bug is in r.out.gdal, not<br>><br>> > testing for input inf values.<br>><br>>  <br>><br>> You could use the CPLIsInf() macro from GDAL's cpl_port.h . It uses different implementations depending on the platform.<br><br></div>Nice! Thanks for the hint, using it now to test for inf during export.<br><br></div>inf values are now exported with r.out.gdal in trunk and relbr72 (r71665,6).<br><br></div>Markus M<br><br><div><div><div><div>><br>>  <br>><br>> --<br>><br>> Spatialys - Geospatial professional services<br>><br>> <a href="http://www.spatialys.com">http://www.spatialys.com</a><br><br></div></div></div></div></div>