generative icon indicating copy to clipboard operation
generative copied to clipboard

Join connected SEGMENTs into LINESTRINGS

Open Notgnoshi opened this issue 3 years ago • 0 comments

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:

  1. It's C++
  2. It outputs two-point LINESTRINGs, even when they're adjacent (because it uses GEOS for this)

Related: https://github.com/Notgnoshi/generative/issues/130

Notgnoshi avatar Feb 12 '23 15:02 Notgnoshi