<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Bill,<br>
thank you for your reply, but it does not solved my problem.<br>
I have put my resolution and changed Layer.py, but I have always these
errors:<br>
[Sun Jan 07 16:43:33 2007] [error] [client 127.0.0.1]
W:\cgi-bin\TileCache\Layer.py:105: UserWarning: can't find resolution
index for 911.137255, referer: <a class="moz-txt-link-freetext" href="http://localhost/tilecache/wms_cache.html">http://localhost/tilecache/wms_cache.html</a><br>
[Sun Jan 07 16:43:33 2007] [error] [client 127.0.0.1]   warn("can't
find resolution index for %f" % res), referer:
<a class="moz-txt-link-freetext" href="http://localhost/tilecache/wms_cache.html">http://localhost/tilecache/wms_cache.html</a><br>
<br>
I'm becoming a little mad.<br>
<br>
Thank you again,<br>
<br>
Andrea<br>
<br>
-------- Messaggio Originale --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
 cellspacing="0">
  <tbody>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Oggetto: </th>
      <td>Re: [OpenLayers-Users] tilecache config problem</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Data: </th>
      <td>Fri, 05 Jan 2007 18:45:11 -0800</td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Da: </th>
      <td>bwoodall <a class="moz-txt-link-rfc2396E" href="mailto:bwoodall@wardrobe.dhs.org">&lt;bwoodall@wardrobe.dhs.org&gt;</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Rispondi-a: </th>
      <td><a class="moz-txt-link-abbreviated" href="mailto:bwoodall@wardrobe.dhs.org">bwoodall@wardrobe.dhs.org</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">A: </th>
      <td>Andrea Borruso <a class="moz-txt-link-rfc2396E" href="mailto:aborruso@tin.it">&lt;aborruso@tin.it&gt;</a></td>
    </tr>
    <tr>
      <th align="right" nowrap="nowrap" valign="baseline">Referenze: </th>
      <td><a class="moz-txt-link-rfc2396E" href="mailto:459E3947.2020809@tin.it">&lt;459E3947.2020809@tin.it&gt;</a></td>
    </tr>
  </tbody>
</table>
<br>
<br>
<pre>Hi Andrea,

I had to put my own resolutions into my tilecache.cfg and not use the
defaults

my resolutions (for srs=EPSG:4326) is like this;
resolutions=1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,
0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,0.0006866455078125,
0.00034332275390625,0.000171661376953125,0.0000858306884765625,0.00004291534423828125,
0.000021457672119140625,0.0000107288360595703125,0.00000536441802978515625,
0.000002682209014892578125

and I had to tweak the tileCache code ("Layer.py") around line 137
from
       if exact:
to
       if not exact:

Hope that helps,

.........Bill,

On Fri, 2007-01-05 at 12:40 +0100, Andrea Borruso wrote:
&gt; Dear all,
&gt; I'm testing TileCache and it's really a good tool. I'm very impressed.
&gt; I have made my first test with the original example file and now I want 
&gt; to make some test with my map sources.
&gt; I'm not able to use as source a wms server of mine. TileCache does not 
&gt; create the image tiles in the cache directory, and I have an empty map 
&gt; in my openlayer interface.
&gt; This wms server works properly as you can see using this url:
&gt; <a class="moz-txt-link-freetext" href="http://esempi.mapserver.it/cgi-bin/mapserv.exe?map=/Siti/mapserver/esempi/map109/config/progetto_109_wms.map&layers=gra_isud&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image/png&SRS=EPSG:32633&BBOX=201153,3929400,849098,4626420&WIDTH=256&HEIGHT=256">http://esempi.mapserver.it/cgi-bin/mapserv.exe?map=/Siti/mapserver/esempi/map109/config/progetto_109_wms.map&amp;layers=gra_isud&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;FORMAT=image/png&amp;SRS=EPSG:32633&amp;BBOX=201153,3929400,849098,4626420&amp;WIDTH=256&amp;HEIGHT=256</a>
&gt; 
&gt; I have inserted these lines in tilecache.cfg:
&gt; [acido]
&gt; type=WMSLayer
&gt; url=<a class="moz-txt-link-freetext" href="http://esempi.mapserver.it/cgi-bin/mapserv.exe?map=/Siti/mapserver/esempi/map109/config/progetto_109_wms.map&">http://esempi.mapserver.it/cgi-bin/mapserv.exe?map=/Siti/mapserver/esempi/map109/config/progetto_109_wms.map&amp;</a>
&gt; extension=png
&gt; layers=gra_isud
&gt; bbox=201153, 3929400, 849098, 4626420
&gt; srs=EPSG:32633
&gt; 
&gt; I have these lines in apache error log:
&gt; [Fri Jan 05 11:47:43 2007] [error] [client 127.0.0.1] 
&gt; W:\cgi-bin\TileCache\Layer.py:105: UserWarning: can't find resolution 
&gt; index for 911.137255
&gt; [Fri Jan 05 11:47:43 2007] [error] [client 127.0.0.1]   warn("can't find 
&gt; resolution index for %f" % res)
&gt; [Fri Jan 05 11:47:48 2007] [error] [client 127.0.0.1] 
&gt; W:\cgi-bin\TileCache\Layer.py:105: UserWarning: can't find resolution 
&gt; index for 911.137255
&gt; [Fri Jan 05 11:47:49 2007] [error] [client 127.0.0.1]   warn("can't find 
&gt; resolution index for %f" % res)
&gt; 
&gt; What's wrong in my settings?
&gt; 
&gt; Thank you,
&gt; 
&gt; a
&gt; 
&gt; _______________________________________________
&gt; Users mailing list
&gt; <a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
&gt; <a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>


</pre>
</body>
</html>