[GRASS-user] Update of vector table through selections in the map
Patton, Eric
epatton at nrcan.gc.ca
Fri Jun 9 07:53:42 EDT 2006
Andreas,
Would you consider posting you script to the WIKI for further community
testing?
~ Eric.
-----Original Message-----
From: grassuser-bounces at grass.itc.it
To: grassuser at grass.itc.it
Sent: 6/8/2006 5:32 PM
Subject: Re: [GRASS-user] Update of vector table through selections in the
map
Hi Jonathan,
I think I understand your task. It is relatively close to mine (quickly
assign
height attributes to a huge set of vector lines manually), today I
worked
more on that script "v.digatt" (attached if it works), it is exactly
doing
(if not completely buggy) what you want, if I'm right: define a
attribute
value (say "1" for intersections) and assign that to all points you
click at
in the following, then define the attribute value of "2" for
interchanges and
click on other points to assign "2" to their records in the table in
one
step for all of them and so on. The script was tested only for lines,
but it
works fine for that and I tied to make it usable also for points.
The selection is done by v.what.vect (extracting the category numbers of
all
objects you have clicked into a list) and the update is done with
v.db.update
for all collected objects (=category numbers in the list) in one step.
Please try it and tell whether it works for you or not.
Cheers,
Andreas
More information about the grass-user
mailing list