[Tile-serving] mod_tile: setup of zoomlevel range

Frederik Ramm frederik at remote.org
Mon Apr 7 11:00:30 UTC 2014


Hi,

On 04/07/2014 12:19 PM, Sven Geggus wrote:
>> If you use LoadTileConfigFile (and, Sven, not LoadTileConfig which I
>> mistakenly said in a previous private message to you, sorry), then a
>> MAX_ZOOM given in the renderd.conf
>> 
>> https://github.com/openstreetmap/mod_tile/blob/6c2cb243e4c8b047950ab8062cd66245f20a5d2f/src/mod_tile.c#L1892
>> 
>> will be honoured
> 
> Which is at least confusing because I don't even use renderd...

Yes, the mixing up of mod_tile and renderd into one is a bit
non-intuitive for those using Tirex.

Thing is, it is a bit cumbersome to configure all the mod_tile features
via the Apache config. Apache has these TAKE2 and TAKE3 macros that you
can use to process AddTileConfig lines; I believe when Kai introduced
MIME settings he created a new AddTileMimeConfig for that using three
arguments instead of the two we used before.

What we should really do is switch to AP_INIT_RAW_ARGS and then have a
config line that goes

AddTileConfig uri=/tiles path=/my/tiles/somewhere maxzoom=20 minzoom=3
mimetype=sometype cors=whatever

etc., where the key-value arguments are parsed by the function itself
and not by Apache.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"



More information about the Tile-serving mailing list