mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
Loading...
Searching...
No Matches
render_config.h File Reference
#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.

Macro Definition Documentation

◆ CLIENT_PENALTY

#define CLIENT_PENALTY   (3)

Penalty delay in seconds imposed on clients sending malformed protocol requests.

◆ DIRECTORY_HASH

#define DIRECTORY_HASH

Enable directory-hashed path layout (z/x4/x3/x2/x1/x0.meta) for metatile storage.

◆ DIRTY_LIMIT

#define DIRTY_LIMIT   (8000)

Maximum queue depth for background dirty-tile re-render requests.

◆ FD_INVALID

#define FD_INVALID   (-1)

Sentinel value representing an invalid or closed file/socket descriptor.

◆ MAPNIK_FONTS_DIR

#define MAPNIK_FONTS_DIR   "/usr/local/lib64/mapnik/fonts"

Default directory path searched for Mapnik TrueType/OpenType fonts.

◆ MAPNIK_FONTS_DIR_RECURSE

#define MAPNIK_FONTS_DIR_RECURSE   0

Default flag controlling whether MAPNIK_FONTS_DIR is scanned recursively (1) or top-level only (0).

◆ MAPNIK_PLUGINS_DIR

#define MAPNIK_PLUGINS_DIR   "/usr/local/lib64/mapnik/input"

Default directory path searched for Mapnik input datasource plugins.

◆ MAX

#define MAX ( x,
y )
Value:
((x) > (y) ? (x) : (y))

Return the greater of x and y.

◆ MAX_CONNECTIONS

#define MAX_CONNECTIONS   (2048)

Maximum number of concurrent client socket connections accepted by renderd.

◆ MAX_LOAD_ANY

#define MAX_LOAD_ANY   100

Default 1-minute load average threshold above which all tile requests return HTTP 404.

◆ MAX_LOAD_MISSING

#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.

◆ MAX_LOAD_OLD

#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.

◆ MAX_SIZE

#define MAX_SIZE   (1 * 1024 * 1024)

Maximum single tile payload size in bytes (1 MiB) served to a client.

◆ MAX_ZOOM

#define MAX_ZOOM   20

Maximum supported map zoom level.

◆ METATILE

#define METATILE   (8)

Width and height in tiles of a single rendered metatile (METATILE x METATILE tiles).

Must be a power of 2 (e.g., 2, 4, 8, 16).

◆ MIN

#define MIN ( x,
y )
Value:
((x) < (y) ? (x) : (y))

Return the lesser of x and y.

◆ NUM_THREADS

#define NUM_THREADS   (4)

Default number of worker rendering threads spawned by renderd.

◆ PLANET_INTERVAL

#define PLANET_INTERVAL   (7 * 24 * 60 * 60)

Typical interval in seconds (7 days) between planet database imports, used to estimate tile expiry.

◆ PLANET_TIMESTAMP

#define PLANET_TIMESTAMP   "/planet-import-complete"

Sentinel timestamp file path touched upon completion of a planet import.

◆ QUEUE_MAX

#define QUEUE_MAX   (64)

Default maximum queue depth for interactive render queues.

◆ RENDERD_CONFIG

#define RENDERD_CONFIG   "/etc/renderd.conf"

Default path to the renderd INI configuration file.

◆ RENDERD_PIDFILE

#define RENDERD_PIDFILE   "/run/renderd/renderd.pid"

Default PID file path written by the renderd daemon.

◆ RENDERD_TILE_DIR

#define RENDERD_TILE_DIR   "/var/cache/renderd/tiles"

Default root filesystem directory for cached tile and metatile storage.

◆ REQ_LIMIT

#define REQ_LIMIT   (256)

Maximum queue depth for standard/bulk interactive render requests.

◆ REQUEST_TIMEOUT

#define REQUEST_TIMEOUT   (3)

Default timeout in seconds to wait for renderd to finish rendering a requested tile.

Overridable in Apache configuration via ModTileRequestTimeout.

◆ TILE_PATH

#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.

◆ VERYOLD_THRESHOLD

#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.

◆ XMLCONFIG_DEFAULT

#define XMLCONFIG_DEFAULT   "default"

Fallback map configuration name used when none is explicitly specified.

◆ XMLCONFIGS_MAX

#define XMLCONFIGS_MAX   100

Maximum number of map style configurations supported simultaneously by mod_tile.