[postgis-users] Get the bounding box?

Nicklas Avén nicklas.aven at jordogskog.no
Mon Jul 19 23:23:41 PDT 2010


Hallo
ST_Expand should do the trick.
http://postgis.org/documentation/manual-1.5/ST_Expand.html
/Nicklas
2010-07-20 Michael A. Peters  wrote:

First, thank you to the developers. Until about a week ago, my code for
>range map generation was ugly and complex and broke frequently, and now
>that I am using PostGIS - it's a LOT simpler.
>
>I have one map that still needs to be ported to the new way of doing things.
>
>http://www.shastaherps.org/map/pitContact.svg
>
>The contact zone is an intersection between polygons from two geometries.
>I am getting that from PostGIS via ST_Intersection and it looks perfect.
>
>The map shows creeks in the contact zone and a buffer area around it, and
>right now, the coordinates for what to grab is hard coded. What I want it
>to do is grab X kilometers in each compass directions around the
>intersection, so that as the range maps for the species are updated
>resulting in altered contact zone, the map will auto-adjust.
>
>I can't figure out how to get the bounding box for the intersection. It
>would be nice to be able to simply ask for the bounding box + X kilometers
>in each direction if PostGIS can do that (I'm running 1.3.2 on CentOS -
>that's stock EPEL build) but I can do the math outside of PostGIS if
>necessary. I just can't figure out how to get the bounding box returned.
>
>Thanks for any tips.
>
>-----
>Michael A. Peters
>
>http://www.shastaherps.org/
>_______________________________________________
>postgis-users mailing list
>postgis-users at postgis.refractions.net
>http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20100720/1993467e/attachment.html>


More information about the postgis-users mailing list