[OSM-dev] Deleting nodes from a way

Dean Earley dean at earlsoft.co.uk
Mon Sep 4 23:13:34 BST 2006

Dean Earley wrote:
> Hi all.
> When tidying up ways (like the jagged autogenerated coastline :) I find 
> it would be useful to delete nodes from a way without having to remove 
> the surrounding segments, delete the node, and re-add the remaining one.
> I have created a patch to JOSM that allows just that. It will only 
> adjust the way if it contains BOTH the segments. If it only contains 
> one, it will exit and warn the user.
> Currently, it adds a separate history item for each way, then the node 
> deletion.
> This is documented on trac at:
> http://trac.openstreetmap.org/ticket/270

Hi all again.

I have now sorted this issue (with help of the "Add node to segment" 
code). No changes are made until everything is checked and all changes 
are grouped into one undo action.

The final patch is available at:

Imi, can you let me know what you think? :)


Dean Earley, Dee (dean at earlsoft.co.uk)

irc:    irc://irc.blitzed.org/
web:    http://personal.earlsoft.co.uk
phone:  +44 (0)780 8369596

More information about the dev mailing list