papyrus_tilecache

Provides an easy and convenient method for embeding TileCache in Pyramid applications
Download

papyrus_tilecache Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Publisher Name:
  • Eric Lemoine

papyrus_tilecache Tags


papyrus_tilecache Description

Provides an easy and convenient method for embeding TileCache in Pyramid applications papyrus_tilecache is a module that provides an easy and convenient method for embedding TileCache in Pyramid applications.Installation:papyrus_tilecache can be installed with easy_install:easy_install papyrus_tilecacheOften you'll want to make papyrus_tilecache a dependency of your Pyramid application, which is done by adding papyrus_tilecache to the install_requires list defined in the Pyramid application's setup.py file.Embed TileCacheEmbeding TileCache in a Pyramid application is easy.Edit the application's development.ini file and, in the main section (), set tilecache.cfg to the location of the TileCache config file. Example:use = egg:MyApp...tilecache.cfg = %(here)s/tilecache.cfgIn this example the TileCache config file is located at the same location as the development.ini file.You can use the following TileCache config as an example:type=Diskbase=/tmp/tilecachetype=WMSurl=http://vmap0.tiles.osgeo.org/wms/vmap0extension=pngNow, edit the application's main file, __init__.py, and register papyrus_tilecache using the Configurator.include method:def main(global_config, **settings): config = Configurator(settings=settings) import papyrus_tilecache config.include(papyrus_tilecache)That's it! The Pyramid application now exposes a TileCache service at /tilecache. Requirements: · Python


papyrus_tilecache Related Software