[postgis-users] ST_ConcaveHull

Ahmad Aburizaiza ahmadoa4 at gmail.com
Tue Jul 12 14:34:34 PDT 2011


Try this.

Select ST_ConcaveHull(ST_Collect(the_geom)) FROM table;


*---------------------------------------------------------------------------
Ahmad Aburizaiza
PhD student at **George Mason University**
Geography and Geoinformation Science Department
Fairfax, VA, USA
Tel : +1-703-981-0354*



On Thu, Jul 7, 2011 at 10:44 AM, Brian Sanjeewa Rupasinghe <
jinkabs at gmail.com> wrote:

> 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.
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110713/721cf5f1/attachment.html>


More information about the postgis-users mailing list