Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#2734 closed defect (duplicate)

Splitting a line (>=1 way) at the midway point only splits one of the ways

Reported by: avar Owned by: team
Priority: major 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:

  1. 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>
  1. 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.

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by stoecker

  • Resolution set to duplicate
  • Status changed from new to closed

Already fixed. Use <alt>.

comment:2 Changed 4 years ago by stoecker

Closed as duplicate of #1469.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.