[GRASSLIST:4280] RE: measuring lines
Craig Aumann
caumann at ualberta.ca
Tue Aug 31 11:28:19 EDT 2004
Hi Mark!
The magic procedure to look at is v.to.db.
Below, I create a new column in a PostgreSQL database linked via field
2, uploaded the number of records. Check out option "length" for your
problem.
v.db.connect -o map=play table=play_att key=LINK_KEY field=2 \
driver=pg database="dbname=alpac_netdown,user=caumann"
v.db.connect -p play
echo "alter table play_att add column playcat integer" | db.execute
v.to.db map=play field=2 option=count col1=playcat
Cheers!
Craig
More information about the grass-user
mailing list