[Tilecache] Problem seeding tiles

Hani Hawari hani at mojo17.com
Wed Mar 21 09:21:00 EDT 2007


Hi,

I've played around with the code and I managed to get Client.py to read
tilecache.cfg. All I did was add the relevant lines from Service.py that
do the job, and it works (as far as I can see).

I am attaching my modifications for anyone interested.

Regards,
Hani



> On Tue, Mar 20, 2007 at 03:40:41PM -0700, Hani Hawari wrote:
>> I feel this behaviour can be solved by some simple tweak to my python
>> environment, but I have no experience at all in python.
>> Any clues to what I should try??
>
> Client.py doesn't read from the TileCache config. The
> layer = Layer(sys.argv[2]) should be changed to read from the TileCache
> config, but it hasn't been yet. It's on the back of my mind to do for
> 1.5, but the code isn't yet written. If you don't know Python, then for
> the moment, you probably can't do anything to help in this regard, other
> than wait or hire someone who is good at Python to modify Client.py for
> you :)
>
> Sorry that this functionality does not yet exist.
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Client2.py
Type: text/x-python
Size: 3656 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/tilecache/attachments/20070321/c05967bb/Client2.py
-------------- next part --------------
4c4
< import sys, urllib, urllib2, time
---
> import sys, urllib, urllib2, time, os
53c53
<     params = { 'layers' : layer.layers,
---
>     params = { 'layers' : sys.argv[2],
85a86
>     from Service import Service
87c88,90
<     layer = Layer(sys.argv[2])
---
>     cfgfiles = ("tilecache.cfg", os.path.join("..", "tilecache.cfg"))
>     svc = Service.load(*cfgfiles)
>     layer = svc.layers[sys.argv[2]]


More information about the Tilecache mailing list