mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
Loading...
Searching...
No Matches
store_file.h File Reference
#include "store.h"

Go to the source code of this file.

Functions

struct storage_backend * init_storage_file (const char *tile_dir)
 Allocate and initialize a local filesystem metatile storage_backend.

Function Documentation

◆ init_storage_file()

struct storage_backend * init_storage_file ( const char * tile_dir)

Allocate and initialize a local filesystem metatile storage_backend.

Duplicates tile_dir into store->storage_ctx and wires all backend operation function pointers (tile_read, tile_stat, metatile_write, metatile_delete, metatile_expire, tile_storage_id, and close_storage).

Parameters
tile_dirBase directory path under which <xmlname>/<z>/.../<x>/<y>.meta files are stored.
Returns
Newly allocated struct storage_backend pointer, or NULL on allocation failure.