Re: calculating distance between longitude and latitude - Mailing list pgsql-general

From Uwe Schroeder
Subject Re: calculating distance between longitude and latitude
Date
Msg-id 201006091939.42503.uwe@oss4u.com
Whole thread Raw
In response to calculating distance between longitude and latitude  (Geoffrey <lists@serioustechnology.com>)
List pgsql-general

> Does postgresql have functions to calculate the distance between two
> sets of longitude and latitude.
>

You're looking for the earthdistance contrib module. With most Linux distros
it's installed under /usr/share/postgresql/8.xx/contrib
You may have to install a "postgresql-contrib" package depending on your
distro.
Typing "locate earthdistance.sql" should reveal the location if it's available
already. To activate you'd just do a "pgsql [database] <
/whereever/earthdistance.sql"

HTH
  Uwe


pgsql-general by date:

Previous
From: Lew
Date:
Subject: Re: Cognitive dissonance
Next
From: Tom Lane
Date:
Subject: Re: server crash => libpq poll() hangs forever (Linux)