List index out of range

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

List index out of range

Riffraff

Hello list, 

 

Anyone of you had a situation when tilecache would not seed tiles above certain level?

 

I have made many levels of tiles that I needed of raster data files but tilecache got stuck on level 20 and it would not go any further. 

 

When executing the command:

 

C:\Documents and Settings\rstaniukiewicz\Pulpit>python C:\ms4w\Apache\htdocs\tilecache-2.11\tilecache_seed.py mz_tiles 20 21 -b 1790617,6650511,1807280,6664575 -f

 

... i get this: 

 

Traceback (most recent call last):

  File "C:\ms4w\Apache\htdocs\tilecache-2.11\tilecache_seed.py", line 9, in ?

    TileCache.Client.main()

  File "C:\ms4w\Apache\htdocs\tilecache-2.11\TileCache\Client.py", line 175, in

main

    seed(svc, layer, map(int, args[1:3]), bboxlist , padding=options.padding, fo

rce = options.force, reverse = options.reverse, delay=options.delay)

  File "C:\ms4w\Apache\htdocs\tilecache-2.11\TileCache\Client.py", line 90, in seed

    bottomleft = layer.getClosestCell(z, bbox[0:2])

  File "C:\ms4w\Apache\htdocs\tilecache-2.11\TileCache\Layer.py", line 301, in getClosestCell

    res = self.resolutions[z]

IndexError: list index out of range

 

I have tried replicating the environment on a second PC and it's the same. 

 

Strange thing is that the tiles for any level including 20 and above are generated from the mapserver WMS in an OpenLayers application.

 

If someone’s got any clue please help.

 

Kind regards


Rafał Staniukiewicz
E-mail: [hidden email]
Urząd Miasta Legnica
Referat Informatyki
pl. Słowiański 8
59-220 Legnica
tel. 76 7212145
fax. 76 7212115

Legnica


 



__________ Informacja programu ESET NOD32 Antivirus, wersja bazy sygnatur wirusow 6302 (20110717) __________

Wiadomosc zostala sprawdzona przez program ESET NOD32 Antivirus.
http://www.eset.pl lub http://www.eset.com

_______________________________________________
Tilecache mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/tilecache
Reply | Threaded
Open this post in threaded view
|

Re: List index out of range

Riffraff
Solved.

I did not put number of levels for that layer in the tileacahe.cfg

tilecache.cfg
----------------------------

[mz_tiles]
type=WMS
url=http://localhost/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/mapserv/example.map&transparent=true&
layers=hpool
levels=25
spherical_mercator=true



All the best in solving your problems.

Regards

Rafal