[GRASS-SVN] r70408 - grass/branches/releasebranch_7_0/vector/v.db.select

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 21 13:20:31 PST 2017


Author: mmetz
Date: 2017-01-21 13:20:31 -0800 (Sat, 21 Jan 2017)
New Revision: 70408

Modified:
   grass/branches/releasebranch_7_0/vector/v.db.select/main.c
Log:
v.db.select: fix #3236 (backport from trunk r70406)

Modified: grass/branches/releasebranch_7_0/vector/v.db.select/main.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.db.select/main.c	2017-01-21 21:20:06 UTC (rev 70407)
+++ grass/branches/releasebranch_7_0/vector/v.db.select/main.c	2017-01-21 21:20:31 UTC (rev 70408)
@@ -229,7 +229,7 @@
 		continue;
 
 	    if (f_flag->answer) {
-		Vect_cidx_find_all(&Map, field_number, -1, cat, list_lines);
+		Vect_cidx_find_all(&Map, field_number, ~GV_AREA, cat, list_lines);
 		/* if no features are found for this category, don't print
 		 * anything. */
 		if (list_lines->n_values == 0)
@@ -258,7 +258,7 @@
 
 	if (r_flag->answer) {
 	    /* get minimal region extent */
-	    Vect_cidx_find_all(&Map, field_number, -1, cat, list_lines);
+	    Vect_cidx_find_all(&Map, field_number, ~GV_AREA, cat, list_lines);
 	    for (i = 0; i < list_lines->n_values; i++) {
 		line = list_lines->value[i];
 		if (Vect_get_line_type(&Map, line) == GV_CENTROID) {



More information about the grass-commit mailing list