[GRASS-user] Total stream/river length in basin

Rich Shepard rshepard at appl-ecosys.com
Fri Aug 31 15:04:35 PDT 2018


On Fri, 31 Aug 2018, Helmut Kudrnovsky wrote:

> What is missing in the manual that the option length can't be found?

Helmut,

   Nothing. What I used:
# calculate stream lengths
v.db.addcolumn map=wrb_rivers columns='length double precision'
v.to.db map=wrb_rivers opt=length column=length units=kilometers
db.select sql='sum(length) from wrb_rivers'

   Works like advertised.

Best regards,

Rich


More information about the grass-user mailing list