Skip to content

Commit

Permalink
Try to optimize planetiler parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Jul 16, 2024
1 parent e792081 commit 6a6d707
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions renderer/render_once.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ docker system prune --force
# Make sure we have the latest planetiler
docker pull ghcr.io/onthegomap/planetiler:latest

docker run -e JAVA_TOOL_OPTIONS='-Xmx2g' \
docker run -e JAVA_TOOL_OPTIONS='-Xmx48g' \
-v "$WORKING_DIR/data":/data \
-v "$DIR/layers":/layers \
ghcr.io/onthegomap/planetiler:latest --area=planet \
Expand All @@ -36,7 +36,7 @@ rm -rf "$WORKING_DIR/data/sources/monaco.osm.pbf"

PLANET="$WORKING_DIR/data/planet.pmtiles"

docker run -e JAVA_TOOL_OPTIONS='-Xmx150g' \
docker run -e JAVA_TOOL_OPTIONS='-Xmx48g' \
-v "$WORKING_DIR/data":/data \
-v "$DIR/layers":/layers \
ghcr.io/onthegomap/planetiler:latest --area=planet --bounds=world \
Expand Down Expand Up @@ -69,15 +69,15 @@ for file in "$DIR/layers/"*.yml; do

echo "Processing layer: $layer_name"

docker run -e JAVA_TOOL_OPTIONS='-Xmx24g' \
docker run -e JAVA_TOOL_OPTIONS='-Xmx48g' \
-v "$WORKING_DIR/data":/data \
-v "$DIR/layers":/layers \
ghcr.io/onthegomap/planetiler:latest generate-custom \
--area=planet --bounds=world \
--output="/data/$layer_name.pmtiles" \
--force \
--schema="/layers/$layer_name.yml" \
--storage=mmap --nodemap-type=array \
--storage=ram --nodemap-type=array \
--max-point-buffer=4

echo "Uploading $layer_name to s3 bucket in background"
Expand Down

0 comments on commit 6a6d707

Please sign in to comment.