X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/47e0c953b313661add1f3cac2eb72f9f377361fd..45da35a6ec300900fc35596afe37871f1b4a589b:/cookbooks/taginfo/templates/default/update-planet.erb diff --git a/cookbooks/taginfo/templates/default/update-planet.erb b/cookbooks/taginfo/templates/default/update-planet.erb index 371369b07..7f55c078c 100644 --- a/cookbooks/taginfo/templates/default/update-planet.erb +++ b/cookbooks/taginfo/templates/default/update-planet.erb @@ -17,6 +17,8 @@ STATEDIR="${PLANETDIR}/replication" OSCFILE="${PLANETDIR}/$(date +%Y%m%d-%H%M).osc" OSCFILEPREV="${PLANETDIR}/previous.osc" +OSMIUM=<%= @directory %>/osmium-tool/build/src/osmium + # start logging exec > "${LOGDIR}/$(date +%Y%m%d-%H%M).log" 2>&1 @@ -33,7 +35,8 @@ fi # osc file is ready, create new planet file -osmosis --read-xml-change "$OSCFILE" --read-bin "$PLANETCURR" --buffer bufferCapacity=12000 --apply-change --buffer bufferCapacity=12000 --write-pbf file="$PLANETNEW" +#osmosis --read-xml-change "$OSCFILE" --read-bin "$PLANETCURR" --buffer bufferCapacity=12000 --apply-change --buffer bufferCapacity=12000 --write-pbf file="$PLANETNEW" +$OSMIUM apply-changes --verbose --fsync --output=$PLANETNEW $PLANETCURR $OSCFILE # cleanup