|
mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
|
#include <climits>#include <cmath>#include <cstdio>#include <cstring>#include <getopt.h>#include <glib.h>#include <sys/stat.h>#include <sys/time.h>#include <unistd.h>#include "config.h"#include "g_logger.h"#include "protocol.h"#include "render_config.h"#include "render_submit_queue.h"#include "renderd_config.h"Classes | |
| class | GoogleProjection |
| Web Mercator (EPSG:3857 / Slippy Map) coordinate converter between WGS84 lat/lon and zoom-level pixels. More... | |
Macros | |
| #define | DEG_TO_RAD (M_PI / 180) |
| Conversion factor from degrees to radians ( \(\pi / 180\)). | |
| #define | RAD_TO_DEG (180 / M_PI) |
| Conversion factor from radians to degrees ( \(180 / \pi\)). | |
Functions | |
| static double | minmax (double a, double b, double c) |
| Clamp a double-precision value a to the closed interval [b, c]. | |
| int | main (int argc, char **argv) |
| Entry point for the render_speedtest rendering throughput benchmark utility. | |
Variables | |
| static double | boundx0 = -0.5 |
| Western longitude bound (degrees) of the Greater London benchmark bounding box. | |
| static double | boundy0 = 51.25 |
| Southern latitude bound (degrees) of the Greater London benchmark bounding box. | |
| static double | boundx1 = 0.5 |
| Eastern longitude bound (degrees) of the Greater London benchmark bounding box. | |
| static double | boundy1 = 51.75 |
| Northern latitude bound (degrees) of the Greater London benchmark bounding box. | |
| #define DEG_TO_RAD (M_PI / 180) |
Conversion factor from degrees to radians ( \(\pi / 180\)).
| #define RAD_TO_DEG (180 / M_PI) |
Conversion factor from radians to degrees ( \(180 / \pi\)).
| int main | ( | int | argc, |
| char ** | argv ) |
Entry point for the render_speedtest rendering throughput benchmark utility.
Parses command-line options (-c/--config, -m/--map, -Z/--max-zoom, -z/--min-zoom, -n/--num-threads, -s/--socket, -h/--help, -V/--version), optionally loads defaults from a renderd INI config file, warms up renderd with tile 0/0/0, and enqueues all tiles within [boundx0, boundy0, boundx1, boundy1] across min_zoom..max_zoom while measuring and logging per-zoom and aggregate rendering throughput.
| argc | Command-line argument count. |
| argv | Command-line argument vector. |
|
static |
Clamp a double-precision value a to the closed interval [b, c].
| a | Input value to clamp. |
| b | Lower bound. |
| c | Upper bound. |
|
static |
Western longitude bound (degrees) of the Greater London benchmark bounding box.
|
static |
Eastern longitude bound (degrees) of the Greater London benchmark bounding box.
|
static |
Southern latitude bound (degrees) of the Greater London benchmark bounding box.
|
static |
Northern latitude bound (degrees) of the Greater London benchmark bounding box.