Opened 6 years ago

Closed 6 years ago

Last modified 2 years ago

#9129 closed defect (fixed)

Inconsistent behavior when merging nodes

Reported by: dforsi Owned by: team
Priority: normal Milestone: 13.11
Component: Core validator Version: latest
Keywords: Cc:


In the attached file you can find nodes that share the same position (it's real data from which I removed other nodes for clarity):

id='1747860328' lat='37.7230417' lon='14.0540179'
id='2465869552' lat='37.7230417' lon='14.0540179'

id='2465102612' lat='37.7230793' lon='14.0489794'
id='2465102614' lat='37.7230793' lon='14.0489794'

When fixing with the Validator, nodes 2465102614 and 2465869552 get deleted and node 2465102612 gets modified (with no reason because it has the same coordinates before and after the merge and there aren't tags on these nodes).

When merging manually with the "m" command, nodes 2465102614 and 2465869552 still get deleted but this time node 1747860328 gets modified (again with no reason I can see).

When merging with Ctrl+mouse drag, nodes 2465102614 and 2465869552 still get deleted and no other node is modified (it works the same no matter which node is dragged); this is the behavior I expect from the Validator.

I checked this with versions 6115 and 6269.

Attachments (1)

merge-nodes.osm (2.1 KB) - added by dforsi 6 years ago.
Test data to check merge operation

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by dforsi

Attachment: merge-nodes.osm added

Test data to check merge operation

comment:1 Changed 6 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 6275/josm:

fix #9129 - unnecessary change command when merning two nodes with exact same coordinates

comment:2 Changed 6 years ago by Don-vip

Thanks for this detailed description and precise test file. If all bug reports were like this :)

Last edited 6 years ago by Don-vip (previous) (diff)

comment:3 Changed 6 years ago by Don-vip

Milestone: 13.11 (6383)

comment:4 Changed 2 years ago by stoecker

Milestone: 13.11 (6383)13.11

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.