How did you chose to use 32661?  You should use an SRID that uses a projection that works well for the area that you are working in.  <br><br><div class="gmail_quote">On Wed, Dec 17, 2008 at 2:34 PM, sub3 <span dir="ltr"><<a href="mailto:steve@subwest.com">steve@subwest.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi,<br>
I was trying to calculate the distance (in NM) from two points.  I've found<br>
a method using distance_spheroid, but I am curious why my original method<br>
didn't work correctly:<br>
<br>
select distance (<br>
  transform( GeomFromText('Point(-76.29145663 -45.9229366415 )', 4269),<br>
32661),<br>
  transform( GeomFromText('Point(-76.42922377 -45.2098919078 )', 4269),<br>
32661)<br>
) / 1852<br>
<br>
gives me 297 NM, but it is really a lot closer.  I thought distance() would<br>
return the number of meters, then I divide by the number of meters in a NM.<br>
<br>
Thanks for any help.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://www.nabble.com/Confusing-Distance-tp21060820p21060820.html" target="_blank">http://www.nabble.com/Confusing-Distance-tp21060820p21060820.html</a><br>
Sent from the PostGIS - User mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>************************************<br>David William Bitner<br>