[GRASS-SVN] r30144 - grass/trunk/vector/v.extrude
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Feb 14 01:33:42 EST 2008
Author: jachym
Date: 2008-02-14 01:33:42 -0500 (Thu, 14 Feb 2008)
New Revision: 30144
Modified:
grass/trunk/vector/v.extrude/main.c
Log:
Better G_percent() usage
Modified: grass/trunk/vector/v.extrude/main.c
===================================================================
--- grass/trunk/vector/v.extrude/main.c 2008-02-14 06:32:00 UTC (rev 30143)
+++ grass/trunk/vector/v.extrude/main.c 2008-02-14 06:33:42 UTC (rev 30144)
@@ -191,8 +191,6 @@
G_verbose_message (_("Extruding areas..."));
for (areanum = 1; areanum <= nelements; areanum++) {
- G_percent(areanum, nelements, 1);
-
G_debug(3, "area = %d", areanum);
if (!Vect_area_alive(&In, areanum))
@@ -241,6 +239,8 @@
fdrast, trace, objheight, voffset, window, GV_AREA,
centroid);
+ G_percent(areanum, nelements, 1);
+
} /* foreach area */
}
@@ -252,8 +252,6 @@
nelements = Vect_get_num_lines(&In);
G_verbose_message(_("Extruding basic vector objects..."));
for (line = 1; line <= nelements; line++) {
- /* progress feedback */
- G_percent(line, nelements, 1);
/* read line */
type = Vect_read_line(&In, Points, Cats, line);
@@ -318,9 +316,15 @@
extrude(&In, &Out, Cats, Points,
fdrast, trace, objheight, voffset, window, type, -1);
+
+ /* progress feedback */
+ G_percent(line, nelements, 1);
+
} /* for each line */
} /* else if area */
+ G_percent(1,1,1);
+
if (driver) {
db_close_database(driver);
db_shutdown_driver(driver);
More information about the grass-commit
mailing list