Browse Source

r.watershed seg: close output raster

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52339 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 13 years ago
parent
commit
2927eca25e
2 changed files with 3 additions and 1 deletions
  1. 3 0
      raster/r.watershed/seg/close_maps.c
  2. 0 1
      raster/r.watershed/seg/init_vars.c

+ 3 - 0
raster/r.watershed/seg/close_maps.c

@@ -229,6 +229,9 @@ int close_maps(void)
 	    }
 	    Rast_put_row(fd, cbuf, CELL_TYPE);
 	}
+
+	Rast_close(fd);
+
 	Rast_init_colors(&colors);
 	Rast_make_grey_scale_colors(&colors, 1, 8);
 	Rast_write_colors(asp_name, this_mapset, &colors);

+ 0 - 1
raster/r.watershed/seg/init_vars.c

@@ -286,7 +286,6 @@ int init_vars(int argc, char *argv[])
     alt_value_buf = Rast_allocate_buf(CELL_TYPE);
 
     /* read elevation input and mark NULL/masked cells */
-    G_message("New version");
     G_message("SECTION 1a: Mark masked and NULL cells");
     MASK_flag = 0;
     do_points = (GW_LARGE_INT) nrows * ncols;