[Tilecache] Tilecache.cgi works fine, tilecache_seed.py bombs...

Steve Lime Steve.Lime at dnr.state.mn.us
Thu Dec 6 17:06:32 EST 2007


Hi all: I've got tilecache working fine via the CGI script and am moving on to seeding the cache. My setup is a mapserver
mapfile will all default layers. The following config is working:

[compass]
metaTile=true
type=MapServerLayer
layers=
mapfile=/usr/local/www/docs_maps/compass/compass.map
levels=12
srs=EPSG:29615
bbox=105000,4785000,809000,5489000
maxResolution=5500
extent_type=loose

However, running the seed script like so:

./tilecache_seed.py http://maps.dnr.state.mn.us/tilecache/tilecache.cgi compass 0 11

flames out with:

###### (0, 0, 0), (1, 1, 0)
Traceback (most recent call last):
  File "./tilecache_seed.py", line 9, in ?
    TileCache.Client.main()
  File "/usr/local/mapserver/tilecache-1.9/TileCache/Client.py", line 107, in main
    seed(base, layer, map(int, sys.argv[3:]))
  File "/usr/local/mapserver/tilecache-1.9/TileCache/Client.py", line 91, in seed
    client.fetch()
  File "/usr/local/mapserver/tilecache-1.9/TileCache/Client.py", line 55, in fetch
    raise Exception("Did not get image data back. \nURL: %s\nContent-Type Header: %s\nResponse: \n%s" % (self.url(), ctype, data))
Exception: Did not get image data back. 
URL: http://maps.dnr.state.mn.us/tilecache/tilecache.cgi?layers=compass&styles=&service=WMS&width=256&format=image%2Fpng&request=GetMap&height=256&srs=EPSG%3A29615&version=1.1.1&bbox=105000.0%2C4785000.0%2C1513000.0%2C6193000.0 
Content-Type Header: application/vnd.ogc.se_xml
Response: 
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException code="LayerNotDefined">
msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter.
</ServiceException>
</ServiceExceptionReport>

I'm not sure why the config works in one case but not in another, other than it must have to do with an empty layer list. The URL in the error snippet does return a valid image. Ideas?

Thanks - Steve






More information about the Tilecache mailing list