From: Andreas Gaab <A.Gaab@scanlab.de>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: select points of polygons
Date: Wed, 17 Mar 2010 10:08:25 +0100
Message-ID: <48DA836F3865C54B8FBF424A3B775AF6FDE728EC@Exchange-Server.scanlab-intern.de> (raw)
Hi there,
I have polygons with 5 points (left, center, right, top, bottom)
Now I would like to select an individual point out of the polygon. Are there any functions to provide this in an readable manner other than:
e.g. SELECT replace(split_part(p::text,',(',1),'((','(')::point as point FROM (
SELECT '((0.001329116037,0.007391900417),(0.001371765621,0.1608393682),(0.1502391498,0.00733744679),(0.001500387404,-0.1468751078),(-0.1472653422,0.007425591447))'::polygon as p) as poly
è (0.001329116037,0.007391900417)
Thanks
Andreas
___________________________________________________________________________
SCANLAB AG
Dr. Andreas Simon Gaab
Entwicklung * R & D
Siemensstr. 2a * 82178 Puchheim * Germany
Tel. +49 (89) 800 746-513 * Fax +49 (89) 800 746-199
mailto:a.gaab@scanlab.de * www.scanlab.de<http://www.scanlab.de;
Amtsgericht München: HRB 124707 * USt-IdNr.: DE 129 456 351
Vorstand: Georg Hofner (Sprecher), Christian Huttenloher, Norbert Petschik
Aufsichtsrat (Vorsitz): Dr. Hans J. Langer
___________________________________________________________________________
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: A.Gaab@scanlab.de
Subject: Re: select points of polygons
In-Reply-To: <48DA836F3865C54B8FBF424A3B775AF6FDE728EC@Exchange-Server.scanlab-intern.de>
* 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