TileStache 1.49.8

A stylish alternative for caching your tiles
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 >

last updated on:
September 17th, 2012, 21:59 GMT
price:
FREE!
developed by:
Michal Migurski
license type:
BSD License 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT