TileStache

  884 downloads
1.49.8 BSD License    
  UNRATED
A stylish alternative for caching your tiles

description

download

specifications

TileStache is a stylish alternative for caching your tiles.

Functions

cgiHandler(environ, config='./tilestache.cfg', debug=False)

Read environment PATH_INFO, load up configuration, talk to stdout by CGI.

handleRequest(layer, coord, extension)

Get a type string and tile binary for a given request layer tile.
 
Arguments:
 - layer: instance of Core.Layer to render.
 - coord: one ModestMaps.Core.Coordinate corresponding to a single tile.
 - extension: filename extension to choose response type, e.g. "png" or "jpg".
 
This is the main entry point, after site configuration has been loaded and individual tiles need to be rendered.

parseConfigfile(configpath)

Parse a configuration file and return a Configuration object.
 
Configuration file is formatted as JSON, and has two sections:
 
 {
 "cache": { ... },
 "layers": {
 "layer-1": { ... },
 "layer-2": { ... },
 ...
 }
 }

 
The full filesystem path to the file is significant, used to resolve any relative paths found in the configuration.
 
See the Caches module for more information on the "caches" section, and the Core and Providers modules for more information on the "layers" section.

Data

 stdout = < open file '< stdout >', mode 'w' at 0xb7e69068 >
read more   
Last updated on September 17th, 2012

0 User reviews so far.

SUBMIT