[OpenLayers-Users] TileCache and error "Zero length data returned from layer"

Duarte Carreira DCarreira at edia.pt
Tue Dec 12 14:38:47 EST 2006


I'm trying to setup TileCache under Windows + Python 2.4 + IIS 5.1 +
CGI.
 
I can get a python test page to work ok.
 
I use the default configuration pointing to metacarta's vmap0 wms
service.
 
Then I try the example url:
http://localhost/tilecache/tilecache.cgi?LAYERS=basic&SERVICE=WMS&VERSIO
N=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT
=256
<http://localhost/tilecache/tilecache.cgi?LAYERS=basic&SERVICE=WMS&VERSI
ON=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGH
T=256> 

And I get the following error:

An error occurred: Zero length data returned from layer.
  File "C:\wms\tilecache-1.3\TileCache\Service.py", line 427, in
cgiHandler
    format, image = service.dispatchRequest( params, path_info, host )

  File "C:\wms\tilecache-1.3\TileCache\Service.py", line 383, in
dispatchRequest
    return self.renderTile(tile, params.has_key('FORCE'))

  File "C:\wms\tilecache-1.3\TileCache\Service.py", line 362, in
renderTile
    else: raise Exception("Zero length data returned from layer.")

I have seen another message in the lists pointing the same error and it
seems the culprit is urllib2.

Is there a solution to this problem? Some additional configuration
needed? Is there anyone running the same configuration successfully?

Thanks,

Duarte

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061212/16bd6018/attachment.html


More information about the Users mailing list