<!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> I've got problem using openlayers+tilecache+ms4w. Codes
follow:</DIV>
<DIV> </DIV>
<DIV>OpenLayers:</DIV>
<DIV> var options4326 =
{<BR>
//maxResolution:
1,<BR>
//maxZoomLevel:
8,<BR>
maxExtent: new
OpenLayers.Bounds(109.659395,20.208809,117.205135,25.452341),<BR>
projection:"EPSG:4326",<BR>
controls: [new
OpenLayers.Control.MouseDefaults()]<BR>
};<BR> var map = new
OpenLayers.Map('map', options4326);</DIV>
<DIV> </DIV>
<DIV> var gdhk_tilecache = new
OpenLayers.Layer.WMS(<BR>
"WMS (EPSG 4326);
tilecache",<BR>
"<A title=http://localhost/tilecache/tilecache.cgi
href="http://localhost/tilecache/tilecache.cgi">http://localhost/tilecache/tilecache.cgi</A>",
{<BR>
layers:
'gdhk',<BR>
format:
'image/gif'}<BR>
);</DIV>
<DIV> </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> </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&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=256&HEIGHT=256&BBOX=109.659395,20.208809,117.205135,25.452341
href="http://localhost/tilecache/tilecache.cgi?layers=gdhk&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=256&HEIGHT=256&BBOX=109.659395,20.208809,117.205135,25.452341">http://localhost/tilecache/tilecache.cgi?layers=gdhk&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=256&HEIGHT=256&BBOX=<FONT
title="http://localhost/tilecache/tilecache.cgi?layers=gdhk&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=256&HEIGHT=256&BBOX=109.659395,20.208809,117.205135,25.452341 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> </DIV>
<DIV>Could anyone help?</DIV></BODY></HTML>