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 1C65A3A18CF for ; Thu, 20 Jan 2005 09:40:01 +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 62638-05 for ; Thu, 20 Jan 2005 09:39:48 +0000 (GMT) Received: from mail.informatik.hu-berlin.de (mail.informatik.hu-berlin.de [141.20.20.50]) by svr1.postgresql.org (Postfix) with ESMTP id 074CA3A44C5 for ; Thu, 20 Jan 2005 09:39:49 +0000 (GMT) Received: from informatik.hu-berlin.de (karotte [141.20.27.143]) (authenticated bits=0) by mail.informatik.hu-berlin.de (8.12.10/8.12.10/INF-2.0-MA-SOLARIS-2.8) with ESMTP id j0K9dl09013586 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 20 Jan 2005 10:39:47 +0100 (MET) Message-ID: <41EF7C63.20607@informatik.hu-berlin.de> Date: Thu, 20 Jan 2005 10:39:47 +0100 From: Silke Trissl User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.4) Gecko/20030624 X-Accept-Language: de-at, de, en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Problem on Geometric functions Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200501/159 X-Sequence-Number: 19947 Hello, I have a table that has an attribute 'identifier', declared as integer=20 and an attribute 'plane_coord' defined as 'point': 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. = Is this possible to do so? I have just found a check-operator to find=20 out if a specified point is contained in or on a figure: point '(1,1)' @ box '((0,0),(2,2))' (on http://www.postgresql.org/docs/7.4/interactive/functions-geometry.htm= l). I am looking for something like SELECT point(x,y) FROM reference.coord_test WHERE point(x,y) =80 box '((0,0), (2,2))'; Has anyone experience with that? Regards, Silke By the way, I am using PostGreSQL 7.4.1