[GRASS-SVN] r34564 - grass/trunk/vector/v.buffer2

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 27 17:59:17 EST 2008


Author: martinl
Date: 2008-11-27 17:59:17 -0500 (Thu, 27 Nov 2008)
New Revision: 34564

Modified:
   grass/trunk/vector/v.buffer2/main.c
Log:
v.buffer: message cosmetics
	  (merge from devbr6, r34563)


Modified: grass/trunk/vector/v.buffer2/main.c
===================================================================
--- grass/trunk/vector/v.buffer2/main.c	2008-11-27 22:55:46 UTC (rev 34563)
+++ grass/trunk/vector/v.buffer2/main.c	2008-11-27 22:59:17 UTC (rev 34564)
@@ -254,7 +254,7 @@
 	    dalpha = 0;
 
 	unit_tolerance = tolerance * MIN(da, db);
-	G_message(_("The tolerance in map units = %g"), unit_tolerance);
+	G_verbose_message(_("The tolerance in map units = %g"), unit_tolerance);
     }
 
     Vect_check_input_output_name(in_opt->answer, out_opt->answer,
@@ -338,7 +338,8 @@
     if ((type & GV_POINTS) || (type & GV_LINES)) {
 	int ltype;
 
-	G_message(_("Lines buffers..."));
+	if (nlines > 0)
+	    G_message(_("Buffering lines..."));
 	for (line = 1; line <= nlines; line++) {
 	    int cat;
 
@@ -404,7 +405,8 @@
     if (type & GV_AREA) {
 	int centroid;
 
-	G_message(_("Areas buffers..."));
+	if (nareas > 0) 
+	    G_message(_("Buffering areas..."));
 	for (area = 1; area <= nareas; area++) {
 	    int cat;
 
@@ -464,7 +466,7 @@
     /* Create areas */
 
     /* Break lines */
-    G_message(_("Building parts of topology..."));
+    G_verbose_message(_("Building parts of topology..."));
     Vect_build_partial(&Out, GV_BUILD_BASE);
 
     G_message(_("Snapping boundaries..."));



More information about the grass-commit mailing list