[GRASS-SVN] r71156 - grass/branches/releasebranch_7_2/imagery/i.zc

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 1 03:01:54 PDT 2017


Author: mlennert
Date: 2017-06-01 03:01:54 -0700 (Thu, 01 Jun 2017)
New Revision: 71156

Modified:
   grass/branches/releasebranch_7_2/imagery/i.zc/main.c
Log:
i.zc: include command history in metadata of output (backport from trunk, r71155)

Modified: grass/branches/releasebranch_7_2/imagery/i.zc/main.c
===================================================================
--- grass/branches/releasebranch_7_2/imagery/i.zc/main.c	2017-06-01 09:54:58 UTC (rev 71155)
+++ grass/branches/releasebranch_7_2/imagery/i.zc/main.c	2017-06-01 10:01:54 UTC (rev 71156)
@@ -45,6 +45,7 @@
     double *data[2];		/* Data structure containing real & complex values of FFT */
     struct GModule *module;
     struct Option *input_map, *output_map, *width, *threshold, *orientations;
+    struct History hist;
 
     G_gisinit(argv[0]);
 
@@ -186,6 +187,9 @@
 	Rast_put_row(zcfd, cell_row, CELL_TYPE);
     }
     Rast_close(zcfd);
+    Rast_short_history(output_map->answer, "raster", &hist);
+    Rast_command_history(&hist);
+    Rast_write_history(output_map->answer, &hist);
 
     G_free(cell_row);
 



More information about the grass-commit mailing list