Ticket #1500 (closed enhancement: fixed)
ST_MakeLine accepting line input
| Reported by: | strk | Owned by: | pramsey |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 2.0.0 |
| Component: | postgis | Version: | trunk |
| Keywords: | Cc: |
Description
When dealing with topology it is useful to have a simple function that "sews" linestrings together respecting their ordering and direction.
ST_LineMerge reverse lines as needed to find connection while the ST_ConcatenateLines should no nothing more than the sewing itself. No reversing, no reordering of arguments.
The input should be already prepared to be an ordered array of linestring where the first point of each matches the end point of the previous. A single instance of the common vertex should be included in the result.
The function should allow to construct non-simple lines, fully trusting and respecting the user input.
Optionally (but not by default) the function might allow "patching" a gap between components by adding an additional segment connecting them (from end point of first to start point of second).
Un-sewable conditions should be reported by throwing an exception.
Would be nice to have this in 2.0.0, but we can probably also introduce it in 2.0.1 with no major drama.
