[GRASSLIST:138] How to report length totals for all lines matching specific ID
Patton, Eric
epatton at nrcan.gc.ca
Wed Mar 15 12:38:28 EST 2006
I have a vector of a coastline; the coast is segmented into different
coastal types, according to unique IDs:
CAT Class_ID CLASS SEG_LENGTH
1 5 Rock Cliff 56.789000
2 7 Barrier Beach 13.450000
....
I successfully popluated the SEG_LENGTH column with the length of each
segment using v.to.db:
v.to.db Coastal_Classes option=length type=line units=m
Now I want to report total lengths of each CLASS (i.e., total length of all
"Rock Cliff" segments, etc.)
Any ideas?
~ Eric.
More information about the grass-user
mailing list