[Tilecache] tilecache_seed issue with 2.04

Josh Livni josh at umbrellaconsulting.com
Mon Jan 26 14:34:23 EST 2009


Is it possible you have another tilecache.cfg somewhere on your system?
 It's possible that tilecache_seed.py might be loading another tilecache on
there, and in turn another tilecache.cfg that does not have your layer
specified in its config..
  -Josh

On Mon, Jan 26, 2009 at 5:51 AM, Alessio Di Lorenzo <
alessio.dilorenzo at gmail.com> wrote:

>
> 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<http://maps.izs.it/cgi-bin/mapserv?MAP=/usr/local/apache2/htdocs/mapfiles/brucellosi_alessio.map&transparent=trueextension=pngbbox=-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892maxResolution=156543.0339srs=EPSG:900913spherical_mercator=truemetaTile=truemetaBuffer=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.
>
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20090126/f06fa981/attachment.html


More information about the Tilecache mailing list