Opened 15 years ago

Closed 15 years ago

Last modified 15 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


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 by stoecker, 15 years ago

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

comment:2 by Gubaer, 15 years ago

Resolution: fixed
Status: newclosed

fixed in r1656

comment:3 by Gubaer, 15 years ago

Cc: Gubaer added

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. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.