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.
_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to