[Tilecache] KeyError

Brent Pedersen bpederse at gmail.com
Wed Jan 16 15:51:49 EST 2008


try seed.py with "basic" instead of basemap


On Jan 16, 2008 11:42 AM, 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
>
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
>



More information about the Tilecache mailing list