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