[MapProxy] zoom levels and resolution
André Pirard
A_Pirard at hotmail.com
Sun Sep 30 20:49:45 PDT 2012
> On 01.03.2012, at 18:58, Pasithee Jupiter wrote:
> >/ Thanks for your fast reply.
> />/ 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?
> /
> 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:http://mapproxy.org/docs/nightly/mapproxy_util.html#scales
>
> Regards,
> Oliver
I was using a cache that, without any res configuration created folders
16, 17, 18 and 19 which I relate to zoom levels.
To follow your method, I used
debug_source:
type: debug
This painted the following first 2 numbers, roughly at the indicated
meters/JOSM scale (2.5 screen cm).
I suggest you write them to standard output (instead or in addition).
I have absolutely no idea what calculation produces those numbers.
I assumed they correspond to the former 19 and 18, I continued
multiplying by 2 and I got:
19: 0.29858214: 4, 11, 22,
18: 0.59716428: 63
17: 1.19432856
16: 2.38865712
15: 4.77731424
14: 9.55462848
13: 19.10925696
12: 38.21851392
11: 76.43702784
I chose to use:
res: [76.43702784, 19.10925696, 4.77731424, 1.19432856, 0.29858214]
Now I surprised to find directories 4 and 3 instead of 19 and 17.
Why? It would have been simple.
Q1: Can I do anything to get the same numbers as before (with gaps)?
The problem is that I would like to reuse the formerly accumulated tiles.
directory 4 contains 269898 ... 270956 directory 19 contains 270248
... 270648
directory 3 contains 67719 ... 67737 directory 17 contains 67555 ... 67587
filenames inside matching directories look similar
Q2: is what I've done supposed to produce exactly the same files as before?
That is, are files with same filename and directory replaceable/mergeable?
Q3: is merging the folders 19->4 & 17->3 what I have to do?
or, better if you tell me how to use 17 and 19, 4->19 & 3->17?
Q4: is there a configuration that would only create files in (17 and) 19
but still use files in 18 if they exist,
so that changing one's mind (and configuration, of course :-)) does not
void the accumulated data?
Q5: is there anything to read on the Web that would help answering not
only Q1-Q4 but also Q6-Q∞? :-)
Thanks and Best regards,
André.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20121001/0f4f852b/attachment.html>
More information about the MapProxy
mailing list