<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello everyone,<br>
<br>
I'm trying to convert my WMS layer to use tilecache in the backend and
I have stumbled over this problem which I can't solve yet:<br>
<br>
Here is my request:<br>
<a class="moz-txt-link-freetext" href="http://terra/cgi-bin/tilecache.cgi?MAP=%2Fvar%2Fwww%2Fhtml%2Fmap%2Frtc_base.map&TRANSPARENT=false&FORMAT=image%2Fpng2&MAP_IMAGETYPE=agg&TRANSITIONEFFECT=resize&LAYERS=rtc_base&MAXEXTENT=left-bottom%3D(20.26%2C43.16)%20right-top%3D(29.7%2C48.46)&MAXRESOLUTION=156543&UNITS=m&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-180,-90,180,270&WIDTH=256&HEIGHT=256">http://terra/cgi-bin/tilecache.cgi?MAP=%2Fvar%2Fwww%2Fhtml%2Fmap%2Frtc_base.map&amp;TRANSPARENT=false&amp;FORMAT=image%2Fpng2&amp;MAP_IMAGETYPE=agg&amp;TRANSITIONEFFECT=resize&amp;LAYERS=rtc_base&amp;MAXEXTENT=left-bottom%3D(20.26%2C43.16)%20right-top%3D(29.7%2C48.46)&amp;MAXRESOLUTION=156543&amp;UNITS=m&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG%3A900913&amp;BBOX=-180,-90,180,270&amp;WIDTH=256&amp;HEIGHT=256</a><br>
<br>
Here is the response of the server:<br>
<div selected="true" class="netInfoResponseText netInfoText">
<pre><code>An error occurred: can't find resolution index for 1.406250. Available resolutions are: 
</code><code>[156543.03390000001, 78271.516950000005, 39135.758475000002, 19567.879237500001, 9783.9396187500006,</code><code> 4891.9698093750003, 2445.9849046875001, 1222.9924523437501, 611.49622617187504, 305.74811308593752,</code><code> 152.87405654296876, 76.43702827148438, 38.21851413574219, 19.109257067871095, 9.5546285339355475, 4</code><code>.7773142669677737, 2.3886571334838869, 1.1943285667419434]
</code><code>
</code></pre>
</div>
I've read over the internet and it seems I need to set the same
'resolutions' array in OpenLayers and in TileCache. No problem. <br>
My question is: what is my "current" OpenLayers resolution? How can I
find it? <br>
<br>
Currently, my map has no special options set (about resolutions or zoom
levels).<br>
<br>
I've looked around the DOM, but the properties there only reflect what
I set up at the map/layer creation.<br>
<br>
Thanks.<br>
Adrian<br>
<br>
</body>
</html>