[OpenLayers-Users] tilecache config problem]

bwoodall bwoodall at wardrobe.dhs.org
Tue Jan 9 11:01:19 EST 2007


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:
> 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: http://localhost/tilecache/wms_cache.html
> [Sun Jan 07 16:43:33 2007] [error] [client 127.0.0.1]   warn("can't
> find resolution index for %f" % res), referer:
> http://localhost/tilecache/wms_cache.html
> 
> 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
> <bwoodall at wardrobe.dhs.org>
>                        Rispondi-a: 
> bwoodall at wardrobe.dhs.org
>                                 A: 
> Andrea Borruso <aborruso at tin.it>
>                         Referenze: 
> <459E3947.2020809 at tin.it>
> 
> 
> 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:
> > 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
> > 
> > I have inserted these lines in tilecache.cfg:
> > [acido]
> > type=WMSLayer
> > url=http://esempi.mapserver.it/cgi-bin/mapserv.exe?map=/Siti/mapserver/esempi/map109/config/progetto_109_wms.map&
> > 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
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> 
> 




More information about the Users mailing list