[Tile-serving] [mod_tile] mod_tile config parsing (#27)
pnorman
notifications at github.com
Wed May 22 05:40:53 UTC 2013
Fetching tiles at /buildingclip does not work with this renderd.conf
```
[renderd]
stats_file=/var/run/renderd/renderd.stats
socketname=/var/run/renderd/renderd.sock
num_threads=4
tile_dir=/var/lib/mod_tile
[mapnik]
plugins_dir=/usr/lib/mapnik/input
font_dir=/usr/share/fonts/truetype/
font_dir_recurse=true
[default]
URI=/osm/
XML=/home/ubuntu/mapnik-stylesheets/osm.xml
[carto]
URI=/carto/
XML=/home/ubuntu/openstreetmap-carto/osm-carto.xml
[noamenity]
XML=/home/ubuntu/openstreetmap-carto/noamenity.xml
[nolandcover]
XML=/home/ubuntu/openstreetmap-carto/nolandcover.xml
[roadbbox]
XML=/home/ubuntu/openstreetmap-carto/roadbbox.xml
[z14road]
XML=/home/ubuntu/openstreetmap-carto/z14_road.xml
[buildingclip]
URI=/buildingclip/
XML=/home/ubuntu/openstreetmap-carto/building_clip.xml
```
But it does work with this second renderd.conf
```
[renderd]
stats_file=/var/run/renderd/renderd.stats
socketname=/var/run/renderd/renderd.sock
num_threads=4
tile_dir=/var/lib/mod_tile
[mapnik]
plugins_dir=/usr/lib/mapnik/input
font_dir=/usr/share/fonts/truetype/
font_dir_recurse=true
[default]
URI=/osm/
XML=/home/ubuntu/mapnik-stylesheets/osm.xml
[carto]
URI=/carto/
XML=/home/ubuntu/openstreetmap-carto/osm-carto.xml
[buildingclip]
URI=/buildingclip/
XML=/home/ubuntu/openstreetmap-carto/building_clip.xml
[noamenity]
XML=/home/ubuntu/openstreetmap-carto/noamenity.xml
[nolandcover]
XML=/home/ubuntu/openstreetmap-carto/nolandcover.xml
[roadbbox]
XML=/home/ubuntu/openstreetmap-carto/roadbbox.xml
[z14road]
XML=/home/ubuntu/openstreetmap-carto/z14_road.xml
```
The only difference is that the buildingclip style has been moved up. Perhaps the styles with no URI parameter are screwing up the config parsing?
Both config files result in a line with ``[notice] Loading tile config buildingclip at /buildingclip/ for zooms 0 - 18 from tile directory /var/lib/mod_tile with extension .png and mime type image/png``
Adding ``AddTileConfig /buildingclip/ buildingclip`` to the apache config for the first renderd.conf causes it to work.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/27
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20130521/21387ce4/attachment.html>
More information about the Tile-serving
mailing list