<html>
<head>
</head>
<body>
        <div style="text-align: left;">Hallo</div>
        <div style="text-align: left;"><br />
                </div>
        <div style="text-align: left;">ST_Expand should do the trick.</div>
        <div style="text-align: left;"><br />
                </div>
        <div style="text-align: left;"><a href="http://postgis.org/documentation/manual-1.5/ST_Expand.html">http://postgis.org/documentation/manual-1.5/ST_Expand.html</a></div>
        <div style="text-align: left;"><br />
                </div>
        <div style="text-align: left;">/Nicklas</div><br />
         2010-07-20 Michael A. Peters  wrote:<br />
        <br />
        First, thank you to the developers. Until about a week ago, my code for<br />
        
>range map generation was ugly and complex and broke frequently, and now<br />
        
>that I am using PostGIS - it's a LOT simpler.<br />
        
><br />
        
>I have one map that still needs to be ported to the new way of doing things.<br />
        
><br />
        
>http://www.shastaherps.org/map/pitContact.svg<br />
        
><br />
        
>The contact zone is an intersection between polygons from two geometries.<br />
        
>I am getting that from PostGIS via ST_Intersection and it looks perfect.<br />
        
><br />
        
>The map shows creeks in the contact zone and a buffer area around it, and<br />
        
>right now, the coordinates for what to grab is hard coded. What I want it<br />
        
>to do is grab X kilometers in each compass directions around the<br />
        
>intersection, so that as the range maps for the species are updated<br />
        
>resulting in altered contact zone, the map will auto-adjust.<br />
        
><br />
        
>I can't figure out how to get the bounding box for the intersection. It<br />
        
>would be nice to be able to simply ask for the bounding box + X kilometers<br />
        
>in each direction if PostGIS can do that (I'm running 1.3.2 on CentOS -<br />
        
>that's stock EPEL build) but I can do the math outside of PostGIS if<br />
        
>necessary. I just can't figure out how to get the bounding box returned.<br />
        
><br />
        
>Thanks for any tips.<br />
        
><br />
        
>-----<br />
        
>Michael A. Peters<br />
        
><br />
        
>http://www.shastaherps.org/<br />
        
>_______________________________________________<br />
        
>postgis-users mailing list<br />
        
>postgis-users@postgis.refractions.net<br />
        
>http://postgis.refractions.net/mailman/listinfo/postgis-users<br />
        
><br />
        
>
 
</body>
</html>