tilecache and tilecache installation on linux (ubuntu)
First tilecache is python library which performs a very specific job – caching WMS requests for use in clients that understand tiles – and does it very well.
Tilecache cache layers to disk so that geoserver doesn't recived too much requests.
You need to now that layers on tilecache must have same definicion as on the your application. That means same resoluction same bounding box, same format.
The best and fastest way to run tilecache is on apache under mod_python:
1 - install apache - apt-get install apache
2 - install mod_python - apt-get install libapache2-mod-python
4 - download tilecache, be careful version 2.11 has bug when calculating bbox, my recomandation is
to use older version -> http://www.mediafire.com/?z310bo25dyq04ap
3 - enable (create link) mod_python
cd /etc/apache2/mods-enabled/
ln -s ../mods-available/mod_python mod_python.load
(in some cases the name is python.load)
4 - add config. on apache
6 - set up configuraction of layers in file tilecache.cfg, configuration of tilecache layers I will write later, until then you can use instruction on this sites
http://tilecache.org/docs/README.html#configuration
7 - restart apache
Tilecache cache layers to disk so that geoserver doesn't recived too much requests.
You need to now that layers on tilecache must have same definicion as on the your application. That means same resoluction same bounding box, same format.
The best and fastest way to run tilecache is on apache under mod_python:
1 - install apache - apt-get install apache
2 - install mod_python - apt-get install libapache2-mod-python
4 - download tilecache, be careful version 2.11 has bug when calculating bbox, my recomandation is
to use older version -> http://www.mediafire.com/?z310bo25dyq04ap
3 - enable (create link) mod_python
cd /etc/apache2/mods-enabled/
ln -s ../mods-available/mod_python mod_python.load
(in some cases the name is python.load)
4 - add config. on apache
# THIS IS FOR TILECACHE UNDER MOD_PYTHON5 - in /var/www unpack tilecache
<Directory /var/www/tc/>
AddHandler mod_python .py
PythonPath "['/var/www/tc/'] + sys.path"
PythonHandler TileCache.Service
PythonOption TileCacheConfig /var/www/tc/tilecache.cfg
</Directory>
6 - set up configuraction of layers in file tilecache.cfg, configuration of tilecache layers I will write later, until then you can use instruction on this sites
http://tilecache.org/docs/README.html#configuration
7 - restart apache
Comments
Post a Comment