[GRASS-SVN] r46891 - grass/trunk/raster/r.external
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 1 03:58:51 EDT 2011
Author: mmetz
Date: 2011-07-01 00:58:51 -0700 (Fri, 01 Jul 2011)
New Revision: 46891
Modified:
grass/trunk/raster/r.external/main.c
Log:
r.external: write support files
Modified: grass/trunk/raster/r.external/main.c
===================================================================
--- grass/trunk/raster/r.external/main.c 2011-07-01 07:56:47 UTC (rev 46890)
+++ grass/trunk/raster/r.external/main.c 2011-07-01 07:58:51 UTC (rev 46891)
@@ -461,6 +461,7 @@
const char *title, int flip)
{
struct History history;
+ struct Categories cats;
Rast_put_cellhd(output, cellhd);
@@ -491,6 +492,8 @@
Rast_write_history(output, &history);
Rast_write_colors(output, G_mapset(), &info->colors);
+ Rast_init_cats(NULL, &cats);
+ Rast_write_cats((char *)output, &cats);
if (title)
Rast_put_cell_title(output, title);
More information about the grass-commit
mailing list