[GRASS-SVN] r71155 - grass/trunk/imagery/i.zc
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jun 1 02:54:58 PDT 2017
Author: mlennert
Date: 2017-06-01 02:54:58 -0700 (Thu, 01 Jun 2017)
New Revision: 71155
Modified:
grass/trunk/imagery/i.zc/main.c
Log:
i.zc: include command history in metadata of output
Modified: grass/trunk/imagery/i.zc/main.c
===================================================================
--- grass/trunk/imagery/i.zc/main.c 2017-05-31 08:56:53 UTC (rev 71154)
+++ grass/trunk/imagery/i.zc/main.c 2017-06-01 09:54:58 UTC (rev 71155)
@@ -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