<div dir="ltr">Try this.<br><br>Select ST_ConcaveHull(ST_Collect(the_geom)) FROM table;<br><br><br clear="all"><div dir="ltr"><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;color:rgb(51, 51, 51)"><font size="4"><b><span style="color:rgb(0, 102, 0)">---------------------------------------------------------------------------<br>
Ahmad Aburizaiza</span><br style="color:rgb(0, 102, 0)"><span style="color:rgb(0, 102, 0)">PhD student at </span></b></font><font size="4"><b><span style="color:rgb(0, 102, 0)">George Mason University</span></b></font><font size="4"><b><span style="color:rgb(0, 102, 0)"></span><br style="color:rgb(0, 102, 0)">
<span style="color:rgb(0, 102, 0)">Geography and Geoinformation Science</span><span style="color:rgb(0, 102, 0)"> Department</span><br style="color:rgb(0, 102, 0)"><span style="color:rgb(0, 102, 0)">Fairfax, VA, USA</span><br style="color:rgb(0, 102, 0)">
<span style="color:rgb(0, 102, 0)">Tel : +1-</span><font color="#ff6600">703-981-0354</font></b></font></span></div><br>
<br><br><div class="gmail_quote">On Thu, Jul 7, 2011 at 10:44 AM, Brian Sanjeewa Rupasinghe <span dir="ltr"><<a href="mailto:jinkabs@gmail.com">jinkabs@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div><br></div><div>I have a building polygon table and from the following query i get the polygon</div><div>coordinates.</div><div><br></div><div><div>select st_astext (st_geometryn(the_geom, 1)) </div><div>from building_poly;</div>

</div><div><br></div><div>Now what i need is to get the concave hull of all polygon coordinates.</div><div>I tried the following query but it does not work.</div><div><br></div><div><div><div>SELECT ST_ConcaveHull(ST_Union(select st_astext (st_geometryn(the_geom, 1)) </div>

<div>from building_poly), 1)  As convexhull;</div></div></div><div><br></div><div>How to correct it?</div><div><br></div><div>Cheers, Sanjeewa.</div>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br></div>