[postgis-users] ST_ConcaveHull

Brian Sanjeewa Rupasinghe jinkabs at gmail.com
Thu Jul 7 00:44:36 PDT 2011


Hi,

I have a building polygon table and from the following query i get the
polygon
coordinates.

select st_astext (st_geometryn(the_geom, 1))
from building_poly;

Now what i need is to get the concave hull of all polygon coordinates.
I tried the following query but it does not work.

SELECT ST_ConcaveHull(ST_Union(select st_astext (st_geometryn(the_geom, 1))
from building_poly), 1)  As convexhull;

How to correct it?

Cheers, Sanjeewa.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110707/90e4ff5c/attachment.html>


More information about the postgis-users mailing list