Browse Source

i.zc: include command history in metadata of output

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71155 15284696-431f-4ddb-bdfa-cd5b030d7da7
Moritz Lennert 8 years ago
parent
commit
569045b67f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      imagery/i.zc/main.c

+ 4 - 0
imagery/i.zc/main.c

@@ -45,6 +45,7 @@ int main(int argc, char *argv[])
     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 @@ int main(int argc, char *argv[])
 	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);