Merging Offline Edits with the POSM Replay Tool — Hi.Stamen
▻https://hi.stamen.com/merging-offline-edits-with-the-posm-replay-tool-2f39a4410d2a
POSM subverts the centralized revision control system nature of #OSM and layers on distributed semantics in the same way that git-svn enables distributed workflows and #Git semantics over #Subversion.
Given all of the above, the POSM Replay Tool’s solution is to create a local Git repository containing the current state (local edits), transform it so that it contains the new desired upstream state (what OSM should look like after merging), and apply the necessary transformations (in the form of API calls) to update the upstream state.
XML representations of OSM elements (nodes, ways, relations, and changesets) are converted into #YAML, a line-based, diff-friendly format, in order to take greater benefit of the change tracking mechanisms Git provides.