[Tilecache] A tilecache tutorial
Adrian Zhao
Adrian.Zhao at idvsolutions.com
Tue Feb 27 18:19:36 EST 2007
Thanks Chris. That is exactly I am trying to ask at first place.
If this is the case, I don't need to change my client code which can
issue a MWS GetMap call without any knowledge about tile, right?
Adrian
-----Original Message-----
From: Christopher Schmidt [mailto:crschmidt at metacarta.com]
Sent: Tuesday, February 27, 2007 6:13 PM
To: Adrian Zhao
Cc: Chris Holmes; tilecache at openlayers.org
Subject: Re: [Tilecache] A tilecache tutorial
On Tue, Feb 27, 2007 at 02:00:17PM -0500, Adrian Zhao wrote:
> You are welcome!
>
> Here is a question for both of you.
>
> I know that after I installed TileCache in front of mine WMS server
> (e.g. GeoServer), I can send three tile requests, WMS, WorldWind and
> TMS. But how do I know which one to send in my web client? If I send
a
> GetMap Request to my WMS with TileCache, does TileCache smart enough
to
> serve tiles as requested if it already cached or it generated tiles on
> the fly and then cached for future use.
Once you set up your WMS Layer in TileCache, you can request tiles from
/cgi-bin/tilecache.cgi (or the like). TileCache will serve any of the
three types of requests, as you mentioned.
If you send a GetMap request to /cgi-bin/tilecache.cgi, TileCache will
first check its cache for the tile you're asking for. If it has it, it
will serve that tile from cache. If not, it will make a request to the
backend -- WMS, Mapserver, Mapnik -- and cache that data.
Does this answer the question you're asking? I think the answer is
(simply) yes.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Tilecache
mailing list