Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#2707 closed defect (fixed)

Deleting a way with new nodes produces invalid osm file

Reported by: balrogg@… Owned by: team
Priority: minor Component: Core
Version: latest Keywords:
Cc: karl.guggisberg@…

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

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

comment:2 Changed 4 years ago by Gubaer

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r1656

comment:3 Changed 4 years ago by Gubaer

  • Cc karl.guggisberg@… added

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.