Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to run planetiler with a yaml file as config #1521

Unanswered
stoffy28 asked this question in Q&A
Discussion options

there are here https://github.com/onthegomap/planetiler/tree/main/planetiler-custommap/src/main/resources/samples some yaml samples.
But what planetiler command line do you run ?
Something like ?
java -jar planetiler.jar -input poland.pbf -config highway_areas.yaml ????

or something else ?

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

But what planetiler command line do you run?

I currently run this, but asking for which options one uses is fairly dependent on the environment and constraints.
They are config options for a reason..

docker run --rm --user=1001 -d --memory="50G" --memory-swap="50G" --cpu-shares 512 --pull always -e JAVA_TOOL_OPTIONS="-Xmx25g" -v /home/frank/map:/data -v /home/frank/dev/NavigaTUM/map/planetiler:/conf ghcr.io/onthegomap/planetiler:latest ../conf/shortbread_custom.yml --download --download-threads=10 --download-chunk-size-mb=1000 --free_natural_earth_after_read=true --free_water_polygons_after_read=true --free_lake_centerlines_after_read=true --fetch-wikidata --languages=de,en --Xmx25g --nodemap-type=array --storage=mmap --area=planet --bound=planet --force=true
You must be logged in to vote
1 reply
Comment options

Yep! You can run the generate-custom task (java -jar planetiler.jar generate-custom) then include --schema=highway_areas.yaml argument somewhere in the list, or as a shortcut you can use the schema name as the task like java -jar planetiler.jar highway_areas.yaml --other-args...

Comment options

oh yes now it works, but what I don't understand :

  • in output of java -jar planetiler.jar --help, I don't see --schema option ! Is it documented somewhere please ?
  • does "generate-custom" you mentionned be an option as well ?
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /