[GRASS-SVN] r74217 - grass/trunk/raster/r.stats.zonal
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Mar 9 12:19:25 PST 2019
Author: mmetz
Date: 2019-03-09 12:19:25 -0800 (Sat, 09 Mar 2019)
New Revision: 74217
Modified:
grass/trunk/raster/r.stats.zonal/main.c
Log:
r.stats.zonal: +history in output
Modified: grass/trunk/raster/r.stats.zonal/main.c
===================================================================
--- grass/trunk/raster/r.stats.zonal/main.c 2019-03-09 20:14:29 UTC (rev 74216)
+++ grass/trunk/raster/r.stats.zonal/main.c 2019-03-09 20:19:25 UTC (rev 74217)
@@ -87,6 +87,7 @@
int reclass;
int base_fd, cover_fd;
struct Categories cats;
+ struct History history;
CELL *base_buf;
DCELL *cover_buf;
struct Range range;
@@ -517,6 +518,10 @@
Rast_close(out_fd);
+ Rast_short_history(output, "raster", &history);
+ Rast_command_history(&history);
+ Rast_write_history(output, &history);
+
if (Rast_read_colors(covermap, "", &colors) > 0)
Rast_write_colors(output, G_mapset(), &colors);
}
More information about the grass-commit
mailing list