[Tilecache] IndexError: list index out of range

Blake Crosby me at blakecrosby.com
Thu Sep 17 11:58:57 EDT 2009


Hello,

I'm getting the following error when trying to use tilecache_seed.py:

Traceback (most recent call last):
   File "./tilecache_seed.py", line 9, in <module>
     TileCache.Client.main()
   File "/backup/flightplan/tilecache-2.10/TileCache/Client.py", line 
168, in main
     seed(svc, layer, (5, 17), bbox , force = options.force )
   File "/backup/flightplan/tilecache-2.10/TileCache/Client.py", line 
89, in seed
     bottomleft = layer.getClosestCell(z, bbox[0:2])
   File "/backup/flightplan/tilecache-2.10/TileCache/Layer.py", line 
299, in getClosestCell
     res = self.resolutions[z]
IndexError: list index out of range


I'm using tilecache_seed.py by specifying a layer name, and then 
providing a list of points and radii.

This was working fine until I specified a levels=10 in my layer 
definition in tilecache.cfg. Then the above error appeared.

Here is what my tilecache.cfg looks like:

[airspace]
type=Mapnik
levels=10
mapfile=/backup/flightplan/mapnik/airspace_layer.xml
metaTile=true
bbox=-17043622,4833266,-2445984,12592146
spherical_mercator=true

Thanks for any help you can provide!



More information about the Tilecache mailing list