[postgis-devel] New function ST_DumpSegments?? (was : utility function : linestring -> setof segment)

Sandro Santilli strk at keybit.net
Wed Oct 30 08:42:02 PDT 2013


On Wed, Oct 30, 2013 at 02:34:05PM +0100, RĂ©mi Cura wrote:
> Hey,
> here is the function, safe for geometry collection and multilinestring as
> well.
> It mimics ST_DumpPoints.
> 
> It doesn't work on polygon as we would first need a method STDumpLines.

You have DumpRings which could be used.

> Origine of segments is preserved inside the path when multi.
> Could it be added to core ?
> Shall I add a ticket?

A ticket is welcome.
Patch should include testcase and documentation.

--strk;



More information about the postgis-devel mailing list