I have layer in tilecache.cfg:<br><br><br>[vt] <br>type=MapnikLayer<br>mapfile=/usr/local/web/www/tilecache/data/vt.xml<br>bbox=-20037508.34, -20037508.34, 20037508.34, 20037508.34<br>srs=OSGEO:41001<br><br>without MaxResolution I can to get ideal image, but if I set:
<br><br>[vt] <br>type=MapnikLayer<br>mapfile=/usr/local/web/www/tilecache/data/vt.xml<br>bbox=-20037508.34, -20037508.34, 20037508.34, 20037508.34<br>srs=OSGEO:41001<br>maxResolution=156543.03390625<br><br>I get this error:
<br><br><pre>An error occurred: couldn't calculate tile index for layer vt from ([2848114.2718949998, 5291494.1623579999, 2856386.5208609998, 5297354.1745779999])<br> File "/usr/local/web/www/tilecache/TileCache/Service.py", line 459, in cgiHandler
<br> format, image = service.dispatchRequest( params, path_info, host )<br> File "/usr/local/web/www/tilecache/TileCache/Service.py", line 380, in dispatchRequest<br> tile = WMS(self).parse(params, path_info, host)
<br> File "/usr/local/web/www/tilecache/TileCache/Service.py", line 115, in parse<br> return self.getMap(param)<br> File "/usr/local/web/www/tilecache/TileCache/Service.py", line 124, in getMap<br>
% (<a href="http://layer.name">layer.name</a>, bbox))</pre>How to calculate maxResolution and resolution for this bbox?<br><br>