mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
Loading...
Searching...
No Matches
store_ro_composite.h File Reference
#include "config.h"
#include <cairo/cairo.h>
#include "protocol.h"
#include "store.h"

Go to the source code of this file.

Classes

struct  store_ro_composite_tile_cache
 Single-tile cache holding the most recently composited PNG tile and its metadata. More...
struct  ro_composite_ctx
 Per-backend state for the read-only composite storage engine. More...
struct  png_stream_to_byte_array_closure_t
 Closure state passed to Cairo's cairo_surface_write_to_png_stream() callback. More...

Functions

struct storage_backend * init_storage_ro_composite (const char *connection_string)
 Allocate and initialize a read-only Cairo compositing storage_backend.

Function Documentation

◆ init_storage_ro_composite()

struct storage_backend * init_storage_ro_composite ( const char * connection_string)

Allocate and initialize a read-only Cairo compositing storage_backend.

Parses connection_string of the form: "composite:{<xmlconfig_primary>,<backend_opts_primary>}{<xmlconfig_secondary>,<backend_opts_secondary>}", initializes both child storage backends via init_storage_backend(), sets the default render_size to 256, and wires all backend operation function pointers. Returns NULL if compiled without HAVE_CAIRO or if parsing/initialization fails.

Parameters
connection_stringConfiguration URI beginning with "composite:{".
Returns
Newly allocated struct storage_backend pointer, or NULL on failure or if unsupported.