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>