[GRASS-SVN] r37282 - grass/branches/develbranch_6/vector/v.select

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


Author: martinl
Date: 2009-05-19 10:17:40 -0400 (Tue, 19 May 2009)
New Revision: 37282

Modified:
   grass/branches/develbranch_6/vector/v.select/main.c
Log:
v.select: option 'relate' only available for GEOS operators


Modified: grass/branches/develbranch_6/vector/v.select/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.select/main.c	2009-05-19 13:15:16 UTC (rev 37281)
+++ grass/branches/develbranch_6/vector/v.select/main.c	2009-05-19 14:17:40 UTC (rev 37282)
@@ -102,6 +102,8 @@
 #ifndef HAVE_GEOS
     parm.operator->options = "overlap";
     parm.operator->descriptions = _("overlap;features partially or completely overlap");
+
+    parm.relate = NULL;
 #else
     parm.operator->options = "equals,disjoint,intersects,touches,crosses,within,contains,overlap,relate";
     parm.operator->descriptions = _("equals;features are spatially equals (requires flag 'g');"
@@ -114,15 +116,15 @@
 				    "overlap;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