The auto-config feature for tile-layer.json was probing the ServerName variable. To fix the
segfault, it now uses "localhost" if this variable is NULL. This needs a better fix later.
I have seen several cases recently in which renderd was using a different version of mapnik than the user expected,
as both Mapnik version 0.7 and 2.0 were installed. As style sheets aren't compatible between the versions, this caused problems.
This patch uses the preprocessor directive MAPNIK_VERSION to determine the version. I don't know if it is possible to compile
against one version and then dynamically link against a different version at run-time. But that probably will cause other problems
anyway.
The sscanf expression to parse the URL was too greedy, lumping the /dirty and /status into the file extension,
causing the tile layers being rejected due to a wrong file extension.
In the commit to add support for other file extensions other than png,
AddTileConfig configuration was broken due to a typo.
Bug reported by Sven Geggus and Frederik Ramm
Make it possible to serve tiles other than raster png files,
e.g. jpeg or javascript vector tiles.
This adds a configuration parameter to tile layers specifying the
file extension and mimetype. The default remain image/png.
If you have several styles served from the same mod_tile, it might be desirable to have
different planet-import-complete dates. This can for example be used if the style sheet changes
and a complete re-render is needed.
It first checks the planet-import-complete file in the tile directory of the style and if the file doesn't
exist checks in the root tile directory.
If mod_tile serves many different tile styles, it might be interesting how havily various
layers are used and which layers particularly have many 404 errors due to not rendering fast enough.
-- map: instead of going through all layers defined in your config, only go through a specific one. This can be useful if you have many layers defined
-- replace file based load average detection with the c function. This is portable to solaris
-- be more robust against mod_tile socket closures.