[postgis-users] ST_ConcaveHull giving up too soon, aka too convex

Ivan Price Ivan.Price at noveltis.fr
Tue Jan 14 02:07:39 PST 2014


Hi there,

I am experimenting with ST_ConcaveHull, am using Postgres 9.2.2 on windows with postgis 2.1.1 r12113

i have a table of 218 points forming roughly an arc (something like the nike swoosh)

when i ask for the concave hull i'm expecting a poly shrink-wrapped to them, however this is not the case, even when i set a very low percentage area parameter. for example:

SELECT ST_ConcaveHull(ST_Collect(geom), 0.000001) as geom FROM points;

i attach a screenshot of the points and the convext hull, as well as an sql dump of the points themselves.

also as a side note, in researching the problem i upgraded from postgis 2.01 to 2.1.1 and noticed a change in the processing time for the above statement from 1 minute to ~ 5 minutes.

are there any pointers for making ConcaveHull more 'aggressive' ?

thanks and regards

-i

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20140114/54a981e4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: convex_hull.png
Type: image/png
Size: 20785 bytes
Desc: convex_hull.png
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20140114/54a981e4/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: points.zip
Type: application/x-zip-compressed
Size: 4733 bytes
Desc: points.zip
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20140114/54a981e4/attachment.bin>


More information about the postgis-users mailing list