|
mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
|
#include "config.h"Go to the source code of this file.
Macros | |
| #define | MAX_ZOOM 20 |
| Maximum supported map zoom level. | |
| #define | MAX_SIZE (1 * 1024 * 1024) |
| Maximum single tile payload size in bytes (1 MiB) served to a client. | |
| #define | DIRECTORY_HASH |
| Enable directory-hashed path layout (z/x4/x3/x2/x1/x0.meta) for metatile storage. | |
| #define | TILE_PATH "/var/www/html/osm_tiles2" |
| Legacy flat filesystem root where OpenLayers fetches z/x/y.png tiles directly. | |
| #define | RENDERD_TILE_DIR "/var/cache/renderd/tiles" |
| Default root filesystem directory for cached tile and metatile storage. | |
| #define | MAX_LOAD_OLD 16 |
| Default 1-minute load average threshold above which expired tiles are served stale without re-rendering. | |
| #define | MAX_LOAD_MISSING 50 |
| Default 1-minute load average threshold above which missing tiles return HTTP 404 instead of rendering. | |
| #define | MAX_LOAD_ANY 100 |
| Default 1-minute load average threshold above which all tile requests return HTTP 404. | |
| #define | VERYOLD_THRESHOLD 31536000000000 |
| Age threshold in microseconds (365 days) beyond which an expired tile is promoted from low to normal render priority. | |
| #define | RENDERD_CONFIG "/etc/renderd.conf" |
| Default path to the renderd INI configuration file. | |
| #define | XMLCONFIG_DEFAULT "default" |
| Fallback map configuration name used when none is explicitly specified. | |
| #define | XMLCONFIGS_MAX 100 |
| Maximum number of map style configurations supported simultaneously by mod_tile. | |
| #define | RENDERD_PIDFILE "/run/renderd/renderd.pid" |
| Default PID file path written by the renderd daemon. | |
| #define | MAPNIK_PLUGINS_DIR "/usr/local/lib64/mapnik/input" |
| Default directory path searched for Mapnik input datasource plugins. | |
| #define | MAPNIK_FONTS_DIR "/usr/local/lib64/mapnik/fonts" |
| Default directory path searched for Mapnik TrueType/OpenType fonts. | |
| #define | MAPNIK_FONTS_DIR_RECURSE 0 |
| Default flag controlling whether MAPNIK_FONTS_DIR is scanned recursively (1) or top-level only (0). | |
| #define | PLANET_INTERVAL (7 * 24 * 60 * 60) |
| Typical interval in seconds (7 days) between planet database imports, used to estimate tile expiry. | |
| #define | PLANET_TIMESTAMP "/planet-import-complete" |
| Sentinel timestamp file path touched upon completion of a planet import. | |
| #define | REQUEST_TIMEOUT (3) |
| Default timeout in seconds to wait for renderd to finish rendering a requested tile. | |
| #define | FD_INVALID (-1) |
| Sentinel value representing an invalid or closed file/socket descriptor. | |
| #define | MIN(x, y) |
| Return the lesser of x and y. | |
| #define | MAX(x, y) |
| Return the greater of x and y. | |
| #define | MAX_CONNECTIONS (2048) |
| Maximum number of concurrent client socket connections accepted by renderd. | |
| #define | NUM_THREADS (4) |
| Default number of worker rendering threads spawned by renderd. | |
| #define | METATILE (8) |
| Width and height in tiles of a single rendered metatile (METATILE x METATILE tiles). | |
| #define | QUEUE_MAX (64) |
| Default maximum queue depth for interactive render queues. | |
| #define | REQ_LIMIT (256) |
| Maximum queue depth for standard/bulk interactive render requests. | |
| #define | DIRTY_LIMIT (8000) |
| Maximum queue depth for background dirty-tile re-render requests. | |
| #define | CLIENT_PENALTY (3) |
| Penalty delay in seconds imposed on clients sending malformed protocol requests. | |
| #define CLIENT_PENALTY (3) |
Penalty delay in seconds imposed on clients sending malformed protocol requests.
| #define DIRECTORY_HASH |
Enable directory-hashed path layout (z/x4/x3/x2/x1/x0.meta) for metatile storage.
| #define DIRTY_LIMIT (8000) |
Maximum queue depth for background dirty-tile re-render requests.
| #define FD_INVALID (-1) |
Sentinel value representing an invalid or closed file/socket descriptor.
| #define MAPNIK_FONTS_DIR "/usr/local/lib64/mapnik/fonts" |
Default directory path searched for Mapnik TrueType/OpenType fonts.
| #define MAPNIK_FONTS_DIR_RECURSE 0 |
Default flag controlling whether MAPNIK_FONTS_DIR is scanned recursively (1) or top-level only (0).
| #define MAPNIK_PLUGINS_DIR "/usr/local/lib64/mapnik/input" |
Default directory path searched for Mapnik input datasource plugins.
| #define MAX | ( | x, | |
| y ) |
Return the greater of x and y.
| #define MAX_CONNECTIONS (2048) |
Maximum number of concurrent client socket connections accepted by renderd.
| #define MAX_LOAD_ANY 100 |
Default 1-minute load average threshold above which all tile requests return HTTP 404.
| #define MAX_LOAD_MISSING 50 |
Default 1-minute load average threshold above which missing tiles return HTTP 404 instead of rendering.
Overridable in Apache configuration via ModTileMaxLoadMissing.
| #define MAX_LOAD_OLD 16 |
Default 1-minute load average threshold above which expired tiles are served stale without re-rendering.
Overridable in Apache configuration via ModTileMaxLoadOld.
| #define MAX_SIZE (1 * 1024 * 1024) |
Maximum single tile payload size in bytes (1 MiB) served to a client.
| #define MAX_ZOOM 20 |
Maximum supported map zoom level.
| #define METATILE (8) |
| #define MIN | ( | x, | |
| y ) |
Return the lesser of x and y.
| #define NUM_THREADS (4) |
Default number of worker rendering threads spawned by renderd.
| #define PLANET_INTERVAL (7 * 24 * 60 * 60) |
Typical interval in seconds (7 days) between planet database imports, used to estimate tile expiry.
| #define PLANET_TIMESTAMP "/planet-import-complete" |
Sentinel timestamp file path touched upon completion of a planet import.
| #define QUEUE_MAX (64) |
Default maximum queue depth for interactive render queues.
| #define RENDERD_CONFIG "/etc/renderd.conf" |
Default path to the renderd INI configuration file.
| #define RENDERD_PIDFILE "/run/renderd/renderd.pid" |
Default PID file path written by the renderd daemon.
| #define RENDERD_TILE_DIR "/var/cache/renderd/tiles" |
Default root filesystem directory for cached tile and metatile storage.
| #define REQ_LIMIT (256) |
Maximum queue depth for standard/bulk interactive render requests.
| #define REQUEST_TIMEOUT (3) |
Default timeout in seconds to wait for renderd to finish rendering a requested tile.
Overridable in Apache configuration via ModTileRequestTimeout.
| #define TILE_PATH "/var/www/html/osm_tiles2" |
Legacy flat filesystem root where OpenLayers fetches z/x/y.png tiles directly.
Used only when DIRECTORY_HASH is undefined.
| #define VERYOLD_THRESHOLD 31536000000000 |
Age threshold in microseconds (365 days) beyond which an expired tile is promoted from low to normal render priority.
Computed as 1000000 * 3600 * 24 * 365 = 31536000000000.
| #define XMLCONFIG_DEFAULT "default" |
Fallback map configuration name used when none is explicitly specified.
| #define XMLCONFIGS_MAX 100 |
Maximum number of map style configurations supported simultaneously by mod_tile.