I'm trying to apply a list of .OSC changesets over an .OSM file.
The problem I have is that the .OSC files contain negative ids for nodes and ways. I understand that the negative ids are merely placeholders and that they are only unique per OSC file/entity type.
The fact that I want to merge such chagesets creates some (expected) issues:
> osmconvert initial.osm changes1.osc changes1.osc > updated12.osm
osmconvert Warning: wrong order at node -1 in file changes1.osc
osmconvert Warning: next object is node -2
- osmconvert and osmosis complain about ids not being sorted in ascending order (in OSCs the ids are -1, -2 and so on)
- any item from one changeset will overwrite elements from the previous changesets that happen to have the same id
I looked at the options that osmconvert and osmosis offer for dealing with negative ids, but found nothing - it appears that they assume all files would contain real ids.
I could write a preprocessing tool that assigns positive ids, but was wondering if there's a way to deal with this situation using the existing tool set.