#2734 closed defect (duplicate)
Splitting a line (>=1 way) at the midway point only splits one of the ways
Reported by: | Owned by: | team | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
JOSM adds a + sign at the midway point where the user can click and split ways, but when multiple ways share the same line selecting and dragging the midway point only splits one of them.
Steps to reproduce:
- Create an .osm file with two ways that share the same nodes, e.g.:
<?xml version='1.0' encoding='UTF-8'?> <osm version='0.6' generator='JOSM'> <node id='-1' visible='true' lat='44.79676131765202' lon='-67.83034257748777' /> <node id='-2' visible='true' lat='-59.70949384187036' lon='35.53017944535074' /> <way id='-3' visible='true'> <nd ref='-1' /> <nd ref='-2' /> </way> <way id='-4' action='modify' visible='true'> <nd ref='-2' /> <nd ref='-1' /> </way> </osm>
- Drag the midway point for the two ways, this will only add a new point to one of the ways:
<?xml version='1.0' encoding='UTF-8'?> <osm version='0.6' generator='JOSM'> <node id='-1' visible='true' lat='44.79676131765202' lon='-67.83034257748777' /> <node id='-2' visible='true' lat='-59.70949384187036' lon='35.53017944535074' /> <node id='-3' action='modify' visible='true' lat='27.897634339237683' lon='26.721044045677' /> <way id='-4' action='modify' visible='true'> <nd ref='-1' /> <nd ref='-3' /> <nd ref='-2' /> </way> <way id='-5' action='modify' visible='true'> <nd ref='-1' /> <nd ref='-2' /> </way> </osm>
Instead it should have added a node to all ways that shared that line.
Implementing it like that would be especially useful where e.g. landuse and a highway way share the same nodes, when trying to adjust them by adding new nodes using the midway tool they'll get out of sync.
The workaround is to shift+click on the line to add a new nodes to all the ways, then drag & adjust.
Already fixed. Use <alt>.