Replies: 2 comments 1 reply
-
You can always use environment variables to pass in global configuration. In Lua read them with |
Beta Was this translation helpful? Give feedback.
1 reply
-
Also have a look at the mechanism described under "Name Handling" on https://osm2pgsql.org/themepark/users-manual.html . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was playing around with themepark for the first time today, specifically with regards to admin boundaries (as you probably saw in my PR) and I was wondering how I might be able to pick out internationalized names (e.g.
name:en
,name:de
,name:fr
) without having to modify the lua code between runs, or write completely new scripts. Is it possible to pass a kind of global param that is accessible by osm2pgsql/themepark? Because then you could have a helper function like (in Python because I don't know Lua off the top of my head):I don't know how you would pass this, I guess it would require a new param on the command line, or maybe it could be done with env vars? But that seems kind of clunky
Beta Was this translation helpful? Give feedback.
All reactions