Skip to content

mod_tile config parsing #27

@pnorman

Description

@pnorman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions