[GRASS-SVN] r46894 - grass/branches/develbranch_6/raster/r.external

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jul 1 04:06:43 EDT 2011


Author: mmetz
Date: 2011-07-01 01:06:43 -0700 (Fri, 01 Jul 2011)
New Revision: 46894

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

Modified: grass/branches/develbranch_6/raster/r.external/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.external/main.c	2011-07-01 08:04:30 UTC (rev 46893)
+++ grass/branches/develbranch_6/raster/r.external/main.c	2011-07-01 08:06:43 UTC (rev 46894)
@@ -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(255, 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