Re: [postgis-users] Get the bounding box?

2010-07-21 Thread Michael A. Peters
Yes, for plotting the maps in cartesian SVG I already do some of what it looks like that does via php. I assume the earth is a perfect sphere and calculate arc lengths where I need distance etc. - it looks like the geography type may let me simplify my code even moreso. You might want to look

[postgis-users] Get the bounding box?

2010-07-20 Thread Michael A. Peters
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.

Re: [postgis-users] Get the bounding box?

2010-07-20 Thread Nicklas Avén
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

Re: [postgis-users] Get the bounding box?

2010-07-20 Thread Michael A. Peters
Thank you. It did work with one caveat, I assume because all my shape data is in WGS84 it added an equal number of specified decimal degrees to each side but that was cake to adjust post ST_Expand and it now does exactly what I want it to do. Hallo ST_Expand should do the trick.

Re: [postgis-users] Get the bounding box?

2010-07-20 Thread Francis Markham
You might want to look into the GEOGRAPHY type http://postgis.refractions.net/docs/ch04.html#PostGIS_Geography to do this nicely. -Francis On 21 July 2010 12:57, Michael A. Peters mpet...@shastaherps.org wrote: Thank you. It did work with one caveat, I assume because all my shape data is in