Migration from version 2 to version 10

Hello, I am currently migrating from version 2 to version 10, and I am loading my OSM files from before. However, when I load my old OSM files, there are errors that says “Invalid OSM Node ID” because it is negative. May I know what does the negative Node ID means and how does it actually affect the overall usage of the service? Can I get advise for this - to possibly change my IDs or change the logic of the code…?

Additionally, I have also came across an error that says that “Graph after reading OSM must not be empty”. However, when I open my “.osm.pbf” file in QGIS or JOSM, I can see my map and I dont see why is the graph empty. The attributes for those IDs are also negative as well.

Appreciate your kind response in this matter. :blush:

Hi @yltannn

I am unsure why it is not suported, but you can shift everything to positive ids using the osmium renumber tool: Osmium manual pages – osmium-renumber (1)