Re: earthdistance results seem to be wrong.

Поиск
Список
Период
Сортировка
От Chris Mair
Тема Re: earthdistance results seem to be wrong.
Дата
Msg-id 1096817341.15333.9.camel@dell
обсуждение исходный текст
Ответ на earthdistance results seem to be wrong.  (mikecoxlinux@yahoo.com (Mike Cox))
Список pgsql-general
> select
> earth_distance(ll_to_earth('122.55688','45.513746'),ll_to_earth('122.396357','47.648845'));
>
> The result I get is this:
>
> 128862.563227506
>
> The distance from Portland to Seattle is not 128862
> miles.

It is 128000m = 128km.

Welcome to the metric system :)

Bye, Chris.



В списке pgsql-general по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: sequence rename?
Следующее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: earthdistance is not giving correct results.