<!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> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=909110110-21102009>I haven't used Tilecache yet, but I have
understood that Mapserver does not need to know anything about
Tilecache. Tilecache program is just a normal user for Mapserver
and the same mapfile that works for normal WMS usage works also for
Tilecache. Tilecache must be configured to find Mapserver and the layer
that is to be cached. What happens is that WMS client that can
utilise tiles is sending tiled WMS request to Tilecache (not directly to
Mapserver). If Tilecache finds a cached image for the request it is
sending it without calling Mapserver at all. Only if image is missing from
cache Tilecache is passing on the request to Mapserver. When the same
request comes again Tilecache finds it from disk and Mapserver can have a
rest. But with non- tiling aware programs like GIS software
tilecache does not help anything, because they are sending WMS requests
which have every time different bbox and output image size. 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> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=909110110-21102009>/cgi-bin/tilecache.cgi?LAYERS=Landsat742&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&TRANSPARENT=true&TILED=true&TILESORIGIN=1229757.5465712,8139734.3664411&SRS=EPSG%3A900913&BBOX=2909757.5465712,8679734.3664411,2929757.5465712,8699734.3664411&WIDTH=256&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> </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> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=909110110-21102009><FONT size=2>There is a MS4W download
called 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> </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> </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> </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 <SPAN class=909110110-21102009><FONT face=Arial
color=#0000ff> 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><<A
href="mailto:Jukka.Rahkonen@mmmtike.fi"
target=_blank>Jukka.Rahkonen@mmmtike.fi</A>></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? 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> LAYER<BR> DATA
"myShape.shp"<BR> CONNECTION "<A
href="http://localhost/tilecache/tilecache.cgi"
target=_blank>http://localhost/tilecache/tilecache.cgi</A><BR>
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 <<A href="mailto:j.ruiter@geon.nl"
target=_blank>j.ruiter@geon.nl</A>><BR><BR>>
Maria,<BR>><BR>><BR>><BR>> In that case I can't help you
out. Hopefully someone else does.<BR>><BR>><BR>><BR>>
Regards,<BR>><BR>><BR>><BR>> Johan<BR>><BR>><BR>>
------------------------------<BR>><BR>> *Van:* Maria Neywell
[mailto:<A href="mailto:maria.neywell@gmail.com"
target=_blank>maria.neywell@gmail.com</A>]<BR>> *Verzonden:* maandag 19
oktober 2009 14:51<BR>> *Aan:* Johan Ruiter<BR>> *CC:* <A
href="mailto:mapserver-users@lists.osgeo.org"
target=_blank>mapserver-users@lists.osgeo.org</A><BR>> *Onderwerp:* Re:
[mapserver-users] TileCache 2.10 - MapServer
5.2<BR>><BR>><BR>><BR>> Thanks for your
answer,<BR>><BR>><BR>><BR>> I did it too with OpenLayers, but I
my case,<BR>><BR>> I don't want use
OpenLayers.<BR>><BR>><BR>><BR>> The question is : How to
configure MapServer or the mapfile or both to<BR>><BR>> use tilecache
? and display the layer without using an OpenLayers layer<BR>><BR>>
configured with tilecache ?<BR>><BR>><BR>><BR>>
Regards,<BR>><BR>><BR>><BR>>
Maria<BR>><BR><BR><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>