Hello. Some time ago I have downloaded pbf map (MAP-1) from geofabrik. Since then I have edited this map for my own purposes (mostly added some ways). Now I have downloaded a new map (MAP-2) of a different region and I would like to merge those maps (to further edit them locally). What I think happened is that there are node ID conflicts because both maps have a common source, but were later developed independently - I have added some nodes, they got own IDs and official osm MAP-2 was edited at the same time, and nodes with the same IDs were created but in different places. That way depending on the conflict resolution method in osmosis merge command, either the way on the MAP-2 leads to the MAP-1 or vice versa. Solutions that I have thought about:
Extra suggestions are most welcome. I have no idea how to implement any of the solutions nor if they are correct. I will be grateful for any hints. asked 06 May '19, 13:33 JacekDAC |
I would simply renumber one of the datasets see https://docs.osmcode.org/osmium/latest/osmium-renumber.html (starting with ids that are guaranteed to not conflict with what you have used). answered 07 May '19, 12:04 SimonPoole ♦ |
Are the ways that you have added in some way unsuitable for inclusion in OpenStreetMap?
I think that the strategy used by some of the editing software is to use negative IDs for items that hanve't yet been uploaded to avoid conflicts, but my experience is restricted to user-side stuff, not anything on the backend.
Yes, the changes are not suitable to be included in OpenStreetMap.
Unfortunately, this is not a case. I run my own OpenStreetMap server and I have published the data there - this means that IDs are not negative.
I think that osmosis --read-apidb-change intervalBegin would be suitable but I need to read file not database. I need something like --read-pbf-change. Of filter by the author