Re: Problem on Geometric functions

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Problem on Geometric functions
Дата
Msg-id 20050120100444.GB37770@winnie.fuhr.org
обсуждение исходный текст
Ответ на Problem on Geometric functions  (Silke Trissl <trissl@informatik.hu-berlin.de>)
Список pgsql-sql
On Thu, Jan 20, 2005 at 10:39:47AM +0100, Silke Trissl wrote:

> Table "reference.coord_test"
>    Column    |  Type   | Modifiers
> -------------+---------+-----------
>  node_name   | integer |
>  plane_coord | point   |
> 
> 
> I would like to find all points from the table that are within a square. 

Try this:

SELECT plane_coord
FROM reference.coord_test
WHERE plane_coord @ box'((0,0), (2,2))';

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/


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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: SQL timestamp to date cast
Следующее
От: Mihail Nasedkin
Дата:
Сообщение: OID's