|
@@ -92,7 +92,6 @@ int main(int argc, char **argv)
|
|
|
struct Option *input;
|
|
|
struct Option *output;
|
|
|
struct Option *cats;
|
|
|
- struct Flag *quietly;
|
|
|
|
|
|
int polyline;
|
|
|
int *lines_visited;
|
|
@@ -125,10 +124,6 @@ int main(int argc, char **argv)
|
|
|
"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,11 +182,8 @@ int main(int argc, char **argv)
|
|
|
/* 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 =
|
|
@@ -207,7 +199,7 @@ int main(int argc, char **argv)
|
|
|
|
|
|
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 */
|