<html><body>Hi,<br>I have set of points with attribute table (let just say with column "A" containing 1s and 2s).<br>I would love to use function v.hull in order to get two convex hulls (their faces). Basically apply function "by group". Unfortunatelly, I was not able to find simple way to do that.<br><br>First solution I came up with was scripting with for cycle using "category" - picking ids of points and then run:<br>v.hull input=mypoints output=myhulls1 cat="1,3,40,etc"<br>v.hull input=mypoints output=myhulls2 cat="2,4,41,etc"<br><br>Than I tried where clause:<br>v.hull input=mypoints output=myhulls1 where="A<2"<br>v.hull input=mypoints output=myhulls2 where="A>1"<br><br>Unfortunatelly, this clumsy solution (I have hounderds thousands of point sets) does not work. All four lines gave me the same result (convex hull created from all points).<br>The only even more clumsy solution I succeded with was first use 'v.extract' and than apply 'v.hull' on newly created maps.<br><br>My questions:<br>Is there a way how to effectively apply function(command) by group?<br>Is the v.hull function supposed to work like this (ingnoring where and cat arguments)?<br><br>Thank you<br>Vil</body></html>