[GRASS-SVN] r70306 - grass/trunk/raster/r.in.xyz
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 8 08:30:55 PST 2017
Author: martinl
Date: 2017-01-08 08:30:55 -0800 (Sun, 08 Jan 2017)
New Revision: 70306
Modified:
grass/trunk/raster/r.in.xyz/main.c
Log:
r.in.xyz: print also info about number of points (line) in file
Modified: grass/trunk/raster/r.in.xyz/main.c
===================================================================
--- grass/trunk/raster/r.in.xyz/main.c 2017-01-08 14:46:12 UTC (rev 70305)
+++ grass/trunk/raster/r.in.xyz/main.c 2017-01-08 16:30:55 UTC (rev 70306)
@@ -832,8 +832,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++) {
@@ -1174,13 +1174,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