Re: Detecting whether a point is in a box.

Поиск
Список
Период
Сортировка
От hrsuprith
Тема Re: Detecting whether a point is in a box.
Дата
Msg-id 1299723178686-3422647.post@n5.nabble.com
обсуждение исходный текст
Ответ на Detecting whether a point is in a box.  (HST <helenst@gmail.com>)
Список pgsql-general
Dear Madam,

I had the same issue tonight.

I sorted it out, perhaps it may help you :)

Convert BOX to a polygon & insert some values as per the syntax.

Than run a query

SELECT polygon '((-3,10),(8,18),(-3,30),(-10,20))' @> point '(-8,25)';

let me know if this doesn't work for you ;)

Cheers!
Rao

--
View this message in context:
http://postgresql.1045698.n5.nabble.com/Detecting-whether-a-point-is-in-a-box-tp1887472p3422647.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

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

Предыдущее
От: Sean Hsien
Дата:
Сообщение: Re: 9.0 streaming replication problem
Следующее
От: abcdef
Дата:
Сообщение: output screen in psql