From: | "Scott Ding" <scott(dot)ding(at)autodesk(dot)com> |
---|---|
To: | "Tomasz Myrta" <jasiek(at)klaster(dot)net> |
Cc: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: point <-> polygon not supported? |
Date: | 2003-02-20 18:34:37 |
Message-ID: | E8EF167E598AD74381DD26B7F315098A01825C95@msgpetmb1.amer.ads.autodesk.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Tomasz,
This works!
Thanks,
Scott Ding
-----Original Message-----
From: Tomasz Myrta [mailto:jasiek(at)klaster(dot)net]
Sent: Thursday, February 20, 2003 9:06 AM
To: Scott Ding
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] point <-> polygon not supported?
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
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2003-02-20 19:20:44 | Re: PL/PGSQL EDITOR |
Previous Message | Tomasz Myrta | 2003-02-20 17:05:58 | Re: point <-> polygon not supported? |