Skip to content

Commit

Permalink
Tooling stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ofalvai committed Jul 16, 2023
1 parent e0c319f commit df4af3d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
java temurin-19.0.1+10
java 19
3 changes: 3 additions & 0 deletions config-cycling.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
28 changes: 28 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit df4af3d

Please sign in to comment.