[Tilecache] HTTP Error 500 when calling generating tiles for a
WMS...
Etides
etienne.desgagne at roche.ca
Mon Aug 24 11:36:06 EDT 2009
Hi,
I’m using Tilecache on Windows to generate tiles from a WMS but the
tiles are showing in error (with red cross). When looking the properties of
one tile in error I get this:
http://mydomain/tilecache/tilecache.py?LAYERS=PLATA_DEPARTAMENTO&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-10018753.8304,-1252343.932,-8766409.5592,0.33920000027865&WIDTH=256&HEIGHT=256
When calling directly this url to see what the error is I receive this:
An error occurred: HTTP Error 500: Internal Server Error
File "c:\inetpub\wwwroot\tilecache\TileCache\Service.py", line 323, in
cgiHandler
format, image = service.dispatchRequest( params, path_info, req_method,
host )
File "c:\inetpub\wwwroot\tilecache\TileCache\Service.py", line 208, in
dispatchRequest
return self.renderTile(tile, params.has_key('FORCE'))
File "c:\inetpub\wwwroot\tilecache\TileCache\Service.py", line 138, in
renderTile
data = layer.render(tile, force=force)
File "c:\inetpub\wwwroot\tilecache\TileCache\Layer.py", line 443, in
render
return self.renderTile(tile)
File "c:\inetpub\wwwroot\tilecache\TileCache\Layers\WMS.py", line 29, in
renderTile
tile.data, response = wms.fetch()
File "c:\inetpub\wwwroot\tilecache\TileCache\Client.py", line 58, in fetch
response = self.client.open(urlrequest)
File "C:\Python26\lib\urllib2.py", line 389, in open
response = meth(req, response)
File "C:\Python26\lib\urllib2.py", line 502, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python26\lib\urllib2.py", line 427, in error
return self._call_chain(*args)
File "C:\Python26\lib\urllib2.py", line 361, in _call_chain
result = func(*args)
File "C:\Python26\lib\urllib2.py", line 510, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
Just to be sure that my WMS is not the cause of this error, I called my WMS
directly with exactly the same parameters and this way I received the
correct image instead of the above error.
Here is the call to my WMS with exactly the same parameters (this work well
and produce an image):
http://mydomain/testwms/wms.asp?LAYERS=PLATA_DEPARTAMENTO&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-10018753.8304,-1252343.932,-8766409.5592,0.33920000027865&WIDTH=256&HEIGHT=256
This let me think that Tilecache have some problem dealing with some
configuration inside my tilecache.cfg… Here is the definition of my layers:
[PLATA_DEPARTAMENTO]
type=WMS
layers=PLATA_DEPARTAMENTO
url=http://mydomain/testwms/wms.asp?transparent=true
extension=png
bbox=-10018753.8304,-2504688.2032,-7514065.288,0.33919999981299
extent_type=loose
I tried putting the resolutions but with the same result…
Someone know what could be the cause of this error or what parameter is
likely to be causing this?
Thanks
Etienne
--
View this message in context: http://n2.nabble.com/HTTP-Error-500-when-calling-generating-tiles-for-a-WMS-tp3504197p3504197.html
Sent from the TileCache mailing list archive at Nabble.com.
More information about the Tilecache
mailing list