[GRASS-SVN] r55584 - grass/trunk/vector/v.buffer

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Apr 1 09:01:15 PDT 2013


Author: martinl
Date: 2013-04-01 09:01:15 -0700 (Mon, 01 Apr 2013)
New Revision: 55584

Modified:
   grass/trunk/vector/v.buffer/main.c
Log:
v.buffer: verbosity level cosmetics


Modified: grass/trunk/vector/v.buffer/main.c
===================================================================
--- grass/trunk/vector/v.buffer/main.c	2013-04-01 15:18:49 UTC (rev 55583)
+++ grass/trunk/vector/v.buffer/main.c	2013-04-01 16:01:15 UTC (rev 55584)
@@ -308,6 +308,7 @@
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 
+    verbose = G_verbose();
 #if !defined HAVE_GEOS
     use_geos = FALSE;
 #else
@@ -387,7 +388,9 @@
     if (0 > Vect_open_tmp_new(&Buf, NULL, WITHOUT_Z)) {
         G_fatal_error(_("Unable to create vector map"));
     }
+    G_set_verbose(0);
     Vect_build_partial(&Buf, GV_BUILD_BASE); /* switch to level 2 */
+    G_set_verbose(verbose);
 
     /* check and load attribute column data */
     if (bufcol_opt->answer) {
@@ -692,8 +695,6 @@
     finishGEOS();
 #endif
 
-    verbose = G_verbose();
-
     G_message(_("Cleaning buffers..."));
     
     /* Break lines */
@@ -876,8 +877,6 @@
     Vect_spatial_index_destroy(&si);
     Vect_close(&Buf);
     
-    G_set_verbose(verbose);
-
     if (cats_flag->answer)
 	Vect_copy_tables(&In, &Out, field);
 



More information about the grass-commit mailing list