<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Bill,<br>
thank you very much: now I'm able to generate the map. I have use your
second option.<br>
<div id="result_box" dir="ltr">I have some doubts about resolution
parameter.<br>
If I do not specify this parameter, which resolutions will be chosen?<br>
If I want to specify resolutions, which criteria I must follow? I kwow
the original resolution of my base map (nearby 1 pixel = 80 meters), I
must choose multiples of the original resolution (160,320,640,...)? Do
I must specify the same resolutions in the openlayers file to obtain
that the final user will zoom only in cached images?<br>
<br>
Thank you very much again,<br>
<br>
Andrea<br>
</div>
<br>
<br>
<br>
bwoodall ha scritto:
<blockquote cite="mid1168358479.9589.165.camel@wardrobe.dhs.org"
 type="cite">
  <pre wrap="">Hi Andrea,

Sorry for getting back so slowly, just deep in coding for a project.

Looking at you email, I believe the response is from TileCache not
finding the calculated resolution from the list of resolution(s) in
tilecache.cfg

The line in Layer.py ( around 125 ) is what causing this and you have a
couple of options ( maybe more )

1) find out why your bounding box that are being sent to TileCache are
not in line with the tilecache.cfg resolutions  (in Layer.py line 122 is
where the resolution is calculated)

2) change Layer.py around line 115 to
    def getCell (self, (minx, miny, maxx, maxy), exact = True):
        exact = False

Hope this helps

.......Bill,

On Sun, 2007-01-07 at 16:46 +0100, Andrea Borruso wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi Bill,
thank you for your reply, but it does not solved my problem.
I have put my resolution and changed Layer.py, but I have always these
errors:
[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>
[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>

I'm becoming a little mad.

Thank you again,

Andrea

-------- Messaggio Originale --------  
                          Oggetto: 
Re: [OpenLayers-Users] tilecache
config problem
                             Data: 
Fri, 05 Jan 2007 18:45:11 -0800
                               Da: 
bwoodall
<a class="moz-txt-link-rfc2396E" href="mailto:bwoodall@wardrobe.dhs.org">&lt;bwoodall@wardrobe.dhs.org&gt;</a>
                       Rispondi-a: 
<a class="moz-txt-link-abbreviated" href="mailto:bwoodall@wardrobe.dhs.org">bwoodall@wardrobe.dhs.org</a>
                                A: 
Andrea Borruso <a class="moz-txt-link-rfc2396E" href="mailto:aborruso@tin.it">&lt;aborruso@tin.it&gt;</a>
                        Referenze: 
<a class="moz-txt-link-rfc2396E" href="mailto:459E3947.2020809@tin.it">&lt;459E3947.2020809@tin.it&gt;</a>


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:
    </pre>
    <blockquote type="cite">
      <pre wrap="">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&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>

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&amp;</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>
    </blockquote>
    <pre wrap="">
    </pre>
  </blockquote>
  <pre wrap=""><!---->


  </pre>
</blockquote>
<br>
</body>
</html>