[GRASS-user] subsetting vector db based on selected rows

Ken Mankoff mankoff at gmail.com
Tue Feb 28 16:08:31 PST 2017


Dear Micha,

Thank you for the helpful reply. This solves the issue. FYI because there are 1000s of rows, I have combined the two commands like this:

v.extract input=BTMP output=BTMP_max cats=$(db.select -c sql="select b.cat from BTMP AS b WHERE b.area=(SELECT max(area) FROM BTMP WHERE termini_id=b.termini_id) GROUP BY b.termini_id" | tr '\n' ,) --o

  -k.


More information about the grass-user mailing list