Created
August 21, 2017 15:17
-
-
Save baditaflorin/76ce5f7b8595b24b0d3d4d0db512c948 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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