<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br><div>Hello,<br><div dir="ltr"><br>I`m still wondering how to do it, so some more information:<br>When I do <pre>mapproxy-util grids --grid grid4258 --mapproxy-conf mapproxy.yaml<br><br>I get:<br></pre> Levels: Resolutions, # x * y = total tiles<br> 00: 0.12448515433241368, # 1 * 1 = 1<br> 01: 0.06224257716620684, # 2 * 1 = 2<br> 02: 0.03112128858310342, # 4 * 2 = 8<br> 03: 0.01556064429155171, # 8 * 4 = 32<br> 04: 0.007780322145775855, # 16 * 8 = 128<br> 05: 0.0038901610728879275, # 32 * 16 = 512<br> 06: 0.0019450805364439638, # 64 * 32 = 2.048K<br> 07: 0.0009725402682219819, # 128 * 64 = 8.192K<br> 08: 0.00048627013411099094, # 256 * 128 = 32.768K<br> 09: 0.00024313506705549547, # 512 * 255 = 130.560K<br> 10: 0.00012156753352774773, # 1024 * 509 = 521.216K<br> 11: 6.078376676387387e-05, # 2048 * 1017 = 2.083M<br> 12: 3.0391883381936934e-05, # 4096 * 2033 = 8.327M<br> 13: 1.5195941690968467e-05, # 8192 * 4066 = 33.309M<br> 14: 7.5979708454842334e-06, # 16384 * 8132 = 133.235M<br> 15: 3.7989854227421167e-06, # 32768 * 16263 = 532.906M<br> 16: 1.8994927113710584e-06, # 65536 * 32525 = 2.132G<br> 17: 9.497463556855292e-07, # 131072 * 65049 = 8.526G<br> 18: 4.748731778427646e-07, # 262144 * 130097 = 34.104G<br> 19: 2.374365889213823e-07, # 524288 * 260193 = 136.416G<br><br>And for the scale:<br><br>res: [<br> # res level scale @90.7 DPI<br> 8.4000000000, # 0 30000.00000000<br> 5.6000000000, # 1 20000.00000000<br> ]<br>As a grid I defined in my mapproxy.yaml:<br><br>grids:<br> hungary_4258:<br> srs: 'EPSG:4258'<br> bbox: [15.996,45.652,22.939,48.647]<br> bbox_srs: 'EPSG:4326'<br> res: [<br> # res level scale @90.7 DPI<br> 8.4000000000, # 0 30000.00000000<br> 5.6000000000, # 1 20000.00000000<br> ]<br><br>My seed.yaml:<br><br>seeds:<br> seedjob:<br> caches: [hungary_cache]<br> grids: [epsg4258]<br> coverages: [hungary]<br> levels:<br> to: 19<br><br>coverages:<br> hungary:<br> bbox: [15.996,45.652,22.939,48.647]<br> bbox_srs: "EPSG:4326"<br><br>I don`t get the link between scale and level.From where do I know which level is which scale? Which level would be 1:20 000? <br>Do you need more information to help me?<br>Thanks for your fast reply.<br><br>Greetings,<br><br>Andras<br><br><div>> Subject: Re: [MapProxy] Seeding in a certain scale<br>> From: olt@omniscale.de<br>> Date: Tue, 6 Aug 2013 17:15:49 +0200<br>> CC: mapproxy@lists.osgeo.org<br>> To: andras.szekeres@hotmail.com<br>> <br>> Hi,<br>> <br>> On 06.08.2013, at 16:37, Andras Szekeres wrote:<br>> > I`m quite new to MapProxy and do some tests right now. My database is Openstreetmap data in EPSG:900913. Would it be possible to seed a layer in a certain scale like 1:20 000 and 1: 30 000 in EPSG: 4258?<br>> <br>> Yes that's possible. You can seed single levels with `layers: [3, 7, 9]` in your seed configuration.<br>> <br>> > <br>> > When I use the mapproxy-util to calculate the res and add that to my mapproxy.yaml I only get distorted images:<br>> > <br>> > res: [<br>> > # res level scale @90.7 DPI<br>> > 8.4000000000, # 0 30000.00000000<br>> > 5.6000000000, # 1 20000.00000000<br>> > ]<br>> <br>> You should always use a complete grid where level 0 consists of one tile, level n your highest resolution and the difference between two level resolutions should not be larger than 2.<br>> <br>> > What am I doing wrong?<br>> <br>> Please provide a bit more information, if my answer is not enough. See http://mapproxy.org/support.html#how-to-ask-for-help<br>> <br>> <br>> Regards,<br>> Oliver<br>> <br>> -- <br>> Oliver Tonnhofer | Omniscale GmbH & Co KG | http://omniscale.com<br>> http://mapproxy.org | https://github.com/olt | @oltonn<br>> <br>> <br>> <br>> <br>> <br>> <br>> <br></div> </div></div> </div></body>
</html>