[Tilecache] tilecache_seed issue with 2.04

Alessio Di Lorenzo alessio.dilorenzo at gmail.com
Mon Jan 26 08:51:33 EST 2009


Hi List,

I'm using TileCache as mod_python. 
It's working properly but and I'm having problems to run the seed python
script to genarate the WMS layers tiles... 

If I type:
[root at donatellov4 tilecache]# python tilecache_seed.py a_caprini_p

I have the following error

Traceback (most recent call last):
  File "tilecache_seed.py", line 9, in ?
    TileCache.Client.main()
  File "/var/www/tilecache/TileCache/Client.py", line 104, in main
    layer = svc.layers[sys.argv[2]]
IndexError: list index out of range

The error remains the same even if I put some optional parameters
(i.e.force, bbox).

This is my apache configuration

Alias /tilecache/ "/var/www/tilecache/"

    <Directory /var/www/tilecache/>
        PythonPath "['/var/www/tilecache/']+sys.path"
        AddHandler python-program .py
        PythonHandler TileCache.Service
        PythonOption TileCacheConfig /var/www/tilecache/tilecache.cfg
        PythonDebug On
    </Directory>

This is an example of layer in my tilecache.cfg

[a_caprini_p]
type=WMS
url=http://maps.izs.it/cgi-bin/mapserv?MAP=/usr/local/apache2/htdocs/mapfiles/brucellosi_alessio.map&transparent=true
extension=png
bbox=-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892
maxResolution=156543.0339
srs=EPSG:900913
spherical_mercator=true
metaTile=true
metaBuffer=80

Do you notice some problem?

thanks in advance, alessio
-- 
View this message in context: http://n2.nabble.com/tilecache_seed-issue-with-2.04-tp2217966p2217966.html
Sent from the TileCache mailing list archive at Nabble.com.




More information about the Tilecache mailing list