[Tilecache] question about bbox

Jackey Cheung cheung.jackey at gmail.com
Fri Jun 29 06:32:23 EDT 2007


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

in the map file:
UNITS     DD
EXTENT    113.8 22.1 114.5 22.6

and in the javascript (openlayers):
var options4326 = {
  //numZoomLevels: 8,
  maxExtent: new OpenLayers.Bounds(113.8,22.1,114.5,22.6),
  projection:"EPSG:4326",
  controls: []
 };

and then the result:
An error occurred: couldn't calculate tile index for layer en from ([113.8, 22.100000000000001, 113.975781, 22.275780999999998])
  File "D:\ms4w\Apache\cgi-bin\tilecache\TileCache\Service.py", line 479, in cgiHandler
    format, image = service.dispatchRequest( params, path_info, req_method, host )
  File "D:\ms4w\Apache\cgi-bin\tilecache\TileCache\Service.py", line 395, in dispatchRequest
    tile = WMS(self).parse(params, path_info, host)
  File "D:\ms4w\Apache\cgi-bin\tilecache\TileCache\Service.py", line 120, in parse
    return self.getMap(param)
  File "D:\ms4w\Apache\cgi-bin\tilecache\TileCache\Service.py", line 129, in getMap
    % (layer.name, bbox))

I remember that I have the match the bbox in all these thing, but what is wrong here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20070629/5ed5555a/attachment.html


More information about the Tilecache mailing list