[GRASS-SVN] r31679 - grass/branches/develbranch_6/vector/v.to.points
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jun 11 15:23:24 EDT 2008
Author: martinl
Date: 2008-06-11 15:23:24 -0400 (Wed, 11 Jun 2008)
New Revision: 31679
Modified:
grass/branches/develbranch_6/vector/v.to.points/main.c
Log:
v.to.points: G_percent() added, cosmetics in done message
Modified: grass/branches/develbranch_6/vector/v.to.points/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.to.points/main.c 2008-06-11 13:35:34 UTC (rev 31678)
+++ grass/branches/develbranch_6/vector/v.to.points/main.c 2008-06-11 19:23:24 UTC (rev 31679)
@@ -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