<!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>Greetings!</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm trying to make a map of a region instead of the whole world, using 
mapserver+tilecache+openlayers.</DIV>
<DIV>&nbsp;</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&amp;<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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DD<BR>EXTENT&nbsp;&nbsp;&nbsp;&nbsp;113.8 
22.1 114.5 22.6<BR></DIV>
<DIV>and in the javascript (openlayers):</DIV>
<DIV>var options4326 = {<BR>&nbsp;&nbsp;//numZoomLevels: 
8,<BR>&nbsp;&nbsp;maxExtent: new 
OpenLayers.Bounds(113.8,22.1,114.5,22.6),<BR>&nbsp;&nbsp;projection:"EPSG:4326",<BR>&nbsp;&nbsp;controls: 
[]<BR>&nbsp;};<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>&nbsp; File 
"D:\ms4w\Apache\cgi-bin\tilecache\TileCache\Service.py", line 479, in 
cgiHandler<BR>&nbsp;&nbsp;&nbsp; format, image = service.dispatchRequest( 
params, path_info, req_method, host )<BR>&nbsp; File 
"D:\ms4w\Apache\cgi-bin\tilecache\TileCache\Service.py", line 395, in 
dispatchRequest<BR>&nbsp;&nbsp;&nbsp; tile = WMS(self).parse(params, path_info, 
host)<BR>&nbsp; File "D:\ms4w\Apache\cgi-bin\tilecache\TileCache\Service.py", 
line 120, in parse<BR>&nbsp;&nbsp;&nbsp; return self.getMap(param)<BR>&nbsp; 
File "D:\ms4w\Apache\cgi-bin\tilecache\TileCache\Service.py", line 129, in 
getMap<BR>&nbsp;&nbsp;&nbsp; % (layer.name, bbox))</DIV>
<DIV>&nbsp;</DIV>
<DIV>I remember that I have the match the bbox in all these thing, but what is 
wrong here?</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>