I've been following the instructions at Manually building a tile server (18.04 LTS) but am stuck on the following step: The following command will insert the OpenStreetMap data you downloaded earlier into the database. This step is very disk I/O intensive; importing the full planet might take many hours, days or weeks depending on the hardware. For smaller extracts the import time is much faster accordingly, and you may need to experiment with different -C values to fit within your machine’s available memory.
However when I run it, I keep getting the following error:
I've gone through to ensure I've followed all the steps. I've also tried adding -U renderaccount -W options to set it run as the renderaccount, not the localuser account, but still no improvement. asked 27 Apr '19, 10:30 breno-au |
Looks like you are running it from a unix account localuser. You need to replace "renderaccount" with the account your mod_tile/renderd will run under (not necessarily your regular logon). See this bit on switch2osm: Now you need to create a postgis database. The defaults of various programs assume the database is called gis and we will use the same convention in this tutorial, although this is not necessary. Substitute your username for renderaccount where is is used below. This should be the username that will render maps with Mapnik. sudo -u postgres -i createuser renderaccount # answer yes for superuser (although this isn't strictly necessary) createdb -E UTF8 -O renderaccount gis answered 27 Apr '19, 10:37 SK53 ♦ While mostly a description of how to solve a different problem, https://www.openstreetmap.org/user/SomeoneElse/diary/47027 does describe what you need to have different map layers (or just one map layer) rendering from different databases not called "gis".
(16 May '19, 12:10)
SomeoneElse ♦
|
Thank you.