Re: How to calculate length of path data without diagonals?

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: How to calculate length of path data without diagonals?
Дата
Msg-id if136s$sag$3@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на How to calculate length of path data without diagonals?  (Romain Billoir <billoirr@gmail.com>)
Список pgsql-general
On 2010-12-23, Romain Billoir <billoirr@gmail.com> wrote:
> --0015175ccf48e6186a049817fc59
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi, i need to calculate some length of path without diagonal. Some examples:
> length((5,5),(6,6))) returns 1.41. I need 2: 5,5 to 5,6 + 5,6 to 6,6.
>
> Is that possible?

It's called "Manhattan distance" look it up, the arithmentic is easy.

--
⚂⚃ 100% natural

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

Предыдущее
От: Jasen Betts
Дата:
Сообщение: Re: Data backup to local duplicate without resetting permissions
Следующее
От: Tsutomu Nakajima
Дата:
Сообщение: did freese in creating a database cluster