Opened 13 years ago

Closed 13 years ago

#270 closed enhancement (fixed)

Delete nodes from a way

Reported by: dean@… Owned by: Immanuel Scholz
Priority: minor Milestone:
Component: josm Version:
Keywords: Cc:

Description

It would be useful when adjusting/simplifying ways to be able to delet a node from a way. This should be exactly the same as deleting a node with two segments normally but with the added code to remove the deleted segment from any ways it is in.

Attachments (1)

deletenodefromway.patch (2.6 KB) - added by dean@… 13 years ago.
Final patch to delete a node from a way

Download all attachments as: .zip

Change History (4)

comment:1 Changed 13 years ago by dean@…

This patch adds support for deleting nodes when the associated segments are part of a way. If the way contains BOTH segments, then the deleted segment will be removed. If it contains only 1, it will warn the user and exit.

Currently, the way editing and the node removal appears as two separate entries in the history, and as such, it may change one way and then exit if it later finds one that conflicts.

Enjoy.

Changed 13 years ago by dean@…

Attachment: deletenodefromway.patch added

Final patch to delete a node from a way

comment:2 Changed 13 years ago by dean@…

Ok, this version of the patch fixes all the previous issues. Way checking is done in two passes. All are checked before anything is changed, THEN the ways are updated. All the undo actions are now grouped into a dingle action.

comment:3 Changed 13 years ago by Immanuel Scholz

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.