[Tilecache] bbox and ImageLayer

Mikel Maron mikel_maron at yahoo.com
Wed Apr 28 03:49:17 EDT 2010



Hi Chris

> 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.

[health_meeting_1_group_3]
type=ImageLayer
bbox=-20037508, -20037508, 20037508, 20037508.34
#filebounds=36.771332811,-1.325321221,36.80718373,-1.300412621
filebounds=-147534.08,4407281.28,-144761.27,4412264.65
file=/var/www/aerial.maps.jsintl.org/data/handdrawn/IMG_6275-trimmed.PNG
tms_type=google
spherical_mercator=true

I'm probably missing something obvious. Any further pointers?

Thanks
Mikel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20100428/78c5191f/attachment.html


More information about the Tilecache mailing list