Describe the bug
The goal of the to_spatial_subdivision morpher is to subdivide edges at locations where an interior point of that edges matches either an interior point or endpoint of another edge. Internally, it recreates a network. Unintentionally that means now that in networks that has different nodes with equal coordinates, these nodes ar merged into a single node. That is not the goal of the morpher and should therefore not happen. Or is this actually convenient? I am not sure.
Reproducible example
The original network has two nodes (node 2 and node 3) with equal coordinates. Also it has an interior point in edge 1 that is shared with an interior point in edge 2. The subdivision morpher correctly subdivides edge 1 and edge 2 and adds a new node at their intersection. However, it also merged node 2 and node 3 into a single node.
This is a quite unusual case, since normally you would not have several nodes at the same location. I'll mark it as low priority, but it is still a bug that needs to be fixed.
Describe the bug The goal of the
to_spatial_subdivision
morpher is to subdivide edges at locations where an interior point of that edges matches either an interior point or endpoint of another edge. Internally, it recreates a network. Unintentionally that means now that in networks that has different nodes with equal coordinates, these nodes ar merged into a single node. That is not the goal of the morpher and should therefore not happen. Or is this actually convenient? I am not sure.Reproducible example The original network has two nodes (node 2 and node 3) with equal coordinates. Also it has an interior point in edge 1 that is shared with an interior point in edge 2. The subdivision morpher correctly subdivides edge 1 and edge 2 and adds a new node at their intersection. However, it also merged node 2 and node 3 into a single node.
Created on 2021-01-31 by the reprex package (v0.3.0)
Expected behavior Subdivide the edges but don't merge the equal nodes.