<html style="direction: ltr;">
<head>
<meta content="text/html; charset=windows-1255"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 03/01/2017 02:08 AM, Ken Mankoff
wrote:<br>
</div>
<blockquote cite="mid:m2k289luyo.fsf@gmail.com" type="cite">
<pre wrap="">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
</pre>
</blockquote>
Well done!<br>
<br>
<blockquote cite="mid:m2k289luyo.fsf@gmail.com" type="cite">
<pre wrap="">
-k.
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Micha Silver
cell: 052-3665918</pre>
</body>
</html>