diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 16a51e04..11acbaeb 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -2,9 +2,7 @@ - + \ No newline at end of file diff --git a/.tool-versions b/.tool-versions index 72b5342c..f760da29 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -java temurin-19.0.1+10 +java 19 diff --git a/config-cycling.properties b/config-cycling.properties index a3066f72..46f19542 100644 --- a/config-cycling.properties +++ b/config-cycling.properties @@ -2,3 +2,6 @@ mbtiles_name=OpenMapTiles + cycling infra mbtiles_description=A tileset showcasing all layers in OpenMapTiles + cycling infrastructure and POIs languages=en,hu + +# Disable falling back to (expensive) transliteration to get name:latin when only nonlatin names are found: +transliterate=false diff --git a/justfile b/justfile new file mode 100644 index 00000000..dcbb1c52 --- /dev/null +++ b/justfile @@ -0,0 +1,28 @@ +default: + @just --list + +jar_path := "target/*with-deps.jar" + +clean-build-europe: build-planetiler + java -Xmx20g \ + `# return unused heap memory to the OS` \ + -XX:MaxHeapFreeRatio=40 \ + -jar {{jar_path}} --force --download \ + --area=europe \ + --output=data/planetiler-europe-cycling.mbtiles \ + `# Store temporary node locations at fixed positions in a memory-mapped file` \ + --nodemap-type=array --storage=mmap \ + --config=config-cycling.properties + +build AREA: + java -jar {{jar_path}} \ + --area={{AREA}} \ + --output=data/planetiler-{{AREA}}-cycling.mbtiles \ + --nodemap-type=array --storage=mmap \ + --config=config-cycling.properties + +build-planetiler: + ./mvnw -DskipTests=true clean package + +download AREA: + java -jar {{jar_path}} --only-download --area={{AREA}}