[pgrouting-dev] difference between st_convexhull and pgr_pointsAsPolygon

Stephen Woodbridge woodbri at swoodbridge.com
Mon Apr 13 13:42:59 PDT 2015


On 4/13/2015 3:50 PM, Dave Potts wrote:
> Hi list
>
> I am doing some with the end results of a driving distance calculation,
> I can use either st_convexhull or pgr_pointsAsPolygon to turn the end
> results in to a polygon
>
> Q. What is the advantage of using pgr_pointsAsPolygon instead of using
> st_convexhull?

pgr_pointsAsPolygon should give you a concave hull with holes where as 
st_convexhull will only give you a convex hull. So it depends on your 
needs. For some problems convex hull might be good enough and would be 
faster.

-Steve

---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com



More information about the pgrouting-dev mailing list