From: Tomasz Myrta <jasiek@klaster.net>
To: Scott Ding <scott.ding@autodesk.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: point <-> polygon not supported?
Date: Thu, 20 Feb 2003 18:05:58 +0100
Message-ID: <3E550AF6.6060203@klaster.net> (raw)
References: <E8EF167E598AD74381DD26B7F315098A1C9892@msgpetmb1.amer.ads.autodesk.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jasiek@klaster.net, scott.ding@autodesk.com
Subject: Re: point <-> polygon not supported?
In-Reply-To: <3E550AF6.6060203@klaster.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox