source: subversion/applications/utils/mod_tile/render_config.h @ 8647

Last change on this file since 8647 was 8427, checked in by jonb, 11 years ago

mod_tile: fix typo

File size: 2.2 KB
Line 
1#ifndef RENDER_CONFIG_H
2#define RENDER_CONFIG_H
3
4#define MAX_ZOOM 18
5// MAX_SIZE is the biggest file which we will return to the user
6#define MAX_SIZE (1 * 1024 * 1024)
7// IMG_PATH must have blank.png etc.
8#define WWW_ROOT "/home/www/tile"
9#define IMG_PATH "/images"
10// TILE_PATH is where Openlayers with try to fetch the "z/x/y.png" tiles from
11#define TILE_PATH "/osm_tiles2"
12// With directory hashing enabled we rewrite the path so that tiles are really stored here instead
13#define DIRECTORY_HASH
14#define HASH_PATH "/direct"
15// MAX_LOAD_OLD: if tile is out of date, don't re-render it if past this load threshold (users gets old tile)
16#define MAX_LOAD_OLD 5
17// MAX_LOAD_OLD: if tile is missing, don't render it if past this load threshold (user gets 404 error)
18#define MAX_LOAD_MISSING 10
19// MAX_LOAD_ANY: give up serving any data if beyond this load (user gets 404 error)
20#define MAX_LOAD_ANY 100
21
22// Location of osm.xml file
23#define OSM_XML "/home/jburgess/osm/svn.openstreetmap.org/applications/rendering/mapnik/osm.xml"
24
25// Mapnik input plugins (will need to adjust for 32 bit libs)
26#define MAPNIK_PLUGINS "/usr/local/lib64/mapnik/input"
27
28// Directory to search for fonts. Recursion can be enabled if desired.
29#define FONT_DIR "/usr/local/lib64/mapnik/fonts"
30#define FONT_RECURSE 0
31
32// Typical interval between planet imports, used as basis for tile expiry times
33#define PLANET_INTERVAL (7 * 24 * 60 * 60)
34
35// Planet import should touch this file when complete
36#define PLANET_TIMESTAMP "/tmp/planet-import-complete"
37
38// Timeout before giving for a tile to be rendered
39#define REQUEST_TIMEOUT (3)
40#define FD_INVALID (-1)
41
42
43#define MIN(x,y) ((x)<(y)?(x):(y))
44#define MAX(x,y) ((x)>(y)?(x):(y))
45
46#define MAX_CONNECTIONS (2048)
47#define NUM_THREADS (4)
48
49// Use this to enable meta-tiles which will render NxN tiles at once
50// Note: This should be a power of 2 (2, 4, 8, 16 ...)
51#define METATILE (8)
52//#undef METATILE
53
54// Metatiles are much larger in size so we don't need big queues to handle large areas
55#ifdef METATILE
56#define QUEUE_MAX (64)
57#define REQ_LIMIT (32)
58#define DIRTY_LIMIT (1000)
59#else
60#define QUEUE_MAX (1024)
61#define REQ_LIMIT (512)
62#define DIRTY_LIMIT (10000)
63#endif
64
65// Penalty for client making an invalid request (in seconds)
66#define CLIENT_PENALTY (3)
67
68#endif
Note: See TracBrowser for help on using the repository browser.