[GRASS-SVN] r63406 - grass-addons/grass7/imagery/i.theilsen

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 6 21:45:06 PST 2014


Author: ychemin
Date: 2014-12-06 21:45:06 -0800 (Sat, 06 Dec 2014)
New Revision: 63406

Modified:
   grass-addons/grass7/imagery/i.theilsen/main.c
Log:
write colour tables to file

Modified: grass-addons/grass7/imagery/i.theilsen/main.c
===================================================================
--- grass-addons/grass7/imagery/i.theilsen/main.c	2014-12-07 03:42:51 UTC (rev 63405)
+++ grass-addons/grass7/imagery/i.theilsen/main.c	2014-12-07 05:45:06 UTC (rev 63406)
@@ -195,6 +195,7 @@
         /*val2 = ceil(ts_max);*/
         Rast_add_d_color_rule(&val1,255,255,255,&val2,0,0,255,&colors);
     }
+    Rast_write_colors(out0->answer, G_mapset(), &colors);
     /* Metadata */
     Rast_short_history(out0->answer, "raster", &history);
     Rast_command_history(&history);
@@ -205,6 +206,7 @@
     val1 = mk_min;
     val2 = ceil(mk_max);
     Rast_add_d_color_rule(&val1,0,0,0,&val2,255,255,255,&colors);
+    Rast_write_colors(out1->answer, G_mapset(), &colors);
     /* Metadata */
     Rast_short_history(out1->answer, "raster", &history);
     Rast_command_history(&history);



More information about the grass-commit mailing list