[GRASS-SVN] r70339 - grass/branches/releasebranch_7_2/raster/r.null

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 11 05:28:10 PST 2017


Author: mmetz
Date: 2017-01-11 05:28:10 -0800 (Wed, 11 Jan 2017)
New Revision: 70339

Modified:
   grass/branches/releasebranch_7_2/raster/r.null/main.c
Log:
r.null: null2 -> nullcmpr

Modified: grass/branches/releasebranch_7_2/raster/r.null/main.c
===================================================================
--- grass/branches/releasebranch_7_2/raster/r.null/main.c	2017-01-11 09:30:53 UTC (rev 70338)
+++ grass/branches/releasebranch_7_2/raster/r.null/main.c	2017-01-11 13:28:10 UTC (rev 70339)
@@ -197,7 +197,8 @@
 
     if (recreate) {
 	int in_fd;
-	/* write a file of no-nulls */
+
+	/* (un-)compress NULL file */
 	null_bits = Rast__allocate_null_bits(cellhd.cols);
 	Rast__init_null_bits(null_bits, cellhd.cols);
 
@@ -223,12 +224,12 @@
     }
 
     if (remove) {
-	/* write a file of no-nulls */
+	/* remove NULL file */
 	G_verbose_message(_("Removing null file for raster map <%s>..."),
 			   name);
 	G_file_name_misc(path, "cell_misc", "null", name, mapset);
 	unlink(path);
-	G_file_name_misc(path, "cell_misc", "null2", name, mapset);
+	G_file_name_misc(path, "cell_misc", "nullcmpr", name, mapset);
 	unlink(path);
 
 	G_done_msg(_("Raster map <%s> modified."), name);



More information about the grass-commit mailing list