<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=gb2312>
<STYLE></STYLE>
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 10pt; COLOR: #000000; PADDING-TOP: 15px; FONT-FAMILY: Arial"
bgColor=#d4d0c8 leftMargin=0 topMargin=0 CanvasTabStop="true" acc_role="text"
name="Compose message area">
<DIV>
<DIV>Greetings!</DIV>
<DIV> </DIV>
<DIV>I'm trying to make a map of a region instead of the whole world, using
mapserver+tilecache+openlayers.</DIV>
<DIV> </DIV>
<DIV>in the tilecahe.cfg:</DIV>
<DIV>[en]<BR>type=WMSLayer<BR>url=http://192.168.0.12/cgi-bin/mapserv?map=/map/maps/en.map&<BR>bbox=113.8,22.1,114.5,22.6<BR>layers=China_HongKong_Road<BR>extension=png<BR>metaTile=yes<BR></DIV>
<DIV>in the map file:</DIV>
<DIV>UNITS DD<BR>EXTENT 113.8
22.1 114.5 22.6<BR></DIV>
<DIV>and in the javascript (openlayers):</DIV>
<DIV>var options4326 = {<BR> //numZoomLevels:
8,<BR> maxExtent: new
OpenLayers.Bounds(113.8,22.1,114.5,22.6),<BR> projection:"EPSG:4326",<BR> controls:
[]<BR> };<BR></DIV>
<DIV>and then the result:</DIV>
<DIV>An error occurred: couldn't calculate tile index for layer en from ([113.8,
22.100000000000001, 113.975781, 22.275780999999998])<BR> File
"D:\ms4w\Apache\cgi-bin\tilecache\TileCache\Service.py", line 479, in
cgiHandler<BR> format, image = service.dispatchRequest(
params, path_info, req_method, host )<BR> File
"D:\ms4w\Apache\cgi-bin\tilecache\TileCache\Service.py", line 395, in
dispatchRequest<BR> tile = WMS(self).parse(params, path_info,
host)<BR> File "D:\ms4w\Apache\cgi-bin\tilecache\TileCache\Service.py",
line 120, in parse<BR> return self.getMap(param)<BR>
File "D:\ms4w\Apache\cgi-bin\tilecache\TileCache\Service.py", line 129, in
getMap<BR> % (layer.name, bbox))</DIV>
<DIV> </DIV>
<DIV>I remember that I have the match the bbox in all these thing, but what is
wrong here?</DIV>
<DIV> </DIV></DIV></BODY></HTML>