[Tilecache] tilecache_seed issue with 2.04

Alessio Di Lorenzo alessio.dilorenzo at gmail.com
Tue Jan 27 11:44:44 EST 2009


Thank you Chris,

On thursday I'll try your suggestion and let you (and the list) know if it
works!

alessio




Christopher Schmidt-2 wrote:
> 
> On Mon, Jan 26, 2009 at 11:34:23AM -0800, Josh Livni wrote:
>> 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
> 
> Nothing nearly so complex. The TileCache seeder in 2.4 still expected a
> 'url' argument that it didn't use. 'python tilecache_seed.py foo
> a_caprini_p' should work.
> 
> Really though, switching to 2.10 and using the newer tilecache_seed
> format probably makes just as much sense.
> 
> -- Chris
> 
>> 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
>> >
> 
>> _______________________________________________
>> Tilecache mailing list
>> Tilecache at openlayers.org
>> http://openlayers.org/mailman/listinfo/tilecache
> 
> 
> -- 
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
> 
> 

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




More information about the Tilecache mailing list