<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#ffffff">
<blockquote type="cite">
<pre>On 01.03.2012, at 18:58, Pasithee Jupiter wrote:
><i> Thanks for your fast reply.
</i>><i> I can now load the different layers but how do I find out the right values for 'max_res' and 'min_res' for EPSG:21781' on a OpenLayers WMS-Layer using singleTile?
</i>
There is a debug source that you can add to your layer's sources. It will print the requested resolution.
The scales tool is also helpful when playing with resolutions: <a href="http://mapproxy.org/docs/nightly/mapproxy_util.html#scales">http://mapproxy.org/docs/nightly/mapproxy_util.html#scales</a>
Regards,
Oliver
</pre>
</blockquote>
I was using a cache that, without any res configuration created
folders 16, 17, 18 and 19 which I relate to zoom levels.<br>
To follow your method, I used<br>
<tt> debug_source:<br>
type: debug</tt><br>
This painted the following first 2 numbers, roughly at the indicated
meters/JOSM scale (2.5 screen cm).<br>
I suggest you write them to standard output (instead or in
addition).<br>
I have absolutely no idea what calculation produces those numbers.<br>
I assumed they correspond to the former 19 and 18, I continued
multiplying by 2 and I got:<br>
19: 0.29858214: 4, 11, 22, <br>
18: 0.59716428: 63<br>
17: 1.19432856<br>
16: 2.38865712<br>
15: 4.77731424<br>
14: 9.55462848<br>
13: 19.10925696<br>
12: 38.21851392<br>
11: 76.43702784<br>
<br>
I chose to use:<br>
res: [76.43702784, 19.10925696, 4.77731424, 1.19432856, 0.29858214]<br>
<br>
Now I surprised to find directories 4 and 3 instead of 19 and 17.<br>
Why? It would have been simple.<br>
<br>
Q1: Can I do anything to get the same numbers as before (with gaps)?<br>
<br>
The problem is that I would like to reuse the formerly accumulated
tiles.<br>
directory 4 contains 269898 ... 270956 directory 19 contains
270248 ... 270648<br>
directory 3 contains 67719 ... 67737 directory 17 contains 67555
... 67587<br>
filenames inside matching directories look similar<br>
<br>
Q2: is what I've done supposed to produce exactly the same files as
before?<br>
That is, are files with same filename and directory
replaceable/mergeable?<br>
<br>
Q3: is merging the folders 19->4 & 17->3 what I have to
do?<br>
or, better if you tell me how to use 17 and 19, 4->19 &
3->17?<br>
<br>
Q4: is there a configuration that would only create files in (17
and) 19 but still use files in 18 if they exist,<br>
so that changing one's mind (and configuration, of course :-)) does
not void the accumulated data?<br>
<br>
Q5: is there anything to read on the Web that would help answering
not only Q1-Q4 but also Q6-Q∞? :-)<br>
<br>
Thanks and Best regards,<br>
<br>
<table>
<tbody>
<tr>
<td valign="top">André.</td>
</tr>
</tbody>
</table>
<br>
<br>
</body>
</html>