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 50EE05E46C9 for ; Thu, 12 Aug 2004 14:11:34 -0300 (ADT) 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 55960-03 for ; Thu, 12 Aug 2004 17:11:27 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 6E6FE5E46BF for ; Thu, 12 Aug 2004 14:11:25 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i7CHBMiG056607 for ; Thu, 12 Aug 2004 17:11:22 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i7CGxN80053420 for pgsql-sql@postgresql.org; Thu, 12 Aug 2004 16:59:23 GMT From: albrechtt@inseal.de (Sebastian Albrecht) X-Newsgroups: comp.databases.postgresql.sql Subject: Getting points from polygon Date: 12 Aug 2004 09:59:23 -0700 Organization: http://groups.google.com Lines: 20 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200408/131 X-Sequence-Number: 18628 Hello, how can I get single xy-points from a polygon like for example: CREATE TABLE "public"."country" ( "country_id" INTEGER NOT NULL, "geo" polygon NOT NULL ) SELECT geo.x, geo.y FROM country WHERE geo.x=5 or SELECT geo[24th point].x FROM country ... Thanks in advance and best regards, Sebastian