[Tilecache] question about bbox

Christopher Schmidt crschmidt at metacarta.com
Fri Jun 29 06:48:54 EDT 2007


On Fri, Jun 29, 2007 at 06:32:23PM +0800, Jackey Cheung wrote:
> Greetings!
> 
> I'm trying to make a map of a region instead of the whole world, using mapserver+tilecache+openlayers.
> 
> in the tilecahe.cfg:
> [en]
> type=WMSLayer
> url=http://192.168.0.12/cgi-bin/mapserv?map=/map/maps/en.map&
> bbox=113.8,22.1,114.5,22.6
> layers=China_HongKong_Road
> extension=png
> metaTile=yes

> I remember that I have the match the bbox in all these thing, but what is wrong here?

Your maxExtent matches, but your maxResolution doesn't. TileCache will,
by default, divide the bounding box width by 512 (two tiles) to generate
the maxResolution: in your case, you should add 
'maxResolution': .0013671875

to your map options.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list