<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi everybody,<br>
<br>
I'm trying to make running TileCache with Mapserver. My cfg file looks
like this :<br>
<i><font face="Arial"><small>[CartoInond]<br>
type=WMSLayer<br>
url=<a class="moz-txt-link-freetext" href="http://www.pole-geomatique-auvergne.org/cgi-bin/cartoinondwms">http://www.pole-geomatique-auvergne.org/cgi-bin/cartoinondwms</a>?<br>
layers=Communes_Auvergne<br>
srs=EPSG:27572<br>
extension=png<br>
bbox=590760, 2032072, 698428, 2139740<br>
resolutions=841.15625,420.578125,210.2890625,105.14453125</small></font></i><br>
<br>
I've got an error raising when I'm calling this<br>
<i><font face="Arial"><small><a class="moz-txt-link-freetext" href="http://www.pole-geomatique-auvergne.org/cgi-bin/tilecache/tilecache.cgi">http://www.pole-geomatique-auvergne.org/cgi-bin/tilecache/tilecache.cgi</a>?<br>
LAYERS=CartoInond&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage<br>
&FORMAT=image%2Fjpeg&SRS=EPSG%3A27572&BBOX=590760,2032072,698428,2139740&WIDTH=256&HEIGHT=256</small></font></i><br>
<br>
The error is the following :<br>
<i><font face="Arial"><br>
</font></i>
<pre><i><font face="Arial">An error occurred: Zero length data returned from layer.
File "/usr/local/apache2/cgi-bin/tilecache/TileCache/Service.py", line 479, in cgiHandler
format, image = service.dispatchRequest( params, path_info, req_method, host )
File "/usr/local/apache2/cgi-bin/tilecache/TileCache/Service.py", line 405, in dispatchRequest
return self.renderTile(tile, params.has_key('FORCE'))
File "/usr/local/apache2/cgi-bin/tilecache/TileCache/Service.py", line 369, in renderTile
else: raise Exception("Zero length data returned from layer.")</font></i>
</pre>
But what is surprising is when I'm calling the real mapservice by this
url :<br>
<font face="Arial"><i><small><a class="moz-txt-link-freetext" href="http://www.pole-geomatique-auvergne.org/cgi-bin/cartoinondwms">http://www.pole-geomatique-auvergne.org/cgi-bin/cartoinondwms</a>?<br>
LAYERS=Communes_Auvergne&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage<br>
&FORMAT=image%2Fjpeg&SRS=EPSG%3A27572&BBOX=590760,2032072,698428,2139740&WIDTH=256&HEIGHT=256<br>
<br>
</small></i></font>... everything goes fine and I'm getting the image.<br>
So, what I'm doing wrong?<br>
<br>
Thanks in advance for your help.<br>
<br>
Yvan Calcagni<br>
<br>
</body>
</html>