Skip to content

Instantly share code, notes, and snippets.

@baditaflorin
Created August 21, 2017 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baditaflorin/76ce5f7b8595b24b0d3d4d0db512c948 to your computer and use it in GitHub Desktop.
Save baditaflorin/76ce5f7b8595b24b0d3d4d0db512c948 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo 'Based on the work of Frederik Ramm https://lists.openstreetmap.org/pipermail/osmosis-dev/2013-October/001613.html'
CMDLINE=`
echo "--read-xml $1"
echo "--sort"
shift
while [[ $# > 0 ]]
do
echo "--read-xml $1"
echo "--sort"
echo "--merge"
echo "--sort"
shift
done
echo "--write-xml -"
`
/usr/bin/osmosis $CMDLINE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment