This function does not seem to always work when supplying a two-vertex linestring which is perfectly horizontal (eg 'LINESTRING(-75 45,-74 45)' ). Also, we need a corresponding distance_spheroid() which takes two points. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_