[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-commit
Subject:    [GRASS-SVN] r32438 - grass/trunk/vector/v.proj
From:       svn_grass () osgeo ! org
Date:       2008-07-31 22:06:37
Message-ID: 20080731220637.DC4DFE00794 () lists ! osgeo ! org
[Download RAW message or body]

Author: martinl
Date: 2008-07-31 18:06:37 -0400 (Thu, 31 Jul 2008)
New Revision: 32438

Modified:
   grass/trunk/vector/v.proj/main.c
Log:
v.proj: progress info added, trac #243

Modified: grass/trunk/vector/v.proj/main.c
===================================================================
--- grass/trunk/vector/v.proj/main.c	2008-07-31 21:40:50 UTC (rev 32437)
+++ grass/trunk/vector/v.proj/main.c	2008-07-31 22:06:37 UTC (rev 32438)
@@ -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 );

_______________________________________________
grass-commit mailing list
grass-commit@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic