-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Hi,
Thank you so much for all the hard work involved in putting this sample config together. It has been really helpful for me.
I'm running into a small problem and it is most probably due to my misunderstanding of the instructions in the Readme.
It seems to suggest after importing all the data in steps 1 & 2 that there will be 3 databases.
- One for the data imported from the OSM .pbf file (no specific db name specified so I am free to choose?)
- Another for the data imported from natural earth (db name: natural_earth)
- The last one from OSM land. (db name: osm)
Yet the tegola.toml file only asks for the details for the first two databases. Where do I specify the details for number 3?
When I try to run tegola with the tegola.toml file I'm getting the following error:
./tegola serve --config tegola.toml
2020-06-25 20:45:02 [INFO] root.go:61: Loading config file: tegola.toml
2020-06-25 20:45:02 [INFO] config.go:209: loading local config (tegola.toml)
Error: could not register providers: error fetching geometry type for layer (land_8-20): ERROR: relation "land_polygons" does not exist (SQLSTATE 42P01)
I assume this is because I havent configured tegola to use the 3rd DB which has the osm land data.
Or am I misreading the instructions?
The only modifications I made to the tegola.toml file are the following
# OpenStreetMap (OSM)
[[providers]]
name = "osm"
type = "postgis"
host = "localhost"
port = "5432"
database = "open_street_map" #<= name of the db which contains the data from the pbf file in step 1
user = "myuser"
password = "xxxx"
...
...
# Natural Earth
[[providers]]
name = "ne"
type = "postgis"
host = "localhost"
port = "5432"
database = "natural_earth"
user = "myuser"
password = "xxxx"