[postgis-users] Need a "polygon box" of a table instead of the bounding box that returns extent function

strk strk at keybit.net
Mon May 3 05:56:29 PDT 2010


On Mon, May 03, 2010 at 09:32:54AM -0300, Oscar Zamudio wrote:
> I need to clarify: my table is a table of streets. So ... I don't know how
> to proceed.

You may be looking for ST_ConvexHull. Something like:

SELECT ST_ConvexHull(ST_Collect(the_geom)) from mytable;

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-users mailing list