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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 19 10:19:52 EDT 2009


Author: martinl
Date: 2009-05-19 10:19:52 -0400 (Tue, 19 May 2009)
New Revision: 37283

Modified:
   grass/trunk/vector/v.select/main.c
Log:
v.select: option 'relate' only available for GEOS operators
	  (merge from develbr6, r37282)


Modified: grass/trunk/vector/v.select/main.c
===================================================================
--- grass/trunk/vector/v.select/main.c	2009-05-19 14:17:40 UTC (rev 37282)
+++ grass/trunk/vector/v.select/main.c	2009-05-19 14:19:52 UTC (rev 37283)
@@ -102,6 +102,8 @@
     parm.operator->options = "overlaps";
     parm.operator->answer = "overlaps";
     parm.operator->descriptions = _("overlaps;features partially or completely overlap");
+
+    parm.relate = NULL;
 #else
     parm.operator->options = "equals,disjoint,intersects,touches,crosses,within,contains,overlaps,relate";
     parm.operator->descriptions = _("equals;features are spatially equals (requires flag 'g');"
@@ -114,15 +116,15 @@
 				    "overlaps;features spatilly overlap;"
 				    "relate;feature A is spatially related to feature B "
 				    "(requires 'relate' option and flag 'g');");
-#endif
-
+    
     parm.relate = G_define_option();
     parm.relate->key = "relate";
     parm.relate->type = TYPE_STRING;
     parm.relate->required = NO;
     parm.relate->multiple = NO;
     parm.relate->description = _("Intersection Matrix Pattern used for 'relate' operator");
-    
+#endif
+
     flag.table = G_define_flag();
     flag.table->key = 't';
     flag.table->description = _("Do not create attribute table");



More information about the grass-commit mailing list