[Tilecache] KeyError
James McManus McManus
jmpmcmanus at yahoo.com
Wed Jan 16 15:42:31 EST 2008
I failed to mention in my previous email that I'm using basemap in tilecache.py as:
myService = Service (
Disk("/var/www/html/mapdata/tmp"),
{
"basemap" : MS.MapServer( "basemap", "/var/www/html/mapdata/Durham.map" )
}
)
As shown in the example.
Jim
James McManus McManus <jmpmcmanus at yahoo.com> wrote: 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/b35c1c8c/attachment.html
More information about the Tilecache
mailing list