mod_tile
0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
Toggle main menu visibility
Loading...
Searching...
No Matches
render_config.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2007 - 2026 by mod_tile contributors (see AUTHORS file)
3
*
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; If not, see http://www.gnu.org/licenses/.
16
*/
17
18
#ifndef RENDER_CONFIG_H
19
#define RENDER_CONFIG_H
20
21
#include "config.h"
22
24
#define MAX_ZOOM 20
25
27
#define MAX_SIZE (1 * 1024 * 1024)
28
30
#define DIRECTORY_HASH
31
37
#define TILE_PATH "/var/www/html/osm_tiles2"
38
39
#ifndef RENDERD_TILE_DIR
41
#define RENDERD_TILE_DIR "/var/cache/renderd/tiles"
42
#endif
43
49
#define MAX_LOAD_OLD 16
50
56
#define MAX_LOAD_MISSING 50
57
59
#define MAX_LOAD_ANY 100
60
66
#define VERYOLD_THRESHOLD 31536000000000
67
68
#ifndef RENDERD_CONFIG
70
#define RENDERD_CONFIG "/etc/renderd.conf"
71
#endif
72
73
#ifndef XMLCONFIG_DEFAULT
75
#define XMLCONFIG_DEFAULT "default"
76
#endif
77
78
#ifndef XMLCONFIGS_MAX
80
#define XMLCONFIGS_MAX 100
81
#endif
82
83
#ifndef RENDERD_PIDFILE
85
#define RENDERD_PIDFILE "/run/renderd/renderd.pid"
86
#endif
87
88
#ifndef MAPNIK_PLUGINS_DIR
90
#define MAPNIK_PLUGINS_DIR "/usr/local/lib64/mapnik/input"
91
#endif
92
93
#ifndef MAPNIK_FONTS_DIR
95
#define MAPNIK_FONTS_DIR "/usr/local/lib64/mapnik/fonts"
96
#endif
97
98
#ifndef MAPNIK_FONTS_DIR_RECURSE
100
#define MAPNIK_FONTS_DIR_RECURSE 0
101
#endif
102
104
#define PLANET_INTERVAL (7 * 24 * 60 * 60)
105
107
#define PLANET_TIMESTAMP "/planet-import-complete"
108
114
#define REQUEST_TIMEOUT (3)
115
117
#define FD_INVALID (-1)
118
119
#ifndef MIN
121
#define MIN(x, y) ((x) < (y) ? (x) : (y))
122
#endif
123
124
#ifndef MAX
126
#define MAX(x, y) ((x) > (y) ? (x) : (y))
127
#endif
128
130
#define MAX_CONNECTIONS (2048)
131
133
#define NUM_THREADS (4)
134
140
#define METATILE (8)
141
143
#define QUEUE_MAX (64)
144
146
#define REQ_LIMIT (256)
147
149
#define DIRTY_LIMIT (8000)
150
152
#define CLIENT_PENALTY (3)
153
154
#endif
/* RENDER_CONFIG_H */
includes
render_config.h
Generated by
1.18.0