[GRASS-SVN] r32500 - grass/trunk/scripts/v.what.vect

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 3 14:30:39 EDT 2008


Author: martinl
Date: 2008-08-03 14:30:39 -0400 (Sun, 03 Aug 2008)
New Revision: 32500

Modified:
   grass/trunk/scripts/v.what.vect/description.html
   grass/trunk/scripts/v.what.vect/v.what.vect
Log:
marisn: Added query distance. Allows to upload values also from points
(merge from trunk, r32497)


Modified: grass/trunk/scripts/v.what.vect/description.html
===================================================================
--- grass/trunk/scripts/v.what.vect/description.html	2008-08-03 18:28:24 UTC (rev 32499)
+++ grass/trunk/scripts/v.what.vect/description.html	2008-08-03 18:30:39 UTC (rev 32500)
@@ -9,8 +9,8 @@
 The upload <b>column</b>, into which the query results are stored, must be
 present in the <b>vector</b> map. Use <em>v.db.addcol</em> to add one if needed.
 <p>
-This module only uploads attributes which exist at the exact positions of
-the input's <b>vector</b> points. For a "nearest feature" fit, use
+Use dmax parameter to control query distance tolerance (how far points can be from 
+<b>qvector</b> features). For more options, use
 <em>v.distance</em> instead.
 <P>
 In case of a multipoint input <b>vector</b> map, with several points having the

Modified: grass/trunk/scripts/v.what.vect/v.what.vect
===================================================================
--- grass/trunk/scripts/v.what.vect/v.what.vect	2008-08-03 18:28:24 UTC (rev 32499)
+++ grass/trunk/scripts/v.what.vect/v.what.vect	2008-08-03 18:30:39 UTC (rev 32500)
@@ -61,6 +61,13 @@
 #% description: Column to be queried
 #% required : yes
 #%end
+#%option
+#% key: dmax
+#% type: double
+#% description: Maximum query distance in map units
+#% answer: 0.0
+#% required: no
+#%end
 
 
 if  [ -z "$GISBASE" ] ; then
@@ -72,12 +79,11 @@
     exec g.parser "$0" "$@"
 fi
 
-
 exec v.distance from="$GIS_OPT_VECTOR" \
 	to="$GIS_OPT_QVECTOR" \
 	column="$GIS_OPT_COLUMN" \
 	to_column="$GIS_OPT_QCOLUMN" \
 	upload=to_attr \
-	dmax=0 \
+	dmax=$GIS_OPT_DMAX \
 	from_layer=$GIS_OPT_LAYER \
 	to_layer=$GIS_OPT_QLAYER



More information about the grass-commit mailing list