Re: cannot write raster w/ max = inf

Markus Metz <[email protected]>
Newsgroups gmane.comp.gis.grass.user
Message-ID <CAG+h=FHXq1kBP03_KY_rqE7vqbBvgj9z7XVy_nX69Wbt8L-PFA@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.