[Tilecache] Problem seeding tiles

Hani Hawari hani at mojo17.com
Tue Mar 20 18:40:41 EDT 2007


Hello,

I have set up TileCache 1.4 successfully using Apache 2.2.4 and Python 2.5
on a Windows machine. Openlayers works with TileCache without any
problems. However, I am having troubles running Client.py to seed my
tiles. As per the README, I used the following command while inside the
TileCache directory:

python Client.py "http://192.168.0.3:3030/tc/tilecache.cgi" mylayer 1 3

'mylayer' is defined in tilecache.cfg

the following is the output I get:

###### (2, 1, 1), (2, 1, 1)

01 (000002, 000001) = (0.0000 0.0000 90.0000 90.0000) [0.1410s : 7.087/s] 1/1

###### (2, 1, 1), (4, 2, 2)

02 (000002, 000001) = (-90.0000 -45.0000 -45.0000 0.0000) [0.0000s :
14.174/s] 1/6

02 (000003, 000001) = (-45.0000 -45.0000 0.0000 0.0000) [0.0150s :
19.218/s] 2/6

02 (000004, 000001) = (0.0000 -45.0000 45.0000 0.0000) [0.0000s :
25.625/s] 3/6

02 (000002, 000002) = (-90.0000 0.0000 -45.0000 45.0000) [0.0160s :
29.053/s] 4/6

02 (000003, 000002) = (-45.0000 0.0000 0.0000 45.0000) [0.0000s :
34.863/s] 5/6

02 (000004, 000002) = (0.0000 0.0000 45.0000 45.0000) [0.0150s : 37.413/s]
6/6

The problem is that tiles are not generated in the DiskCache location (or
anywhere else). I also checked my GeoServer log, and I did not see any WMS
requests.

I am a total newbie to python. I managed to set up debugging using pdb,
and i noticed that Client.py is not reading my tilecache.cfg.  When seed()
is called, the params obtained from 'layer' are not correct (I get the
defaults,  not the values I have defined in tilecache.cfg):

def seed (base, layer, levels = (0, 5), bbox = None):

    from Layer import Tile

    params = { 'layers' : layer.layers,

               'srs'    : layer.srs,

               'width'  : layer.size[0],

               'height' : layer.size[1],

               'format' : layer.format() }

I verified this by passing a bogus layer name to Client.py and I still got
the same output as before.

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??

Thanks,
Hani













More information about the Tilecache mailing list