[GRASS-SVN] r70307 - grass/branches/releasebranch_7_2/raster/r.in.xyz

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 8 08:32:23 PST 2017


Author: martinl
Date: 2017-01-08 08:32:23 -0800 (Sun, 08 Jan 2017)
New Revision: 70307

Modified:
   grass/branches/releasebranch_7_2/raster/r.in.xyz/main.c
Log:
r.in.xyz: print also info about number of points (line) in file (merge r70306 from trunk)

Modified: grass/branches/releasebranch_7_2/raster/r.in.xyz/main.c
===================================================================
--- grass/branches/releasebranch_7_2/raster/r.in.xyz/main.c	2017-01-08 16:30:55 UTC (rev 70306)
+++ grass/branches/releasebranch_7_2/raster/r.in.xyz/main.c	2017-01-08 16:32:23 UTC (rev 70307)
@@ -830,8 +830,8 @@
 	G_percent(1, 1, 1);	/* flush */
 	G_debug(2, "pass %d finished, %lu coordinates in box", pass, count);
 	count_total += count;
+        G_message(_("%lu points found in input file"), line);
 
-
 	/* calc stats and output */
 	G_message(_("Writing to output raster map..."));
 	for (row = 0; row < rows; row++) {
@@ -1172,13 +1172,9 @@
     Rast_set_history(&history, HIST_DATSRC_1, infile);
     Rast_write_history(outmap, &history);
 
+    G_done_msg(_("%lu points found in region."), count_total);
 
-    sprintf(buff, _("%lu points found in region."), count_total);
-    G_done_msg("%s", buff);
-    G_debug(1, "Processed %lu lines.", line);
-
     exit(EXIT_SUCCESS);
-
 }
 
 



More information about the grass-commit mailing list