<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3603" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=909110110-21102009>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=909110110-21102009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=909110110-21102009>I haven't used Tilecache yet, but&nbsp;I have 
understood that&nbsp;Mapserver does not need to know anything about 
Tilecache.&nbsp; Tilecache program is just a normal user for Mapserver 
and&nbsp;the same mapfile that works for normal WMS usage works also for 
Tilecache.&nbsp; Tilecache must be configured to find Mapserver and the layer 
that is to be cached.&nbsp;&nbsp; What happens&nbsp;is that WMS client that can 
utilise tiles is sending tiled WMS request to Tilecache (not directly to 
Mapserver).&nbsp; If Tilecache finds a cached image for the request it is 
sending it without calling Mapserver at all.&nbsp; Only if image is missing from 
cache Tilecache is passing on the request to Mapserver.&nbsp; When the same 
request comes again Tilecache finds it from disk and Mapserver can have a 
rest.&nbsp; But&nbsp;with non- tiling aware programs like&nbsp;GIS software 
tilecache does not help anything, because they&nbsp;are sending WMS requests 
which have every time different bbox and output image size.&nbsp;Tiling WMS 
clients are sending standardized calls which support caching, like the 
following</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=909110110-21102009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=909110110-21102009>/cgi-bin/tilecache.cgi?LAYERS=Landsat742&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;FORMAT=image%2Fjpeg&amp;TRANSPARENT=true&amp;TILED=true&amp;TILESORIGIN=1229757.5465712,8139734.3664411&amp;SRS=EPSG%3A900913&amp;BBOX=2909757.5465712,8679734.3664411,2929757.5465712,8699734.3664411&amp;WIDTH=256&amp;HEIGHT=256 
HTTP/1.0" 200 22835</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=909110110-21102009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=909110110-21102009>As I said, I have not user Tilecache myself and I may 
give misleading information.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=909110110-21102009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN 
class=909110110-21102009><FONT size=2>There is a MS4W&nbsp;download 
called&nbsp;Tilecache MapServer (WMS-C tilecache through MapServer), you can 
find it from <A 
href="http://www.maptools.org/ms4w/index.phtml?page=downloads.html">http://www.maptools.org/ms4w/index.phtml?page=downloads.html</A>&nbsp;</FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=909110110-21102009>I have been thinking that it must be worth having a 
look.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=909110110-21102009>-Jukka 
Rahkonen-</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=909110110-21102009></SPAN></FONT>&nbsp;</DIV><FONT face=Arial 
color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT><FONT 
face=Arial color=#0000ff size=2></FONT><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=fi dir=ltr align=left><FONT face=Tahoma 
  size=2>Maria Neywell&nbsp;<SPAN class=909110110-21102009><FONT face=Arial 
  color=#0000ff>&nbsp;wrote:</FONT></SPAN></FONT><BR></DIV>
  <DIV></DIV>
  <P class=MsoNormal><SPAN lang=EN-US 
  style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'">Hi Jukka, 
  <BR></SPAN></P>
  <P class=MsoNormal><SPAN lang=EN-US 
  style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><BR>I don't 
  have generated tiles. <BR><BR>I simply want to get, for example, a WMS layer 
  that<B> </B>uses tilecache when I need to display it.</SPAN></P>
  <P class=MsoNormal><SPAN lang=EN-US 
  style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><BR></SPAN></P>
  <P class=MsoNormal>Regards,</P>
  <P class=MsoNormal>Maria<BR></P>
  <P class=MsoNormal><SPAN lang=EN-US 
  style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><BR></SPAN></P><BR><BR>
  <DIV class=gmail_quote>2009/10/20 Rahkonen Jukka <SPAN dir=ltr>&lt;<A 
  href="mailto:Jukka.Rahkonen@mmmtike.fi" 
  target=_blank>Jukka.Rahkonen@mmmtike.fi</A>&gt;</SPAN><BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi,<BR><BR>Could 
    you explain bit more clear what do you want to do? Do I undestand right that 
    you have tilecache running and you have generated the tiles? &nbsp;And now 
    you want to read those tiles with Mapserver, and push them out from 
    Mapserver non-tiled, for example through WMS service, through WCS, of 
    through Mapserver cgi?<BR><FONT color=#888888><BR>-Jukka 
Rahkonen-<BR></FONT>
    <DIV>
    <DIV></DIV>
    <DIV><BR>Maria Neywell wrote:<BR><BR><BR>Johan,<BR><BR><BR><BR>Thanks for 
    your attention,<BR><BR><BR><BR>In my MapFile I tried to configure a layer 
    with TileCache as follows :<BR><BR><BR>&nbsp;LAYER<BR>&nbsp; &nbsp;DATA 
    "myShape.shp"<BR>&nbsp; &nbsp;CONNECTION "<A 
    href="http://localhost/tilecache/tilecache.cgi" 
    target=_blank>http://localhost/tilecache/tilecache.cgi</A><BR>&nbsp; 
    &nbsp;CONNECTIONTYPE WMS<BR>....<BR>END<BR><BR>But it doesn't 
    work.<BR><BR><BR><BR>Has someone already been successful with a similar 
    configuration?<BR><BR><BR><BR>Regards,<BR><BR><BR><BR>Maria<BR><BR><BR>2009/10/19 
    Johan Ruiter &lt;<A href="mailto:j.ruiter@geon.nl" 
    target=_blank>j.ruiter@geon.nl</A>&gt;<BR><BR>&gt; 
    &nbsp;Maria,<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; In that case I can't help you 
    out. Hopefully someone else does.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; 
    Regards,<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Johan<BR>&gt;<BR>&gt;<BR>&gt; 
    &nbsp;------------------------------<BR>&gt;<BR>&gt; *Van:* Maria Neywell 
    [mailto:<A href="mailto:maria.neywell@gmail.com" 
    target=_blank>maria.neywell@gmail.com</A>]<BR>&gt; *Verzonden:* maandag 19 
    oktober 2009 14:51<BR>&gt; *Aan:* Johan Ruiter<BR>&gt; *CC:* <A 
    href="mailto:mapserver-users@lists.osgeo.org" 
    target=_blank>mapserver-users@lists.osgeo.org</A><BR>&gt; *Onderwerp:* Re: 
    [mapserver-users] TileCache 2.10 - MapServer 
    5.2<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Thanks for your 
    answer,<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; I did it too with OpenLayers, but I 
    my case,<BR>&gt;<BR>&gt; I don't want use 
    OpenLayers.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; The question is : How to 
    configure MapServer or the mapfile or both to<BR>&gt;<BR>&gt; use tilecache 
    ? and display the layer without using an OpenLayers layer<BR>&gt;<BR>&gt; 
    configured with tilecache ?<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; 
    Regards,<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; 
    Maria<BR>&gt;<BR><BR><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>