mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 22:12:15 +00:00
rename
This commit is contained in:
11
scripts/tile_gen/gen_monaco.sh
Normal file
11
scripts/tile_gen/gen_monaco.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DATE=$(date +"%Y%m%d_%H%M%S")
|
||||
|
||||
RUN_FOLDER="/data/ofm/runs/monaco_$DATE"
|
||||
|
||||
mkdir -p "$RUN_FOLDER"
|
||||
cd "$RUN_FOLDER" || exit
|
||||
|
||||
bash /data/tile_gen/run_monaco.sh "$DATE"
|
||||
|
||||
22
scripts/tile_gen/planetiler_monaco.sh
Normal file
22
scripts/tile_gen/planetiler_monaco.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# the Xmx value below the most important parameter here
|
||||
# setting is less then 25g means there is too little memory
|
||||
# setting it to too much means there is too much memory used
|
||||
|
||||
java -Xmx1g \
|
||||
-jar /data/ofm/tile_gen/planetiler.jar \
|
||||
`# Download the latest planet.osm.pbf from s3://osm-pds bucket` \
|
||||
--area=monaco --download \
|
||||
`# Accelerate the download by fetching the 10 1GB chunks at a time in parallel` \
|
||||
--download-threads=10 --download-chunk-size-mb=1000 \
|
||||
`# Also download name translations from wikidata` \
|
||||
--fetch-wikidata \
|
||||
--output=output.mbtiles \
|
||||
`# Store temporary node locations at fixed positions in a memory-mapped file` \
|
||||
--nodemap-type=array --storage=mmap \
|
||||
--force \
|
||||
> "output.log" 2> "err.log"
|
||||
|
||||
|
||||
|
||||
22
scripts/tile_gen/planetiler_planet.sh
Normal file
22
scripts/tile_gen/planetiler_planet.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# the Xmx value below the most important parameter here
|
||||
# setting is less then 25g means there is too little memory
|
||||
# setting it to too much means there is too much memory used
|
||||
|
||||
java -Xmx30g \
|
||||
-jar /data/ofm/tile_gen/planetiler.jar \
|
||||
`# Download the latest planet.osm.pbf from s3://osm-pds bucket` \
|
||||
--area=planet --bounds=planet --download \
|
||||
`# Accelerate the download by fetching the 10 1GB chunks at a time in parallel` \
|
||||
--download-threads=10 --download-chunk-size-mb=1000 \
|
||||
`# Also download name translations from wikidata` \
|
||||
--fetch-wikidata \
|
||||
--output=output.mbtiles \
|
||||
`# Store temporary node locations at fixed positions in a memory-mapped file` \
|
||||
--nodemap-type=array --storage=mmap \
|
||||
--force \
|
||||
> "output.log" 2> "err.log"
|
||||
|
||||
|
||||
|
||||
17
scripts/tile_gen/prepare-virtualenv.sh
Executable file
17
scripts/tile_gen/prepare-virtualenv.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
find . -name "*.egg-info" -exec rm -rf {} +
|
||||
find . -name __pycache__ -exec rm -rf {} +
|
||||
|
||||
# deactivate
|
||||
rm -rf venv
|
||||
python3 -m venv venv
|
||||
|
||||
venv/bin/pip -V
|
||||
|
||||
venv/bin/pip install -U pip wheel setuptools
|
||||
venv/bin/pip install git+https://github.com/mapbox/mbutil.git@544c76e
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user