“Illegal value for attribute version…Got -1.”
I get this message when I try to load tiles into JOSM that I’ve created from Geofabrik’s US-West-latest.osm.pbf. PBF tiles were created using splitter r299. If I then convert the PBF tiles to OSM using either pbftoosm or osmosis I get the error above.
Suggestions for a fix would be appreciated.
Sample header follows:
The sizes of Java’s int and long are independent from the architecture, so I don’t think this causes the problem.
This error message occurs because nodes with positive ids must not have version numbers < 1. (And negative changeset ids are not accepted either.) I’m not sure why they end up in the file like this, though.