<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<STYLE></STYLE>

<META content="MSHTML 6.00.2900.3059" 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;&nbsp;&nbsp; I've got problem using openlayers+tilecache+ms4w. Codes 
follow:</DIV>
<DIV>&nbsp;</DIV>
<DIV>OpenLayers:</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var options4326 = 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
//maxResolution: 
1,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
//maxZoomLevel: 
8,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
maxExtent: new 
OpenLayers.Bounds(109.659395,20.208809,117.205135,25.452341),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
projection:"EPSG:4326",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
controls: [new 
OpenLayers.Control.MouseDefaults()]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var map = new 
OpenLayers.Map('map', options4326);</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var gdhk_tilecache = new 
OpenLayers.Layer.WMS(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"WMS (EPSG 4326); 
tilecache",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"<A title=http://localhost/tilecache/tilecache.cgi 
href="http://localhost/tilecache/tilecache.cgi">http://localhost/tilecache/tilecache.cgi</A>", 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
layers: 
'gdhk',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
format: 
'image/gif'}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
);</DIV>
<DIV>&nbsp;</DIV>
<DIV>tilecache.cfg:</DIV>
<DIV>[gdhk]<BR>type=WMSLayer<BR>url=http://localhost/cgi-bin/en/mapserv<BR>extension=gif<BR>#bbox=109.659395,20.208809,117.205135,25.452341<BR>#levels=8</DIV>
<DIV>&nbsp;</DIV>
<DIV>It always return errors "couldn't calculate tile index for layer", but I 
can see the image by:</DIV>
<DIV><A 
title=http://localhost/tilecache/tilecache.cgi?layers=gdhk&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:4326&amp;WIDTH=256&amp;HEIGHT=256&amp;BBOX=109.659395,20.208809,117.205135,25.452341 
href="http://localhost/tilecache/tilecache.cgi?layers=gdhk&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:4326&amp;WIDTH=256&amp;HEIGHT=256&amp;BBOX=109.659395,20.208809,117.205135,25.452341">http://localhost/tilecache/tilecache.cgi?layers=gdhk&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:4326&amp;WIDTH=256&amp;HEIGHT=256&amp;BBOX=<FONT 
title="http://localhost/tilecache/tilecache.cgi?layers=gdhk&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:4326&amp;WIDTH=256&amp;HEIGHT=256&amp;BBOX=109.659395,20.208809,117.205135,25.452341&#10;CTRL + Click to follow link" 
color=#000000>109.659395,20.208809,117.205135,25.452341</FONT><BR></A></DIV>
<DIV>I've tried to comment/uncomment those lines, but nothing changes.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Could anyone help?</DIV></BODY></HTML>