Forked from springmeyer/tilemill-scripted-export.sh
Created
December 10, 2013 07:24
-
-
Save alperdincer/7886929 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 | |
# Settings: edit these as needed | |
PROJECT_NAME="test" | |
OUTPUT_DIRECTORY="~/Documents/MapBox/export/" | |
# first change into TileMill code directory | |
cd /Applications/TileMill.app/Contents/Resources/ | |
# hint: use http://bboxfinder.com/ to get bounds in lon/lat | |
# first export | |
BOUNDS="-125.090332,45.336702,-116.147461,49.253465" | |
NAME="washington" | |
echo "Exporting $NAME using $BOUNDS to ${OUTPUT_DIRECTORY}/${NAME}.mbtiles" | |
./index.js export ${PROJECT_NAME} ${OUTPUT_DIRECTORY}/${NAME}.mbtiles --minzoom=0 --maxzoom=4 --bbox=${BOUNDS} | |
# second export | |
BOUNDS="-125.551758,41.672912,-116.147461,49.253465" | |
NAME="oregon" | |
echo "Exporting $NAME using $BOUNDS to ${OUTPUT_DIRECTORY}/${NAME}.mbtiles" | |
./index.js export ${PROJECT_NAME} ${OUTPUT_DIRECTORY}/${NAME}.mbtiles --minzoom=0 --maxzoom=4 --bbox=${BOUNDS} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment