<div dir="ltr"><div class="gmail_quote">On Tue, Sep 9, 2008 at 3:14 AM, Nicolas Ribot <span dir="ltr"><<a href="mailto:nicky666@gmail.com">nicky666@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">No for surfaces. You will have to project your data into a planar</div>
projection system to do so (UTM for instance). This thread may be<br>
useful in your case to find the correct UTM zone according to your<br>
objects coordinates:</blockquote><div><br></div><div>Untrue, the maths is just a little harder! And you need to assume the globe is a sphere (ala distance_sphere()):</div><div><br></div><div>If you're dealing with lat-lon "rectangles" you want something like this: </div>
<div><a href="http://mathforum.org/dr.math/faq/formulas/faq.sphere.html#spherecap">http://mathforum.org/dr.math/faq/formulas/faq.sphere.html#spherecap</a> </div><div><br></div><div>If you're dealing with arbitrary polygons its a bit more complicated:</div>
<div><a href="http://groups.google.com/group/comp.infosystems.gis/browse_frm/thread/af0401d07c3068b5?lnk=igtc">http://groups.google.com/group/comp.infosystems.gis/browse_frm/thread/af0401d07c3068b5?lnk=igtc</a> </div><div>
<br></div><div>HTH,</div><div><br></div><div>Rob :)</div></div>
</div>