[GRASS-SVN] r38250 - grass/trunk/vector/v.select

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 5 09:09:27 EDT 2009


Author: martinl
Date: 2009-07-05 09:09:26 -0400 (Sun, 05 Jul 2009)
New Revision: 38250

Modified:
   grass/trunk/vector/v.select/main.c
Log:
v.select: for disjoint use reverse intersect (todo: change module's algorithm)


Modified: grass/trunk/vector/v.select/main.c
===================================================================
--- grass/trunk/vector/v.select/main.c	2009-07-05 13:03:06 UTC (rev 38249)
+++ grass/trunk/vector/v.select/main.c	2009-07-05 13:09:26 UTC (rev 38250)
@@ -61,8 +61,11 @@
     
     if (parm.operator->answer[0] == 'e')
 	operator = OP_EQUALS;
-    else if (parm.operator->answer[0] == 'd')
-	operator = OP_DISJOINT;
+    else if (parm.operator->answer[0] == 'd') {
+	/* operator = OP_DISJOINT; */
+	operator = OP_INTERSECTS;
+	flag.reverse->answer = YES;
+    }
     else if (parm.operator->answer[0] == 'i')
 	operator = OP_INTERSECTS;
     else if (parm.operator->answer[0] == 't')



More information about the grass-commit mailing list