X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6DD103A4463 for ; Thu, 20 Jan 2005 10:05:32 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 67560-03 for ; Thu, 20 Jan 2005 10:05:19 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 62B833A4269 for ; Thu, 20 Jan 2005 10:05:20 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.1/8.13.1) with ESMTP id j0KA4l2K006358 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 Jan 2005 03:05:09 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.1/8.13.1) with ESMTP id j0KA4k6v037962; Thu, 20 Jan 2005 03:04:46 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id j0KA4kF7037961; Thu, 20 Jan 2005 03:04:46 -0700 (MST) (envelope-from mfuhr) Date: Thu, 20 Jan 2005 03:04:45 -0700 From: Michael Fuhr To: Silke Trissl Cc: pgsql-sql@postgresql.org Subject: Re: Problem on Geometric functions Message-ID: <20050120100444.GB37770@winnie.fuhr.org> References: <41EF7C63.20607@informatik.hu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41EF7C63.20607@informatik.hu-berlin.de> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/162 X-Sequence-Number: 19950 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/