1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| #!/bin/bash set -o errexit set -o pipefail set -o nounset
echo "Remove us-south..." if [ -f us-south-latest.osm.pbf ] ; then rm -f us-south-latest.osm.pbf fi
echo "Remove vector tiles..." if [ -f tiles.mbtiles ] ; then rm -f tiles.mbtiles fi
echo "Removing meck.osm.pbf..." if [ -f meck.osm.pbf ] ; then rm -f meck.osm.pbf fi
echo "Getting OSM data..." wget http://download.geofabrik.de/north-america/us-south-latest.osm.pbf -q --show-progress
echo "Clipping PBF..." ./osmconvert64 us-south-latest.osm.pbf -b=-82.641,34.125,-79.008,36.762 --complex-ways -o=meck.osm.pbf
docker run -v $(pwd):/srv -i -t --rm tilemaker /srv/meck.osm.pbf --config=/srv/config-openmaptiles.json --process=/srv/process-openmaptiles.lua --output=/srv/tiles.mbtiles
|