planetiler/quickstart.sh

24 wiersze
490 B
Bash
Czysty Zwykły widok Historia

2021-04-06 10:05:08 +00:00
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
2021-04-07 01:14:23 +00:00
JAR="target/flatmap-0.1-SNAPSHOT-jar-with-dependencies.jar"
echo "Downloading data..."
2021-04-06 10:05:08 +00:00
AREA="${1:-north-america_us_massachusetts}"
./scripts/download-osm.sh "${AREA}"
./scripts/download-other-sources.sh
2021-04-07 01:14:23 +00:00
if [ ! -f "$JAR" ]; then
echo "Building..."
mvn -DskipTests=true package
fi
echo "Running..."
java -Dinput="./data/sources/${AREA}.pbf" \
2021-05-13 10:25:06 +00:00
-Dforce=true \
2021-04-07 01:14:23 +00:00
-cp "$JAR" \
2021-04-22 21:19:58 +00:00
com.onthegomap.flatmap.OpenMapTilesMain