generative
generative copied to clipboard
Join connected SEGMENTs into LINESTRINGS
Input:
LINESTRING(0 0, 0 1)
LINESTRING(0 1, 0 2)
Output:
LINESTRING(0 0, 0 1, 0 2)
Use a heuristic to traverse graph, and emit traversals as LINESTRINGs. Maybe add to the traverse tool? Or to geom2graph --graph2geom
The problem with geom2graph is:
- It's C++
- It outputs two-point LINESTRINGs, even when they're adjacent (because it uses GEOS for this)
Related: https://github.com/Notgnoshi/generative/issues/130