[GRASS-SVN] r32439 - grass/branches/develbranch_6/vector/v.proj

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 31 18:07:40 EDT 2008


Author: martinl
Date: 2008-07-31 18:07:40 -0400 (Thu, 31 Jul 2008)
New Revision: 32439

Modified:
   grass/branches/develbranch_6/vector/v.proj/main.c
Log:
v.proj: progress info added, trac #243 (merge trunk, r32438)

Modified: grass/branches/develbranch_6/vector/v.proj/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.proj/main.c	2008-07-31 22:06:37 UTC (rev 32438)
+++ grass/branches/develbranch_6/vector/v.proj/main.c	2008-07-31 22:07:40 UTC (rev 32439)
@@ -232,8 +232,12 @@
     /* Cycle through all lines */
     Vect_rewind ( &Map );
     i = 0;
+    fprintf (stderr, _("Reprojecting primitives: "));
     while(1) {
 	++i;
+	if (i % 1000 == 0) {
+	    fprintf (stderr, "%7d\b\b\b\b\b\b\b", i);
+	}
 	type = Vect_read_next_line (&Map, Points, Cats); /* read line */
 	if ( type == 0 ) continue; /* Dead */
 
@@ -248,6 +252,7 @@
 
 	Vect_write_line (&Out_Map, type, Points, Cats); /* write line */
     }  /* end lines section */
+    fprintf (stderr, "\r");
 
     /* Copy tables */
     Vect_copy_tables ( &Map, &Out_Map, 0 );



More information about the grass-commit mailing list