[GRASS-SVN] r32497 - grass/branches/develbranch_6/scripts/v.what.vect

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 3 14:06:32 EDT 2008


Author: marisn
Date: 2008-08-03 14:06:32 -0400 (Sun, 03 Aug 2008)
New Revision: 32497

Modified:
   grass/branches/develbranch_6/scripts/v.what.vect/description.html
   grass/branches/develbranch_6/scripts/v.what.vect/v.what.vect
Log:
Added query distance. Allows to upload values also from points

Modified: grass/branches/develbranch_6/scripts/v.what.vect/description.html
===================================================================
--- grass/branches/develbranch_6/scripts/v.what.vect/description.html	2008-08-03 18:04:50 UTC (rev 32496)
+++ grass/branches/develbranch_6/scripts/v.what.vect/description.html	2008-08-03 18:06:32 UTC (rev 32497)
@@ -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/branches/develbranch_6/scripts/v.what.vect/v.what.vect
===================================================================
--- grass/branches/develbranch_6/scripts/v.what.vect/v.what.vect	2008-08-03 18:04:50 UTC (rev 32496)
+++ grass/branches/develbranch_6/scripts/v.what.vect/v.what.vect	2008-08-03 18:06:32 UTC (rev 32497)
@@ -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