Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#2707 closed defect (fixed)

Deleting a way with new nodes produces invalid osm file

Reported by: balrog-kun Owned by: team
Priority: minor Milestone:
Component: Core Version: latest
Keywords: Cc: Gubaer

Description

If you add a new node to an existing way, then change your mind and delete the way and save the file, the way will be saved with action='delete' and will contain the new node's id (such as -25). The node, however will not be in the file because new nodes, when deleted, are forgotten. On loading the file into JOSM again, JOSM will say that it had to skip the way because it contained a non-existent node. Logically the deletion of the way will not be in the changeset when uploading to OSM.

I think the easiest fix would be to ignore missing nodes when loading deleted ways. A different fix would be to remove new nodes from ways the moment they are deleted.

Attachments (0)

Change History (3)

comment:1 Changed 11 years ago by stoecker

Last solution seems right. When deleting ways/relations the new nodes/elements should be stripped first.

comment:2 Changed 11 years ago by Gubaer

Resolution: fixed
Status: newclosed

fixed in r1656

comment:3 Changed 11 years ago by Gubaer

Cc: Gubaer added

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.