TileStacheA stylish alternative for caching your tiles | |
Download |
TileStache Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Michal Migurski
- Publisher web site:
- http://modestmaps.com
TileStache Tags
TileStache Description
A stylish alternative for caching your tiles TileStache is a stylish alternative for caching your tiles.FunctionscgiHandler(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 > Requirements: · ModestMaps · Python
TileStache Related Software