TileStache.Goodies.AreaServer module¶
AreaServer supplies a tiny image server for use with TileStache providers that implement renderArea() (http://tilestache.org/doc/#custom-providers). The built-in Mapnik provider (http://tilestache.org/doc/#mapnik-provider) is one example.
There are no tiles here, just a quick & dirty way of getting variously-sized images out of a codebase that’s ordinarily oriented toward tile generation.
Example usage, with gunicorn (http://gunicorn.org):
gunicorn –bind localhost:8888 “TileStache.Goodies.AreaServer:WSGIServer(‘tilestache.cfg’)”
AreaServer URLs are compatible with the built-in URL Template provider (http://tilestache.org/doc/#url-template-provider) and implement a generic kind of WMS (http://en.wikipedia.org/wiki/Web_Map_Service).
All six URL parameters shown in this example are required; any other URL parameter is ignored:
-
class
TileStache.Goodies.AreaServer.WSGIServer(config, autoreload=False)¶ Bases:
TileStache.WSGITileServerWSGI Application that can handle WMS-style requests for static images.
Inherits the constructor from TileStache WSGI, which just loads a TileStache configuration file into self.config.
WSGITileServer autoreload argument is ignored, though. For now.