[postgis-users] Polygon to Point collection??

strk at refractions.net strk at refractions.net
Thu May 11 02:43:46 PDT 2006


On Wed, May 10, 2006 at 12:47:53PM -0600, Bruce Rindahl wrote:
> I need to take an existing polygon in PostGIS and create a collection of
> points representing the vertices of the polygon.  Is this currently
> possible?  I see the function PointN but it seems to require a linestring.

This would best be implemented as a C function, anyway, if
you want to go the procedural way, you can extract linestrings
from polygons with ExteriorRing() and InteriorRingN()

--strk;



More information about the postgis-users mailing list