[GRASS-SVN] r46895 - grass/branches/releasebranch_6_4/raster/r.external

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jul 1 04:07:37 EDT 2011


Author: mmetz
Date: 2011-07-01 01:07:37 -0700 (Fri, 01 Jul 2011)
New Revision: 46895

Modified:
   grass/branches/releasebranch_6_4/raster/r.external/main.c
Log:
r.external: write support files

Modified: grass/branches/releasebranch_6_4/raster/r.external/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.external/main.c	2011-07-01 08:06:43 UTC (rev 46894)
+++ grass/branches/releasebranch_6_4/raster/r.external/main.c	2011-07-01 08:07:37 UTC (rev 46895)
@@ -445,6 +445,7 @@
 		       const char *title)
 {
     struct History history;
+    struct Categories cats;
 
     G_put_cellhd(output, cellhd);
 
@@ -474,6 +475,9 @@
     G_command_history(&history);
     G_write_history(output, &history);
 
+    G_init_cats(0, NULL, &cats);
+    G_write_raster_cats((char *)output, &cats);
+
     G_write_colors(output, G_mapset(), &info->colors);
 
     if (title)



More information about the grass-commit mailing list