12

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

ADAM
  • 3,903
  • 4
  • 29
  • 45

2 Answers2

18

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

mloskot
  • 37,086
  • 11
  • 109
  • 136
4

ST_Extent provides an aggregate function that returns a bounding box that bounds a set of geometries.

Kevin Sylvestre
  • 37,288
  • 33
  • 152
  • 232
Andrew McGregor
  • 31,730
  • 2
  • 29
  • 28