Rechercher une page de manuel
v.what.vect
Langue: en
Version: 369485 (fedora - 01/12/10)
Section: 1 (Commandes utilisateur)
NAME
v.what.vect - Uploads vector values at positions of vector points to the table.KEYWORDS
vector, database, attribute tableSYNOPSIS
v.what.vectv.what.vect help
v.what.vect vector=name [layer=integer] column=string qvector=name [qlayer=integer] qcolumn=string [--verbose] [--quiet]
Parameters:
- vector=name
Points vector map to modify- layer=integer
Layer in the vector to be modified
Default: 1- column=string
Column to be updated with the query result- qvector=name
Vector map to be queried- qlayer=integer
Layer of the query vector containg data
Default: 1- qcolumn=string
Column to be queried
DESCRIPTION
v.what.vect transfers attributes from the qvector's map attribute table into the attribute table of points present in the vector map. The script is based on v.distance.NOTES
The upload column, into which the query results are stored, must be present in the vector map. Use v.db.addcol to add one if needed.This module only uploads attributes which exist at the exact positions of the input's vector points. For a "nearest feature" fit, use v.distance instead.
In case of a multipoint input vector map, with several points having the same category number, it can happen, that the query result is NULL, if the same category number falls into different qvector polygons.
EXAMPLE
In this example, the 'archsites' point map in the Spearfish location is copied to the current mapset, a new attribute column is added and the owner names from the 'fields' polygon map are transferred to the 'myarchsites' map at points' locations:g.copy vect=archsites,myarchsites
v.db.addcol myarchsites col="owner varchar(25)"
v.what.vect myarchsites qvect=fields column=owner qcolumn=label
# verification:
v.db.select myarchsites
SEE ALSO
v.db.addcol, v.db.select, v.distance, v.rast.stats, v.what.rastAUTHOR
Markus NetelerLast changed: $Date: 2007-06-10 13:23:21 +0200 (Sun, 10 Jun 2007) $
Full index
© 2003-2008 GRASS Development Team
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre