浏览代码

v.proj: progress info added, trac https://trac.osgeo.org/grass/ticket/243

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32438 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 17 年之前
父节点
当前提交
0816aa2a0f
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      vector/v.proj/main.c

+ 5 - 0
vector/v.proj/main.c

@@ -232,8 +232,12 @@ int main (int argc, char *argv[])
     /* 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 @@ int main (int argc, char *argv[])
 
 	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 );