[postgis-users] Re: [Mapserver-users] Finding Extent

David Blasby dblasby@refractions.net
Mon, 10 May 2004 09:33:10 -0700


Tyler Mitchell wrote:
> Two ideas,
> 1) Won't "select extent(the_geom)..." give you something you can use, 
> without the need to repeat that step four times?


SELECT xmin(extent), ymin(extent), xmax(extent), ymax(extent) FROM
   (SELECT extent(the_geom) as extent FROM <table> WHERE <where clause>) 
as foo;

dave
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users