Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#12197 closed defect (wontfix)

JOSM is changing the IDs

Reported by: lara.codeca@… Owned by: team
Priority: major Milestone:
Component: Core Version: tested
Keywords: IDs Cc:

Description (last modified by simon04)

If you open a osm file, change nothing, and save it back, all/many IDs are changed.
I don't understand this behavior and if it's possible to change it. I don't see any other option …

Attachments (0)

Change History (2)

comment:1 by simon04, 8 years ago

Description: modified (diff)
Resolution: wontfix
Status: newclosed

Since the negative ID might already be in use in an other layer, JOSM replaces any ID <0 with a freshly generated one, see org.openstreetmap.josm.data.osm.OsmPrimitive#OsmPrimitive(long, boolean)

Consider:

  1. Start JOSM, create node, save as foo.osm (the node has ID -1), close JOSM
  2. Start JOSM, create node, save as bar.osm (the node has ID -1), close JOSM
  3. Open foo.osm and bar.osm

comment:2 by simon04, 8 years ago

#11773 is related.

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. 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.