Hello all<br><br>I have been trying to setup my tilecache to work with Openlayers and have come across the old &#39;cannot caluculate tile index&#39; error.<br><br>After having read the archives I see that you need to have your bounding box and max resolutions the same in both the 
tilecache.cfg and the openlayers layer def. I have done this and am still having no joy.<br><br>I can get a cached tile if I manually input the maximum bounding box into the URL (outside of Openlayers) - but only if I use the maximum bounding box - if I try to request a smaller geographic area I get the error.
<br><br>Has anyone any ideas what I am doing wrong?<br><br>Stuart<br><br>Using Tilecache 1.8 on Unix with Openlayers 2.4<br><br>My openlayers definition is:<br><br>&nbsp;var wms_cache_layer = new OpenLayers.Layer.WMS( &quot;Fasti Global Mosaic&quot;,&nbsp; &quot;
<a href="http://www.fastionline.org/v2/mapserver/tilecache/tilecache.py?">http://www.fastionline.org/v2/mapserver/tilecache/tilecache.py?</a>&quot;, {layers: &#39;fasti&#39;, format: &#39;image/png; mode=24bit&#39;, maxResolution:&#39;
27086.765625&#39;,maxExtent: new OpenLayers.Bounds (256000,-1385000,733013,5549212) } );<br><br>Tilecache.cfg is:<br><br>[fasti]<br>type=WMSLayer<br>url=<a href="http://map1.fastionline.org/v2/fasti_wms.php">http://map1.fastionline.org/v2/fasti_wms.php
</a>?<br>srs=EPSG:3034<br>extension=&#39;png&#39;<br>bbox=256000,-1385000,733013,5549212<br>maxResolution=27086.765625<br>levels=14<br>layers=dem_base_west,dem_base_east<br>