[GRASS-SVN] r59087 - grass/trunk/raster/r.li/r.li.daemon
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 18 08:12:43 PST 2014
Author: mmetz
Date: 2014-02-18 08:12:43 -0800 (Tue, 18 Feb 2014)
New Revision: 59087
Modified:
grass/trunk/raster/r.li/r.li.daemon/daemon.c
Log:
r.li.daemon: print NULL for NULL values
Modified: grass/trunk/raster/r.li/r.li.daemon/daemon.c
===================================================================
--- grass/trunk/raster/r.li/r.li.daemon/daemon.c 2014-02-18 15:32:06 UTC (rev 59086)
+++ grass/trunk/raster/r.li/r.li.daemon/daemon.c 2014-02-18 16:12:43 UTC (rev 59087)
@@ -656,7 +656,10 @@
char s[100];
int len;
- sprintf(s, "RESULT %i|%.15g\n", m.f.f_d.aid, m.f.f_d.res);
+ if (Rast_is_d_null_value(&m.f.f_d.res))
+ sprintf(s, "RESULT %i|NULL\n", m.f.f_d.aid);
+ else
+ sprintf(s, "RESULT %i|%.15g\n", m.f.f_d.aid, m.f.f_d.res);
len = strlen(s);
if (write(out, s, len) == len)
More information about the grass-commit
mailing list