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

Huey Brantley huey.brantley at vanderbilt.edu
Fri Dec 7 11:22:19 EST 2007


I've been struggling with the same problems, however I have now been
able to get tilecache_seed.py to run successfully.

My tilecache.org is:

[campus]
type=WMSLayer
url=http://192.168.0.30/cgi-bin/wms
extension=png
layers=grass,sidewalks,drivesalleys,roads,parking,facilities,artwork,campuswebcams,arealabels,roadnames
bbox=-86.85846389,36.10619167,-86.73637222,36.19093611
metaTile=true
levels=20
maxResolution=1.40625

I run seed as:

./tilecache_seed.py
'http://maps.cpc-fis.vanderbilt.edu/tilecache/tilecache.cgi?' campus0 0
20 -86.85846389,36.10619167,-86.73637222,36.19093611 

This runs fine now but when I view the layer all the tiles are pink.
When I try to view one of the pink tiles I get:

The image
"http://maps.cpc-fis.vanderbilt.edu/tilecache/cache/campus0/15/000/000/010/000/000/007.png" cannot be displayed, because it contains errors.

I view this image with a viewer and it seems fine. 

Searching for a cause and fix.

Thanks,

h

-----Original Message-----
From: tilecache-bounces at openlayers.org
[mailto:tilecache-bounces at openlayers.org] On Behalf Of Steve Lime
Sent: Thursday, December 06, 2007 4:07 PM
To: tilecache at openlayers.org
Subject: [Tilecache] Tilecache.cgi works fine, tilecache_seed.py
bombs...

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



_______________________________________________
Tilecache mailing list
Tilecache at openlayers.org
http://openlayers.org/mailman/listinfo/tilecache





More information about the Tilecache mailing list