[GRASS-user] cannot write raster w/ max = inf
Even Rouault
even.rouault at spatialys.com
Sat Nov 11 02:14:44 PST 2017
> 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.
--
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20171111/3ae5ea9d/attachment.html>
More information about the grass-user
mailing list