mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
Loading...
Searching...
No Matches
xmlmapconfig Struct Reference

Per-thread runtime configuration and Mapnik state for a single configured map style. More...

Public Member Functions

 xmlmapconfig ()
 Construct an xmlmapconfig with a default 256x256 Mapnik Map canvas.

Public Attributes

Map map
 Base Mapnik Map instance loaded from the stylesheet XML.
std::map< std::string, mapnik::Map > parameterized_map_cache
 Cache of parameterized Map copies keyed by the options string.
const char * host
 Public HTTP hostname used when constructing HTCP cache expiry URLs.
const char * htcphost
 Hostname or IP address of the HTCP caching proxy to send purge packets to.
const char * output_format
 Image encoding format passed to Mapnik (e.g., "png256", "jpeg", "webp").
const char * xmlfile
 Filesystem path to the Mapnik XML stylesheet.
const char * xmlname
 Logical map style name used in render protocol requests.
const char * xmluri
 Base URI path prefix for the tileset (used for HTCP cache expiry).
double scale
 Mapnik rendering scale factor (e.g., 1.0 for standard DPI, 2.0 for @2x retina tiles).
int htcpsock
 Connected UDP socket descriptor for HTCP cache purges, or -1 if disabled/unconnected.
int maxzoom
 Maximum allowed zoom level for this map style.
int minzoom
 Minimum allowed zoom level for this map style.
int ok
 Initialization status flag: 1 if map and storage backend loaded cleanly, 0 otherwise.
int tilesize
 Width and height of a single output tile in pixels (typically 256 or 512).
parameterize_function_ptr parameterize_function
 Optional style parameterization callback, or NULL if parameterization is disabled.
struct projectionconfig * prj
 Projected coordinate bounds and grid aspect ratios derived from the map's SRS.
struct storage_backend * store
 Storage backend handle used to stat and persist rendered metatiles.

Detailed Description

Per-thread runtime configuration and Mapnik state for a single configured map style.

Constructor & Destructor Documentation

◆ xmlmapconfig()

xmlmapconfig::xmlmapconfig ( )
inline

Construct an xmlmapconfig with a default 256x256 Mapnik Map canvas.

Member Data Documentation

◆ host

const char* xmlmapconfig::host

Public HTTP hostname used when constructing HTCP cache expiry URLs.

◆ htcphost

const char* xmlmapconfig::htcphost

Hostname or IP address of the HTCP caching proxy to send purge packets to.

◆ htcpsock

int xmlmapconfig::htcpsock

Connected UDP socket descriptor for HTCP cache purges, or -1 if disabled/unconnected.

◆ map

Map xmlmapconfig::map

Base Mapnik Map instance loaded from the stylesheet XML.

◆ maxzoom

int xmlmapconfig::maxzoom

Maximum allowed zoom level for this map style.

◆ minzoom

int xmlmapconfig::minzoom

Minimum allowed zoom level for this map style.

◆ ok

int xmlmapconfig::ok

Initialization status flag: 1 if map and storage backend loaded cleanly, 0 otherwise.

◆ output_format

const char* xmlmapconfig::output_format

Image encoding format passed to Mapnik (e.g., "png256", "jpeg", "webp").

◆ parameterize_function

parameterize_function_ptr xmlmapconfig::parameterize_function

Optional style parameterization callback, or NULL if parameterization is disabled.

◆ parameterized_map_cache

std::map<std::string, mapnik::Map> xmlmapconfig::parameterized_map_cache

Cache of parameterized Map copies keyed by the options string.

Avoids recreating PostGIS datasource objects (and their connection pools) on every render, which would accumulate in Mapnik's global ConnectionManager and exhaust memory under sustained load.

◆ prj

struct projectionconfig* xmlmapconfig::prj

Projected coordinate bounds and grid aspect ratios derived from the map's SRS.

◆ scale

double xmlmapconfig::scale

Mapnik rendering scale factor (e.g., 1.0 for standard DPI, 2.0 for @2x retina tiles).

◆ store

struct storage_backend* xmlmapconfig::store

Storage backend handle used to stat and persist rendered metatiles.

◆ tilesize

int xmlmapconfig::tilesize

Width and height of a single output tile in pixels (typically 256 or 512).

◆ xmlfile

const char* xmlmapconfig::xmlfile

Filesystem path to the Mapnik XML stylesheet.

◆ xmlname

const char* xmlmapconfig::xmlname

Logical map style name used in render protocol requests.

◆ xmluri

const char* xmlmapconfig::xmluri

Base URI path prefix for the tileset (used for HTCP cache expiry).


The documentation for this struct was generated from the following file: