[GRASS-SVN] r31687 - grass/trunk/vector/v.to.points
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jun 12 04:22:17 EDT 2008
Author: martinl
Date: 2008-06-12 04:22:16 -0400 (Thu, 12 Jun 2008)
New Revision: 31687
Modified:
grass/trunk/vector/v.to.points/main.c
Log:
v.to.points: G_percent() moved to the end of the loop (merge devbr6, r31686)
Modified: grass/trunk/vector/v.to.points/main.c
===================================================================
--- grass/trunk/vector/v.to.points/main.c 2008-06-12 08:20:14 UTC (rev 31686)
+++ grass/trunk/vector/v.to.points/main.c 2008-06-12 08:22:16 UTC (rev 31687)
@@ -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