views:

391

answers:

2

I have a table with thousands of addresses as points.

Is there a function in postgis that will allow me to get a bounding polygon around these points and return it as a polygon?

update I am looking for a more complex polygon than just a bounding rectangle

+3  A: 

Sure is, ST_Extent: http://postgis.refractions.net/documentation/manual-1.4/ST_Extent.html

Andrew McGregor
thanks. is there a way to get a more complex polygon than just a bounding box?
ADAM
+2  A: 

It may be not 100% clear from your question what you mean as more bounding polygon. It may be understood as

mloskot
thanks ST_ConvexHull is what i was after
ADAM