[Tilecache] Tilecache request problem

cmose cjmose at gmail.com
Wed Jan 2 11:02:06 EST 2008


Does your open layers map declaration also have the same resolutions array
defined? If so, is that you show as an example request coming from an
overview map control? The overview map needs to be passed an options object
with mapOptions:{resolution:[]} where resolutions:[] is the same as what is
defined in your main  map. Other then a disconnect between your OL map
declaration/configuration and TileCache I'm not certain what else could
cause that (although I'm pretty sure there are other less obvious and subtle
issues that can contribute to such an error message).
cheers


Maria Panagou wrote:
> 
> My tilecache.cfg is this:
> 
> [cache]
> type=DiskCache
> base=/tmp/tilecache/
> 
> [layername]
> type=WMSLayer
> layers=Quakes
> size=256,256
> 
> [Quakes]
> type=WMSLayer
> url=http://127.0.0.1:80/cgi-bin/mapserv.exe?map=../htdocs/mpanagou/Quakes
> original.map
> extension=png
> srs=EPSG:4326
> bbox=20, 34.8, 28.4, 41.6
> resolutions=0.010986328125, 0.0054931640625, 0.00274658203125,
> 0.001373291015625, 0.0006866455078125, 0.00034332275390625,
> 0.000171661376953125, 8.58306884765625e-005, 4.291534423828125e-005,
> 2.1457672119140625e-005, 1.0728836059570313e-005, 5.3644180297851563e-006,
> 2.6822090148925781e-006, 1.3411045074462891e-006, 6.7055225372314453e-007,
> 3.3527612686157227e-007, 1.6763806343078613e-007, 8.3819031715393066e-008,
> 4.1909515857696533e-008, 2.0954757928848267e-008
> maxresolution=0.010986328125
> 
> I try following the readme procedure for Tilecache and visit the following
> url to test the service:
> 
> http://localhost/mpanagou/Tilecache-2.01/tilecache.cgi?LAYERS=Quakes&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=20,34.8,28.4,41.6&WIDTH=256&HEIGHT=256
> 
> By doing that I get the following error in IE (Firefox doesn't seem to be
> able to run the cgi-script at all, it just displays the contents of
> tilecache.cgi):
> 
> An error occurred: can't find resolution index for 0.032812. Available
> resolutions are: 
> [0.010986328125, 0.0054931640625, 0.00274658203125, 0.001373291015625,
> 0.0006866455078125, 0.00034332275390625, 0.000171661376953125,
> 8.58306884765625e-005, 4.291534423828125e-005, 2.1457672119140625e-005,
> 1.0728836059570313e-005, 5.3644180297851563e-006, 2.6822090148925781e-006,
> 1.3411045074462891e-006, 6.7055225372314453e-007, 3.3527612686157227e-007,
> 1.6763806343078613e-007, 8.3819031715393066e-008, 4.1909515857696533e-008,
> 2.0954757928848267e-008]
> 
> 
> Why do I get this message? I already declared in tilecache.cfg the
> available resolutions?
> 

-- 
View this message in context: http://www.nabble.com/Tilecache-request-problem-tp14579394p14580651.html
Sent from the TileCache mailing list archive at Nabble.com.




More information about the Tilecache mailing list