[Tilecache] An error occurred: couldn't calculate tile index for layer

Christopher Schmidt crschmidt at metacarta.com
Sat Mar 3 11:16:42 EST 2007


On Fri, Mar 02, 2007 at 02:55:27PM -0500, Brian Pitts wrote:
> Hi,
>    I'm having trouble using TileCache with mod_python and OpenLayers. 
> When connecting OpenLayers directly to a WMS, the data loads fine. When 
> using TileCache, I only get pink broken images.

Your TileCache layer 'bounds' needs to match the maxExtent for your
OpenLayers Layer. so:   


[US_States]
type=WMSLayer
url=http://localhost/cgi-bin/mapserver
extension=png
bounds=-124.7,24.9,-66.9,49.3

> I tried adding bbox=-124.7,24.9,-66.9,49.3 to tilecache.cfg but it made 
> no difference.

Hm. Did you try adding that, then zooming in one? 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list