Re: point <-> polygon not supported?

From: Tomasz Myrta <jasiek(at)klaster(dot)net>
To: Scott Ding <scott(dot)ding(at)autodesk(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: point <-> polygon not supported?
Date: 2003-02-20 17:05:58
Message-ID: 3E550AF6.6060203@klaster.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Scott Ding 2003-02-20 18:34:37 Re: point <-> polygon not supported?
Previous Message Scott Ding 2003-02-20 16:44:32 Re: point <-> polygon not supported?