[MapProxy] MapProxy Seeding in a certain scale
Andras Szekeres
andras.szekeres at hotmail.com
Tue Aug 6 09:08:34 PDT 2013
Hello,
I`m still wondering how to do it, so some more information:
When I do mapproxy-util grids --grid grid4258 --mapproxy-conf mapproxy.yaml
I get:
Levels: Resolutions, # x * y = total tiles
00: 0.12448515433241368, # 1 * 1 = 1
01: 0.06224257716620684, # 2 * 1 = 2
02: 0.03112128858310342, # 4 * 2 = 8
03: 0.01556064429155171, # 8 * 4 = 32
04: 0.007780322145775855, # 16 * 8 = 128
05: 0.0038901610728879275, # 32 * 16 = 512
06: 0.0019450805364439638, # 64 * 32 = 2.048K
07: 0.0009725402682219819, # 128 * 64 = 8.192K
08: 0.00048627013411099094, # 256 * 128 = 32.768K
09: 0.00024313506705549547, # 512 * 255 = 130.560K
10: 0.00012156753352774773, # 1024 * 509 = 521.216K
11: 6.078376676387387e-05, # 2048 * 1017 = 2.083M
12: 3.0391883381936934e-05, # 4096 * 2033 = 8.327M
13: 1.5195941690968467e-05, # 8192 * 4066 = 33.309M
14: 7.5979708454842334e-06, # 16384 * 8132 = 133.235M
15: 3.7989854227421167e-06, # 32768 * 16263 = 532.906M
16: 1.8994927113710584e-06, # 65536 * 32525 = 2.132G
17: 9.497463556855292e-07, # 131072 * 65049 = 8.526G
18: 4.748731778427646e-07, # 262144 * 130097 = 34.104G
19: 2.374365889213823e-07, # 524288 * 260193 = 136.416G
And for the scale:
res: [
# res level scale @90.7 DPI
8.4000000000, # 0 30000.00000000
5.6000000000, # 1 20000.00000000
]
As a grid I defined in my mapproxy.yaml:
grids:
hungary_4258:
srs: 'EPSG:4258'
bbox: [15.996,45.652,22.939,48.647]
bbox_srs: 'EPSG:4326'
res: [
# res level scale @90.7 DPI
8.4000000000, # 0 30000.00000000
5.6000000000, # 1 20000.00000000
]
My seed.yaml:
seeds:
seedjob:
caches: [hungary_cache]
grids: [epsg4258]
coverages: [hungary]
levels:
to: 19
coverages:
hungary:
bbox: [15.996,45.652,22.939,48.647]
bbox_srs: "EPSG:4326"
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?
Do you need more information to help me?
Thanks for your fast reply.
Greetings,
Andras
> Subject: Re: [MapProxy] Seeding in a certain scale
> From: olt at omniscale.de
> Date: Tue, 6 Aug 2013 17:15:49 +0200
> CC: mapproxy at lists.osgeo.org
> To: andras.szekeres at hotmail.com
>
> Hi,
>
> On 06.08.2013, at 16:37, Andras Szekeres wrote:
> > 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?
>
> Yes that's possible. You can seed single levels with `layers: [3, 7, 9]` in your seed configuration.
>
> >
> > When I use the mapproxy-util to calculate the res and add that to my mapproxy.yaml I only get distorted images:
> >
> > res: [
> > # res level scale @90.7 DPI
> > 8.4000000000, # 0 30000.00000000
> > 5.6000000000, # 1 20000.00000000
> > ]
>
> 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.
>
> > What am I doing wrong?
>
> Please provide a bit more information, if my answer is not enough. See http://mapproxy.org/support.html#how-to-ask-for-help
>
>
> Regards,
> Oliver
>
> --
> Oliver Tonnhofer | Omniscale GmbH & Co KG | http://omniscale.com
> http://mapproxy.org | https://github.com/olt | @oltonn
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20130806/0e52281c/attachment.html>
More information about the MapProxy
mailing list