Hi all,<br>i&#39;m trying to get tilecache_seed working, but i have a problem.<br><br>I&#39;m using tilecache 2.10, with that layer specified in tilecache.cfg:<br><br><div style="margin-left: 40px;">[picture]<br>type=GDAL<br>
file=image.tif<br>filebounds= -180,-90,180,90<br clear="all"></div><br>Let&#39;s say i wanna force recaching, with tilecache_seed, of the zoom levels 0, 1, 2. Here&#39;s what happens:<br><br><div style="margin-left: 40px;">
$ ./tilecache_seed.py picture 0 2 -f<br>###### (0, 0, 0), (2, 1, 0)<br>Cache miss: -180.0,-90.0,0.0,90.0, Tile: x: 0, y: 0, z: 0, time: 1.39069890976<br>00 (000000, 000000) = (-180.0000 -90.0000 0.0000 90.0000) [1.3908s : 0.719/s] 1/2<br>
Cache miss: 0.0,-90.0,180.0,90.0, Tile: x: 1, y: 0, z: 0, time: 1.35869908333<br>00 (000001, 000000) = (0.0000 -90.0000 180.0000 90.0000) [1.3588s : 0.727/s] 2/2<br>Cache miss: 180.0,-90.0,360.0,90.0, Tile: x: 2, y: 0, z: 0, time: 0.0159740447998<br>
00 (000002, 000000) = (180.0000 -90.0000 360.0000 90.0000) [0.0161s : 1.085/s] 3/2<br>Traceback (most recent call last):<br>  File &quot;./tilecache_seed.py&quot;, line 9, in &lt;module&gt;<br>    TileCache.Client.main()<br>
  File &quot;/var/www/tilecache-2.10/TileCache/Client.py&quot;, line 162, in main<br>    seed(svc, layer, map(int, args[1:3]), bboxlist , padding=options.padding, force = options.force, reverse = options.reverse)<br>  File &quot;/var/www/tilecache-2.10/TileCache/Client.py&quot;, line 117, in seed<br>
    svc.renderTile(tile,force=force)<br>  File &quot;/var/www/tilecache-2.10/TileCache/Service.py&quot;, line 138, in renderTile<br>    data = layer.render(tile, force=force)<br>  File &quot;/var/www/tilecache-2.10/TileCache/Layer.py&quot;, line 443, in render<br>
    return self.renderTile(tile)<br>  File &quot;/var/www/tilecache-2.10/TileCache/Layers/GDAL.py&quot;, line 123, in renderTile<br>    im = PIL.Image.fromarray(array)<br>  File &quot;/usr/lib/python2.5/site-packages/PIL/Image.py&quot;, line 1861, in fromarray<br>
    return frombuffer(mode, size, obj, &quot;raw&quot;, mode, 0, 1)<br>  File &quot;/usr/lib/python2.5/site-packages/PIL/Image.py&quot;, line 1806, in frombuffer<br>    return apply(fromstring, (mode, size, data, decoder_name, args))<br>
  File &quot;/usr/lib/python2.5/site-packages/PIL/Image.py&quot;, line 1745, in fromstring<br>    im.fromstring(data, decoder_name, args)<br>  File &quot;/usr/lib/python2.5/site-packages/PIL/Image.py&quot;, line 572, in fromstring<br>
    d.setimage(<a href="http://self.im">self.im</a>)<br>ValueError: tile cannot extend outside image<br><br></div>It seems the last cache miss, the one which raises the exception, have a completely wrong bbox: (180.0,-90.0,360.0,90.0), even if my layer&#39;s bbox is correctly specified as (-180,-90,180,90) in tilecache.cfg.<br>
The same problem arises in a lot of other situations, every time caused by (in my humble opinion) a request to a wrong bbox.<br><br>Could you please help me? Am i doing something wrong?<br><br>Best regards,<br><br>-- <br>
Enrico Sartorello<br>