NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I have set up my map tile server and have used the following components:

  1. Mod_tile
  2. osm2pgsql
  3. postgres
  4. Mapnik
  5. open street map carto

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.

  1. Do I need to mention the db details in some other place as well?
  2. Which of tool fetches the tiles from the postgres db to be displayed?

P.s I've used this link as the setup guide.

asked 27 Feb '19, 05:28

vishy91's gravatar image

vishy91
666611
accept rate: 0%


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:

carto -a 3.0.0 project.yaml > project.xml
permanent link

answered 27 Feb '19, 10:19

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×341
×204
×165
×123
×80

question asked: 27 Feb '19, 05:28

question was seen: 2,749 times

last updated: 27 Feb '19, 10:19

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum