[postgis-users] ST_Distance_Spheroid gives distance 28 times higher than haversine formula?

Paul Ramsey pramsey at cleverelephant.ca
Tue Aug 18 06:51:10 PDT 2009

On Tue, Aug 18, 2009 at 9:38 AM, Stephen Sample<ssample at nppa.org> wrote:
> I'm in the process of moving a GIS app from manual distance calculations
> (using the haversine formula) to PostGIS using ST_Distance_Spheroid (with
> WGS84).
> The geometry column is just storing longitude/latitude points (in radians).

The *spher(oid) function in postgis expect degrees, not radians.


More information about the postgis-users mailing list