Skip to content

Commit 79aa251

Browse files
Merge pull request switch2osm#173 from switch2osm/SomeoneElseOSM-patch-osm2pgsql-options-style
Add the ".style" to "OSM2PGSQL_OPTIONS" in the "update" document.
2 parents 529f5fb + d469d53 commit 79aa251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

serving-tiles/updating-as-people-edit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ Also in there is:
4040

4141
That will need to be changed to whatever is the non-root username below which the "mod_tile" and "regional" source exists. On Debian 11 it will be different to the account that you are rendering tiles as.
4242

43-
Something else to consider is that you'll probably want to edit the OSM2PGSQL_OPTIONS to refer to the lua tag transform script that you used when loading the database. There may be other parameters that you need to pass here too depending on what you used when creating the database. Change "/path/to/" to the actual path, of course:
43+
Something else to consider is that you'll probably want to edit the OSM2PGSQL_OPTIONS to refer to the lua tag transform script that you used when loading the database, and the ".style" file that determines what columns are created. There may be other parameters that you need to pass here too depending on what you used when creating the database. Change "/path/to/" to the actual path, of course:
4444

45-
OSM2PGSQL_OPTIONS="-d $DBNAME --tag-transform-script /path/to/src/openstreetmap-carto/openstreetmap-carto.lua"
45+
OSM2PGSQL_OPTIONS="-d $DBNAME --tag-transform-script /path/to/src/openstreetmap-carto/openstreetmap-carto.lua -S /path/to/src/openstreetmap-carto/openstreetmap-carto.style"
4646
4747
Next, we'll create the log directory for tile expiry logs, and change the ownership to the username used for rendering tiles (for Debian 11, this will be "_renderd"). The script must also be run as this account, and because this account may be different to where the software is downloaded, we'll pass the complete location of the script - modify "/path/to" to whatever is correct.
4848

0 commit comments

Comments
 (0)