[GRASS-SVN] r31680 - grass/trunk/vector/v.to.points

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 11 15:24:39 EDT 2008


Author: martinl
Date: 2008-06-11 15:24:39 -0400 (Wed, 11 Jun 2008)
New Revision: 31680

Modified:
   grass/trunk/vector/v.to.points/main.c
Log:
v.to.points: G_percent() added, cosmetics in done message (merge devbr6, r31679)

Modified: grass/trunk/vector/v.to.points/main.c
===================================================================
--- grass/trunk/vector/v.to.points/main.c	2008-06-11 19:23:24 UTC (rev 31679)
+++ grass/trunk/vector/v.to.points/main.c	2008-06-11 19:24:39 UTC (rev 31680)
@@ -293,6 +293,9 @@
 	    int ltype, cat;
 	    
 	    G_debug ( 3, "line = %d", line );
+
+	    G_percent(line, nlines, 2);
+
 	    ltype = Vect_read_line (&In, LPoints, LCats, line);
 	    if ( !(ltype & type ) ) continue;
 
@@ -313,6 +316,8 @@
 	nareas = Vect_get_num_areas (&In);
 	for ( area = 1; area <= nareas; area++ ) {
 	    int i, isle, nisles;
+
+	    G_percent(area, nareas, 2);
 	    
 	    centroid = Vect_get_area_centroid ( &In, area );
 	    cat = -1;
@@ -349,7 +354,7 @@
     Vect_close(&In);
     Vect_close(&Out);
 
-    G_message (_("[%d] points written to output vector map"),
+    G_done_msg (_("%d points written to output vector map"),
 	       point_cat - 1);
 
     exit(EXIT_SUCCESS);



More information about the grass-commit mailing list