[Tilecache] only 'basic' layers works

Frédéric Junod frederic.junod at camptocamp.com
Thu Mar 12 02:57:37 EDT 2009


You have a typo in the 'basic' layer; should be:
  layers=koumac:communes
not:
  layers:koumac:communes

fredj

Le Wed, 11 Mar 2009 16:32:22 -0700 (PDT),
floflo <florent.gravin at bluecham.net> a écrit :

> 
> tilecache.cfg
> 
> [basic]
> type=WMS
> layers:koumac:communes
> url=http://172.31.172.244:8080/geoserver/wms?
> extension=png
> srs=EPSG:4326
> 
> [basic2]
> type=WMS
> url=http://labs.metacarta.com/wms/vmap0
> extension=png
> 
> index.html
> 
> layer = new OpenLayers.Layer.WMS( "VMap0", 
>                     "http://localhost/tilecache-2.10/tilecache.cgi?",
> {layers: 'basic', format: 'image/png' } );
> 
> 
> i'm sure it's the right config file because index.html call my geoserver
> tiles, it works
> basic2 is the metacarta wms, if i call layers: 'basic2' in my index.htm, i
> only get pink tiles with the message in error.log
> 
> >[Thu Mar 12 09:13:34 2009] [error] [client 127.0.0.1] Cache hit:
> -180.0,-90.0,-90.0,0.0, Tile: x: 0, y: 0, z: 1, time: 0.0, debug: True\r,
> referer: http://localhost/tilecache-2.10/
> 
> if i switch basic2 to basic in my config file.. i get metacarta tiles
> alright...
> 
> for the moment, the only thing i can do is to dump all tiles of a layer on
> my disk, and then change its name in my file explorer........
> 
> 
> i must be missing something because it's the same trouble on 3 machines,
> linux or windows....
> 
> http://localhost/tilecache-2.10/tilecache.cgi/1.0.0  gives
> <TileMapService version="1.0.0">
>> <TileMaps>
> <TileMap href="http://localhost/tilecache-2.10/tilecache.cgi/1.0.0/basic2/"
> srs="EPSG:4326" title="basic2" profile="global-geodetic"/>
> <TileMap href="http://localhost/tilecache-2.10/tilecache.cgi/1.0.0/basic/"
> srs="EPSG:4326" title="basic" profile="global-geodetic"/>
> </TileMaps>
> </TileMapService>
> 
> 
> 


-- 
Frédéric Junod
Camptocamp SA



More information about the Tilecache mailing list