[GRASS-SVN] r34754 - in grass/branches/develbranch_6:
lib/vector/Vlib vector/v.select
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 6 14:00:29 EST 2008
Author: martinl
Date: 2008-12-06 14:00:29 -0500 (Sat, 06 Dec 2008)
New Revision: 34754
Modified:
grass/branches/develbranch_6/lib/vector/Vlib/sindex.c
grass/branches/develbranch_6/vector/v.select/main.c
Log:
v.select: message cosmetics
Modified: grass/branches/develbranch_6/lib/vector/Vlib/sindex.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/Vlib/sindex.c 2008-12-06 18:37:03 UTC (rev 34753)
+++ grass/branches/develbranch_6/lib/vector/Vlib/sindex.c 2008-12-06 19:00:29 UTC (rev 34754)
@@ -161,8 +161,6 @@
/* Nodes */
for (i = 1; i <= plus->n_nodes; i++) {
- G_percent(i, total, 1);
-
Node = plus->Node[i];
if (!Node)
G_fatal_error(_("BUG (Vect_build_sidx_from_topo): node does not exist"));
@@ -173,8 +171,6 @@
/* Lines */
done = plus->n_nodes;
for (i = 1; i <= plus->n_lines; i++) {
- G_percent(done + i, total, 1);
-
Line = plus->Line[i];
if (!Line)
G_fatal_error(_("BUG (Vect_build_sidx_from_topo): line does not exist"));
@@ -192,8 +188,6 @@
/* Areas */
done += plus->n_lines;
for (i = 1; i <= plus->n_areas; i++) {
- G_percent(done + i, total, 1);
-
Area = plus->Area[i];
if (!Area)
G_fatal_error(_("BUG (Vect_build_sidx_from_topo): area does not exist"));
@@ -211,8 +205,6 @@
/* Isles */
done += plus->n_areas;
for (i = 1; i <= plus->n_isles; i++) {
- G_percent(done + i, total, 1);
-
Isle = plus->Isle[i];
if (!Isle)
G_fatal_error(_("BUG (Vect_build_sidx_from_topo): isle does not exist"));
Modified: grass/branches/develbranch_6/vector/v.select/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.select/main.c 2008-12-06 18:37:03 UTC (rev 34753)
+++ grass/branches/develbranch_6/vector/v.select/main.c 2008-12-06 19:00:29 UTC (rev 34754)
@@ -226,7 +226,7 @@
/* Lines in A. Go through all lines and mark those that meets condition */
if (type[0] & (GV_POINTS | GV_LINES)) {
- G_message(_("Processing vector features..."));
+ G_message(_("Processing features..."));
for (aline = 1; aline <= nalines; aline++) {
BOUND_BOX abox;
@@ -306,7 +306,7 @@
if (type[0] & GV_AREA) {
int aarea, naareas;
- G_message(_("Processing vector areas..."));
+ G_message(_("Processing areas..."));
naareas = Vect_get_num_areas(&(In[0]));
@@ -314,7 +314,7 @@
int i;
BOUND_BOX abox;
- G_percent(aarea, naareas, 1); /* must be before any continue */
+ G_percent(aarea, naareas, 2); /* must be before any continue */
if (Vect_get_area_cat(&(In[0]), aarea, field[0]) < 0)
continue;
@@ -426,11 +426,14 @@
sizeof(int));
fields[i] = Vect_cidx_get_field_number(&(In[0]), i);
}
+
+ G_message(_("Writing selected features..."));
for (aline = 1; aline <= nalines; aline++) {
int atype;
G_debug(4, "aline = %d ALines[aline] = %d", aline, ALines[aline]);
-
+ G_percent(aline, nalines, 2);
+
if (!(ALines[aline]))
continue;
@@ -457,7 +460,7 @@
if (!(table_flag->answer)) {
int ttype, ntabs = 0;
- G_verbose_message(_("Writing attributes..."));
+ G_message(_("Writing attributes..."));
/* Number of output tabs */
for (i = 0; i < Vect_get_num_dblinks(&(In[0])); i++) {
More information about the grass-commit
mailing list