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?
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
