I have set up my map tile server and have used the following components:
In my configuration, postgres is on a different server. when I access the /osm_tiles/0/0/0.png, I get a blank square. I think the data is not being fetched from postgres database. How do I tell my server that the postgres db is on another server? I have mentioned the configuration in the osm2pgsql/project.yaml file.
P.s I've used this link as the setup guide. asked 27 Feb '19, 05:28 vishy91 |
project.yaml (in the openstreetmap-carto directory, not in the osm2pgsql directory) is the source of the style description and contains database access information, but when you run renderd it will actually access project.xml (cf. your renderd.conf which will likely point to that). Your project.xml will still contain the old database parameters. To re-generate project.xml, you have to do this:
answered 27 Feb '19, 10:19 Frederik Ramm ♦ |
crosspost: https://gis.stackexchange.com/questions/313715/build-tile-server-manually-with-postgres-db-on-a-different-server