Last active
August 23, 2023 13:14
-
-
Save StrandedKitty/5002786d2bd1bee22b9e2f99edd210f1 to your computer and use it in GitHub Desktop.
streets_gl_planetiler
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/sh | |
echo "Starting planetiler.sh..." | |
sudo -i -u ubuntu bash << EOF | |
cd ~/planetiler | |
git pull | |
sudo mkdir /mnt | |
cd /mnt | |
sudo mkdir big | |
yes y | sudo mkfs.ext4 /dev/nvme1n1 | |
sudo mount -t ext4 /dev/nvme1n1 /mnt/big | |
sudo chmod 777 -R /mnt/big | |
sudo rm -r /mnt/big/planetiler | |
sudo cp -r ~/planetiler /mnt/big/planetiler | |
sudo chmod 777 -R /mnt/big | |
cd /mnt/big/planetiler | |
wget -O data/sources/planet.osm.pbf https://download.bbbike.org/osm/planet/planet-daily.osm.pbf | |
wget -O data/sources/planet.osm.timestamp https://download.bbbike.org/osm/planet/planet-daily.osm.pbf.timestamp | |
wget -O data/sources/water.zip https://osmdata.openstreetmap.de/download/water-polygons-split-3857.zip | |
unzip data/sources/water.zip -d data/sources | |
mvn -DskipTests --projects planetiler-dist -am clean package | |
java -Xmx110g -XX:MaxHeapFreeRatio=40 -cp planetiler-dist/target/*-with-deps.jar com.onthegomap.planetiler.examples.StreetsProfile --nodemap-type=array --storage=ram 2>&1 | tee >(cat > planet.log) | |
aws s3 cp data/data.mbtiles s3://osm-tiles/vector/planet.mbtiles --endpoint=https://ams3.digitaloceanspaces.com | |
aws s3 cp data/sources/planet.osm.timestamp s3://osm-tiles/vector/planet.timestamp --endpoint=https://ams3.digitaloceanspaces.com | |
aws s3 cp planet.log s3://osm-tiles/vector/planet.log --endpoint=https://ams3.digitaloceanspaces.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment