[GRASS-SVN] r33352 - grass/trunk/vector/v.build.polylines
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 9 09:12:57 EDT 2008
Author: hamish
Date: 2008-09-09 09:12:57 -0400 (Tue, 09 Sep 2008)
New Revision: 33352
Modified:
grass/trunk/vector/v.build.polylines/main.c
Log:
remove -q flag, fix typo in G_message
Modified: grass/trunk/vector/v.build.polylines/main.c
===================================================================
--- grass/trunk/vector/v.build.polylines/main.c 2008-09-09 13:06:42 UTC (rev 33351)
+++ grass/trunk/vector/v.build.polylines/main.c 2008-09-09 13:12:57 UTC (rev 33352)
@@ -92,7 +92,6 @@
struct Option *input;
struct Option *output;
struct Option *cats;
- struct Flag *quietly;
int polyline;
int *lines_visited;
@@ -125,10 +124,6 @@
"multi;Assign multiple category numbers to polyline");
cats->answer = "no";
- quietly = G_define_flag();
- quietly->key = 'q';
- quietly->description = _("Do not print polyline info");
-
if (G_parser(argc, argv))
exit(EXIT_FAILURE);
@@ -187,12 +182,9 @@
/* Find start of this polyline */
start_line = walk_back(&map, line);
start_type = Vect_read_line(&map, NULL, NULL, start_line);
- if (!quietly->answer) {
- fprintf(stdout, "Polyline %d: start line = %d \n", polyline,
- start_line);
- fflush(stdout);
- }
+ G_debug(1, "Polyline %d: start line = %d\n", polyline, start_line);
+
/* Walk forward and pick up coordinates */
points_in_polyline =
walk_forward_and_pick_up_coords(&map, start_line, points,
@@ -207,7 +199,7 @@
G_message(_("%d lines or boundaries found in vector map <%s@%s>"),
nlines, Vect_get_name(&map), Vect_get_mapset(&map));
- G_message(_("%d polylines stored to vector map <%s%s>"),
+ G_message(_("%d polylines stored in vector map <%s@%s>"),
polyline, Vect_get_name(&Out), Vect_get_mapset(&Out));
/* Copy (all linked) tables if needed */
More information about the grass-commit
mailing list