[postgis-users] WGS84 to meters

Robert Coup robert.coup at onetrackmind.co.nz
Mon Sep 8 18:36:50 PDT 2008

On Tue, Sep 9, 2008 at 3:14 AM, Nicolas Ribot <nicky666 at gmail.com> wrote:

> No for surfaces. You will have to project your data into a planar
> projection system to do so (UTM for instance). This thread may be
> useful in your case to find the correct UTM zone according to your
> objects coordinates:

Untrue, the maths is just a little harder! And you need to assume the globe
is a sphere (ala distance_sphere()):

If you're dealing with lat-lon "rectangles" you want something like this:

If you're dealing with arbitrary polygons its a bit more complicated:


Rob :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20080909/9c5f8729/attachment.html>

More information about the postgis-users mailing list