Hi, I struggle to set up two different map styles for the mapnik-osm rendering tool chain. According to some help I already found here and on gis.stackexchange, I have set up the renderd.conf for two map styles. But I can't get it to work. When I enter the URL for the second map style ("http://myserverurl/print/0/0/0.png") the browser says "The requested URL was not found on this server." With the default map style it is no problem ("http://myserverurl/osm/0/0/0.png"). I coulnd't find any other setting in the mod_tile or renderd config files to enable the "print" map style to work. What did I oversee or is there anything else I need to do? The renderd.conf looks like this:
asked 19 Mar, 13:39 Anders2 SomeoneElse ♦ |
Firstly, make sure to use a different TILEDIR for each style, or else the tiles will overwrite each other. (Typically you would use something like answered 19 Mar, 13:48 Frederik Ramm ♦ Hi, thanks for the quick reply. Yes I restarted both renderd and apache2. I read that depending on the name ("default" and "print") a seperate directory is created automatically. So far I only see the default directory in /var/lib/mod_tile/ I tried it with two different directories now as you recommended, but nothing changed.
(19 Mar, 14:12)
Anders2
|
Do a
and restart renderd and apache2 again. If that does not help, check the error/info output at It smells like a problem with permissions or missing shapefiles (did you load the shapefiles for the print style as well or referenced the osm-carto ones in the project.mml for the print.xml?) answered 19 Mar, 14:18 Spiekerooger Thanks, that didn't work, but brought me to the solution!
(19 Mar, 14:30)
Anders2
|
So the solution was: In the /var/www/ directory was only an "osm" folder (http://myserverurl/osm/0/0/0.png worked). I created another directory named like the additional mapstyle ("print"). And gave the permission After a restart of Apache it now serves the other map style through http://myserverurl/print/0/0/0.png. answered 20 Mar, 16:37 Anders2 |