[SQL] select points of polygons

2010-03-17 Thread Andreas Gaab
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

Re: [SQL] select points of polygons

2010-03-17 Thread Tom Lane
Andreas Gaab a.g...@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.