This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Mapnik doesn’t seems to render all tiles.

0

Hello!

First, excuse my (very) bad English ... I’m here to gather some help about map rendering :p

I'm currently trying to make a local tile server with Graphhopper ( router ), and Leaflet.JS ( for interactive maps ). I download the OSM file for the Alsace country ( in France ).

Imported the OSM to a PostGre Database with osm2pgsql, then rendering tiles with mapnik ( zoomlevel 0 to 16 ). Everything worked fines, but ... Mapnik doesn't seems to render all tiles, some parts, but not all.

Here is a sample capture to demonstrate : http://i.imgur.com/wD8q4wM.png ( the grey part are the missing tiles ) We can easily find what tiles/coordinates are missing with HTTP sniffing ( for example with the Firefox Dev tools ).

Should I generate tiles with Mapnik and OSM file directly ?

Thank you in advance! :)

asked 19 Nov '14, 02:46

FoxyAntho's gravatar image

FoxyAntho
1111
accept rate: 0%


One Answer:

0

My first idea is a time-out from your tile server, not a problem in mapnik itself. The time to render a tile varies a lot. We should analyze your config and the logs of the software calling mapnik to see why some tiles are absent (renderd ?). I know there is a timeout configurable and you can also set the quadtile size. This all depends on your machine perfs.
Tu peux aussi contacter la liste de diffusion dev-fr@openstreetmap.org pour parler avec d'autres devs fr qui ont le même type d'expérience que toi (inscription nécessaire) ou le forum fr.

answered 19 Nov '14, 09:27

Pieren's gravatar image

Pieren
9.8k2083157
accept rate: 15%

Thanks for your reply :)

I'm not using Renderd but Manpnik to generate tiles files.

Why I know they are a missing : I look-up at Apache logs --> 404 ( not found error ).

(19 Nov '14, 13:24) FoxyAntho

mapnik is generating tiles but apache is not calling mapnik directly. You need a plugin in apache that is checking if tiles have to be (re)rendered and sends a render request to a "mapnik rendering job manager", either done by tirex or renderd deamons. These deamons can drop a render request if it takes too long to serve the tile to the web client. But timeout is configurable. Again, contact the dev or dev-fr mailing lists to get more info. This help site is more for newcomers, not devs.

(19 Nov '14, 13:53) Pieren

Source code available on GitHub .