Re: point <-> polygon not supported?

Поиск
Список
Период
Сортировка
От Tomasz Myrta
Тема Re: point <-> polygon not supported?
Дата
Msg-id 3E550AF6.6060203@klaster.net
обсуждение исходный текст
Ответ на Re: point <-> polygon not supported?  ("Scott Ding" <scott.ding@autodesk.com>)
Список pgsql-sql
Scott Ding wrote:
> Tomasz,
> 
> Thanks for the tip. What I want to do is something like the following:
> 
> Select * from table where (table.geom <-> polygon('((3,3), (3,4), (4,5),
> (5,4), (5,3))')) < 1.0);
> 
> Table.geom is a point column.
I have never user geometric types...
I think, you can use some data type, which can be used for counting 
distance, for example circle:

Select * from table where (circle(table.geom,0) <-> polygon('((3,3), 
(3,4), (4,5), (5,4), (5,3))')) < 1.0);

Regards,
Tomasz Myrta



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

Предыдущее
От: "Scott Ding"
Дата:
Сообщение: Re: point <-> polygon not supported?
Следующее
От: "Scott Ding"
Дата:
Сообщение: Re: point <-> polygon not supported?