[GRASS-SVN] r58970 - grass/trunk/raster/r.li/r.li.daemon
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Feb 9 03:47:27 PST 2014
Author: neteler
Date: 2014-02-09 03:47:26 -0800 (Sun, 09 Feb 2014)
New Revision: 58970
Modified:
grass/trunk/raster/r.li/r.li.daemon/daemon.c
Log:
r.li.*: tell user where the ASCII file output is written to
Modified: grass/trunk/raster/r.li/r.li.daemon/daemon.c
===================================================================
--- grass/trunk/raster/r.li/r.li.daemon/daemon.c 2014-02-09 11:47:21 UTC (rev 58969)
+++ grass/trunk/raster/r.li/r.li.daemon/daemon.c 2014-02-09 11:47:26 UTC (rev 58970)
@@ -99,6 +99,7 @@
G_fatal_error(_("Cannot create random access file"));
}
else {
+ /* text file output */
/* check if ~/.grass7/ exists */
sprintf(out, "%s/.grass7/", G_home());
doneDir = G_mkdir(out);
@@ -139,20 +140,22 @@
result = doneJob.f.f_d.res;
/* output */
if (parsed != MVWIN) {
+ /* text file output */
print_Output(res, doneJob);
}
else {
- /*raster output */
+ /* raster output */
raster_Output(random_access, doneJob.f.f_d.aid, g,
doneJob.f.f_d.res);
}
}
else {
if (parsed != MVWIN) {
+ /* text file output */
error_Output(res, doneJob);
}
else {
- /* printf("todo "); fflush(stdout); */
+ /* printf("todo"); fflush(stdout); */
/* TODO write to raster NULL ??? */
}
}
@@ -172,6 +175,9 @@
Rast_short_history(output, "raster", &history);
Rast_command_history(&history);
Rast_write_history(output, &history);
+ } else {
+ /* text file output */
+ G_message("Result written to ASCII file <%s>", out);
}
return 1;
More information about the grass-commit
mailing list