This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

osm2pgsql environment variables

0

The information found at https://github.com/Overv/openstreetmap-tile-server would imply that osm2pgsql can make use of various environment variables, like THREADS and OSM2PGSQL_EXTRA_ARGS. However, I am having trouble finding documentation discussing these variables and what others may be available. I am curious, for example, in how THREADS might interact with the --number-processes flag.

Can anyone enlighten me?

asked 06 Nov '19, 18:47

Willie_H's gravatar image

Willie_H
16224
accept rate: 0%


One Answer:

1

The environment variables mentioned on that page are not used by osm2pgsql. They are used by the docker scripts that person wrote.

answered 06 Nov '19, 19:04

pnorman's gravatar image

pnorman
2.4k52140
accept rate: 18%

Source code available on GitHub .