[Tilecache] How to use TileCache as a TMS-server?

Christopher Schmidt crschmidt at metacarta.com
Tue Nov 11 13:50:09 EST 2008


On Tue, Nov 11, 2008 at 09:25:42AM -0800, crinolium wrote:
> 
> Hello,
> 
> can somebody tell me how to use TileCache as a TMS-server?
> 
> I want to create a cache of a WMS-server and then use this cache with
> TileCache as a TMS-server.
> 
> How can I switch between TileCache- and TMS-server? I know how to use
> TileCache with a TileCache-layer and now I want to use it with a TMS-layer.
> Is the functionality the same and I only have to switch between this two
> formats? Or have I to fill the cache first and after that I can use the
> TMS-Layer?
> Does it work with the normal tilecache.cfg-file?
> 
> I tried it like this:
> new OpenLayers.Layer.TMS("TMS",
> "http://localhost/tilecache-2.04/tilecache.cgi?", {type: 'jpg', layername:
> 'tk'});
> I only get pink tiles. Because the tiles aren't there.

I'm not sure what you mean by "Because the tiles aren't there". If you
copy the URL of a pink tile
(http://trac.openlayers.org/wiki/TroubleshootingTips#Pinktiles), what
does the error message say? 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list