[GRASS-SVN] r31686 - grass/branches/develbranch_6/vector/v.to.points
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jun 12 04:20:15 EDT 2008
Author: martinl
Date: 2008-06-12 04:20:14 -0400 (Thu, 12 Jun 2008)
New Revision: 31686
Modified:
grass/branches/develbranch_6/vector/v.to.points/main.c
Log:
v.to.points: G_percent() moved to the end of the loop
Modified: grass/branches/develbranch_6/vector/v.to.points/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.to.points/main.c 2008-06-11 21:48:03 UTC (rev 31685)
+++ grass/branches/develbranch_6/vector/v.to.points/main.c 2008-06-12 08:20:14 UTC (rev 31686)
@@ -294,8 +294,6 @@
G_debug ( 3, "line = %d", line );
- G_percent(line, nlines, 2);
-
ltype = Vect_read_line (&In, LPoints, LCats, line);
if ( !(ltype & type ) ) continue;
@@ -307,6 +305,7 @@
write_line ( &Out, LPoints, cat, vertex_type, inter_flag->answer,
dmax, table_flag->answer );
}
+ G_percent(line, nlines, 2);
}
}
@@ -317,8 +316,6 @@
for ( area = 1; area <= nareas; area++ ) {
int i, isle, nisles;
- G_percent(area, nareas, 2);
-
centroid = Vect_get_area_centroid ( &In, area );
cat = -1;
if ( centroid > 0 ) {
@@ -340,6 +337,7 @@
write_line ( &Out, LPoints, cat, vertex_type, inter_flag->answer,
dmax, table_flag->answer );
}
+ G_percent(area, nareas, 2);
}
}
More information about the grass-commit
mailing list