kopia lustrzana https://github.com/onthegomap/planetiler
run script
rodzic
d36af29708
commit
dbbb52f317
22
pom.xml
22
pom.xml
|
@ -144,6 +144,28 @@
|
|||
<artifactId>maven-failsafe-plugin</artifactId>
|
||||
<version>2.22.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>3.3.0</version>
|
||||
|
||||
<configuration>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||
</descriptorRefs>
|
||||
</configuration>
|
||||
|
||||
<executions>
|
||||
<execution>
|
||||
<id>make-assembly</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
|
|
@ -4,6 +4,19 @@ set -o errexit
|
|||
set -o pipefail
|
||||
set -o nounset
|
||||
|
||||
JAR="target/flatmap-0.1-SNAPSHOT-jar-with-dependencies.jar"
|
||||
|
||||
echo "Downloading data..."
|
||||
AREA="${1:-north-america_us_massachusetts}"
|
||||
./scripts/download-osm.sh "${AREA}"
|
||||
./scripts/download-other-sources.sh
|
||||
|
||||
if [ ! -f "$JAR" ]; then
|
||||
echo "Building..."
|
||||
mvn -DskipTests=true package
|
||||
fi
|
||||
|
||||
echo "Running..."
|
||||
java -Dinput="./data/sources/${AREA}.pbf" \
|
||||
-cp "$JAR" \
|
||||
com.onthegomap.flatmap.profiles.OpenMapTilesProfile
|
||||
|
|
|
@ -15,8 +15,9 @@ mkdir -p data/sources
|
|||
|
||||
LINK=$(echo "${1}" | tr '_' '/')
|
||||
LINK="http://download.geofabrik.de/$LINK-latest.osm.pbf"
|
||||
OUT="${1}.pbf"
|
||||
|
||||
(
|
||||
cd data/sources
|
||||
wget -N "${LINK}"
|
||||
if [ ! -f "$OUT" ]; then wget -O "$OUT" "$LINK"; fi
|
||||
)
|
||||
|
|
|
@ -9,6 +9,6 @@ cd "$(git rev-parse --show-cdup)"
|
|||
mkdir -p data/sources
|
||||
cd data/sources
|
||||
|
||||
wget -N https://naciscdn.org/naturalearth/packages/natural_earth_vector.sqlite.zip
|
||||
wget -N https://osmdata.openstreetmap.de/download/water-polygons-split-3857.zip
|
||||
wget -N https://github.com/lukasmartinelli/osm-lakelines/releases/download/v0.9/lake_centerline.shp.zip
|
||||
wget -nc https://naciscdn.org/naturalearth/packages/natural_earth_vector.sqlite.zip
|
||||
wget -nc https://osmdata.openstreetmap.de/download/water-polygons-split-3857.zip
|
||||
wget -nc https://github.com/lukasmartinelli/osm-lakelines/releases/download/v0.9/lake_centerline.shp.zip
|
||||
|
|
Ładowanie…
Reference in New Issue