[Tilecache] KeyError

James McManus McManus jmpmcmanus at yahoo.com
Wed Jan 16 14:42:06 EST 2008


Hi - I am getting a KeyError for a layer:

File "/var/www/cgi-bin/tilecache/TileCache/Client.py", line 96, in main
    layer = svc.layers[sys.argv[2]]
KeyError: 'basemap'

When running:

./tilecache_seed.py "http://www.aratasystems.com/cgi-bin/tilecache/tilecache.py?" basemap 1 2 "1972916.12, 770005.74, 2111214.08, 905768.25"

In tilecache.cfg I have basemap defined as:

[basic]
type=MapServerLayer
layers=basemap

and in my mapfile it is defined, in each layer, as a group:

NAME "cntybnd"
GROUP "basemap"

and as WMS:

METADATA
       "wms_tile" "basemap"
       "wms_srs" "epsg:4326"
END

Do I need to define it somewhere else, or is this error due to some other issue?

Thanks
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20080116/e5b7d6fc/attachment.html


More information about the Tilecache mailing list