[Tilecache] bbox and ImageLayer
mikel_maron at yahoo.com
Wed Apr 28 03:49:17 EDT 2010
> 1. Your image isn't in spherical mercator. Since TileCache has no support for reprojection, this is very much not going to work. You will need to reproject your image first.
> 2. Setting the bbox and filebounds to the same thing isn't going to work. The bbox should match the maxExtent of the OpenLayers layer you want to create -- which in this case, is the spherical
> mercator extent. (The same is true of resolution.) You can set both of these via spherical_mercator=true.
> 3. Once you reproject the image to spherical mercator, you'll need to make sure the filebounds map to the spherical mercator coordinates, not the lat/lon coords.
Ok ... I've tried the following configuration. I haven't yet reprojected the image ... I'm hoping with such a small scale image it won't be necessary, so as not to introduce any distortions.
Here's the new configuration ... but only getting blank white tiles now.
bbox=-20037508, -20037508, 20037508, 20037508.34
I'm probably missing something obvious. Any further pointers?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tilecache