Closed loreabad6 closed 2 years ago
So this seems to happen when a merged edge crosses itself. That is not a valid linestring according to the simple feature standard and st_line_merge
therefore refuses to merge them. This is not so easy to solve when using st_line_merge
. The alternative could be to implement our own line merging function, e.g. by using sfheaders
, but there are a lot of things to take into consideration when doing so.
Since this is quite an unusual case I'll mark this issue as low priority, but it is indeed a bug.
Fixed in v0.6.0
Describe the bug I have a test network, created from points. When I pass it to
to_spatial_smooth()
it returns a network with edges asMULTILINESTRING
geometries,Reproducible example
Expected behavior The morpher should return edges with
LINESTRING
s.