[Tilecache] tilecache_seed between some bounds

Adrian Popa adrian_gh.popa at romtelecom.ro
Thu Oct 22 09:25:18 EDT 2009


Hello everyone,

I'm new to tilecache and I've managed to get it running, but now, to 
increase performance I would like to generate tiles between some zoom 
levels so loading will be faster.

I've read the documentation and I'm trying to generate the tiles with 
tilecache_seed.py. If I run it like this:

python tilecache_seed.py my_layer 1 6

... it starts crunching and generates loads of images. However, I've 
read it doesn't generate those images using the bbox parameter in 
tilecache.conf (so it's basically plotting the whole world). Now, I'm 
trying to cache layers 1 - 5 (as defined in my conf file) within my bbox 
- but the script finishes too quickly...

[root at terra tilecache]# python tilecache_seed.py my_layer 1 5 --bbox 
"20.26,43.16,29.70,48.46"
###### (64, 64, 1), (64, 64, 1)
01 (000064, 000064) = (-0.0008 -0.0008 313086.0670 313086.0670) [0.0002s 
: 2007.391/s] 1/0
###### (128, 128, 2), (128, 128, 2)
02 (000128, 000128) = (-0.0008 -0.0008 156543.0331 156543.0331) [0.0002s 
: 2262.037/s] 1/0
###### (256, 256, 3), (256, 256, 3)
03 (000256, 000256) = (-0.0008 -0.0008 78271.5162 78271.5162) [0.0002s : 
2436.929/s] 1/0
###### (512, 512, 4), (512, 512, 4)
04 (000512, 000512) = (-0.0008 -0.0008 39135.7577 39135.7577) [0.0002s : 
2463.097/s] 1/0

Here is my layer configuration:
[my_layer]
type=WMS
debug=no
url=http://terra/fcgi-bin/mapserv?map=/var/www/html/map/my_base.map
layers=Judete,RuralSate,Rural,Urban,highway,sechighway,streets,buildings,GranitaJudete
bbox=20.26,43.16,29.70,48.46
spherical_mercator=true
levels=13
srs=EPSG:900913
size=256,256
extension=png
mime_type=image/png2
maxResolution=2445.9849046875
map_imagetype=agg
resolutions=2445.9849046875,1222.99245234375,611.496226171875,305.7481130859375,152.87405654296876,76.43702827148438,38.21851413574219,19.109257067871095,9.554628533935547,4.777314
266967774,2.388657133483887,1.1943285667419434,0.597164283
extent_type=loose


OpenLayers + WMS Layer pointing to tilecache.py works just fine, so I 
must be missing some parameters...

Thanks,
Adrian




More information about the Tilecache mailing list