pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
select points of polygons
2+ messages / 2 participants
[nested] [flat]

* select points of polygons
@ 2010-03-17 09:08 Andreas Gaab <A.Gaab@scanlab.de>
  2010-03-17 14:21 ` Re: select points of polygons Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Andreas Gaab @ 2010-03-17 09:08 UTC (permalink / raw)
  To: pgsql-sql

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
___________________________________________________________________________

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: select points of polygons
  2010-03-17 09:08 select points of polygons Andreas Gaab <A.Gaab@scanlab.de>
@ 2010-03-17 14:21 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2010-03-17 14:21 UTC (permalink / raw)
  To: Andreas Gaab <A.Gaab@scanlab.de>; +Cc: pgsql-sql

Andreas Gaab <A.Gaab@scanlab.de> writes:
> 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

Doesn't look like it :-(.  Seems like rather an oversight.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2010-03-17 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-03-17 09:08 select points of polygons Andreas Gaab <A.Gaab@scanlab.de>
2010-03-17 14:21 ` Tom Lane <tgl@sss.pgh.pa.us>

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