From: Michael Fuhr <mike@fuhr.org>
To: Silke Trissl <trissl@informatik.hu-berlin.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Problem on Geometric functions
Date: Thu, 20 Jan 2005 03:04:45 -0700
Message-ID: <20050120100444.GB37770@winnie.fuhr.org> (raw)
In-Reply-To: <41EF7C63.20607@informatik.hu-berlin.de>
References: <41EF7C63.20607@informatik.hu-berlin.de>
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/
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: mike@fuhr.org, trissl@informatik.hu-berlin.de
Subject: Re: Problem on Geometric functions
In-Reply-To: <20050120100444.GB37770@winnie.fuhr.org>
* 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