Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#12197 closed defect (wontfix)

JOSM is changing the IDs — at Version 1

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 …

Change History (1)

comment:1 by simon04, 10 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
Note: See TracTickets for help on using tickets.