[GRASS-SVN] r36496 - grass/trunk/vector/v.clean

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 27 09:41:58 EDT 2009


Author: mmetz
Date: 2009-03-27 09:41:57 -0400 (Fri, 27 Mar 2009)
New Revision: 36496

Modified:
   grass/trunk/vector/v.clean/main.c
   grass/trunk/vector/v.clean/rmdac.c
   grass/trunk/vector/v.clean/rmline.c
Log:
v.clean messages adjusted to cleaning functions

Modified: grass/trunk/vector/v.clean/main.c
===================================================================
--- grass/trunk/vector/v.clean/main.c	2009-03-27 13:39:47 UTC (rev 36495)
+++ grass/trunk/vector/v.clean/main.c	2009-03-27 13:41:57 UTC (rev 36496)
@@ -349,18 +349,15 @@
 	    G_message(_("Tool: Remove small areas"));
 	    count =
 		Vect_remove_small_areas(&Out, threshs[i], pErr, &size);
-	    G_message(_("%d areas of total size %g removed"), count, size);
 	    break;
 	case TOOL_RMSA:
 	    G_message(_("Tool: Remove small angles at nodes"));
 	    count =
 		Vect_clean_small_angles_at_nodes(&Out, otype, pErr);
-	    G_message(_("%d modifications done"), count);
 	    break;
 	case TOOL_RMLINE:
 	    G_message(_("Tool: Remove all lines and boundaries of zero length"));
 	    count = remove_zero_line(&Out, otype, pErr);
-	    G_message(_("%d lines / boundaries removed"), count);
 	    break;
 	}
 

Modified: grass/trunk/vector/v.clean/rmdac.c
===================================================================
--- grass/trunk/vector/v.clean/rmdac.c	2009-03-27 13:39:47 UTC (rev 36495)
+++ grass/trunk/vector/v.clean/rmdac.c	2009-03-27 13:41:57 UTC (rev 36496)
@@ -34,8 +34,6 @@
     G_debug(1, "nlines =  %d", nlines);
 
     ndupl = 0;
-    if (G_verbose() > G_verbose_min())
-	fprintf(stderr, _("Duplicate area centroids: %5d"), ndupl);
 
     for (i = 1; i <= nlines; i++) {
 	G_percent(i, nlines, 2);
@@ -53,18 +51,13 @@
 	    Vect_delete_line(Out, i);
 	    ndupl++;
 
-	    if (G_verbose() > G_verbose_min())
-		fprintf(stderr, "\r%s: %5d", _("Duplicate area centroids"),
-			ndupl);
-
 	    if (Err) {
 		Vect_write_line(Err, type, Points, Cats);
 	    }
 	}
     }
 
-    if (G_verbose() > G_verbose_min())
-	fprintf(stderr, "\n");
+    G_verbose_message(_("Duplicate area centroids: %d"), ndupl);
 
     Vect_destroy_line_struct(Points);
     Vect_destroy_cats_struct(Cats);

Modified: grass/trunk/vector/v.clean/rmline.c
===================================================================
--- grass/trunk/vector/v.clean/rmline.c	2009-03-27 13:39:47 UTC (rev 36495)
+++ grass/trunk/vector/v.clean/rmline.c	2009-03-27 13:41:57 UTC (rev 36496)
@@ -61,6 +61,8 @@
     Vect_destroy_line_struct(Points);
     Vect_destroy_cats_struct(Cats);
 
+    G_verbose_message(_("Lines / boundaries removed: %d"), count);
+
     return count;
 
 }



More information about the grass-commit mailing list