<!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"><bwoodall@wardrobe.dhs.org></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"><aborruso@tin.it></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"><459E3947.2020809@tin.it></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:
> Dear all,
> I'm testing TileCache and it's really a good tool. I'm very impressed.
> I have made my first test with the original example file and now I want
> to make some test with my map sources.
> I'm not able to use as source a wms server of mine. TileCache does not
> create the image tiles in the cache directory, and I have an empty map
> in my openlayer interface.
> This wms server works properly as you can see using this 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&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&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</a>
>
> I have inserted these lines in tilecache.cfg:
> [acido]
> type=WMSLayer
> 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&</a>
> extension=png
> layers=gra_isud
> bbox=201153, 3929400, 849098, 4626420
> srs=EPSG:32633
>
> I have these lines in apache error log:
> [Fri Jan 05 11:47:43 2007] [error] [client 127.0.0.1]
> W:\cgi-bin\TileCache\Layer.py:105: UserWarning: can't find resolution
> index for 911.137255
> [Fri Jan 05 11:47:43 2007] [error] [client 127.0.0.1] warn("can't find
> resolution index for %f" % res)
> [Fri Jan 05 11:47:48 2007] [error] [client 127.0.0.1]
> W:\cgi-bin\TileCache\Layer.py:105: UserWarning: can't find resolution
> index for 911.137255
> [Fri Jan 05 11:47:49 2007] [error] [client 127.0.0.1] warn("can't find
> resolution index for %f" % res)
>
> What's wrong in my settings?
>
> Thank you,
>
> a
>
> _______________________________________________
> Users mailing list
> <a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
> <a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
</pre>
</body>
</html>