[MapProxy] seed only a section from wmts server
Dwayne Dibbley
dwayne.dibbley at gmail.com
Fri May 21 04:49:48 PDT 2021
OK I have now gone for the keep it simple option, with this config:
services:
demo:
wms:
md:
title: OS 10k 1888
tms:
layers:
- name: osgb10k1888
title: OS 10k 1888
sources: [osgb10k1888_cache]
caches:
osgb10k1888_cache:
sources: [osgb10k1888_wmts]
grids: [GLOBAL_WEBMERCATOR]
sources:
osgb10k1888_wmts:
type: tile
grid: GLOBAL_WEBMERCATOR
url: https://nls-0.tileserver.com/fpsUZbxtgtkn/%(z)s/%(x)s/%(y)s.jpg
bbox: [-658581.4357,6442112.7439,-333876.9395,6676315.7985]
when i fire up the demo tms server it has all the correct levels and
resolutions:
LevelResolution
0 78271.51696402048
1 39135.75848201024
2 19567.87924100512
3 9783.93962050256
4 4891.96981025128
5 2445.98490512564
6 1222.99245256282
7 611.49622628141
8 305.748113140705
9 152.8740565703525
10 76.43702828517625
11 38.21851414258813
12 19.109257071294063
13 9.554628535647032
14 4.777314267823516
15 2.388657133911758
16 1.194328566955879
17 0.5971642834779395
18 0.29858214173896974
but the image seems to have the corners mixed up like a Battenberg cake:
[image: image.png]
Thanks
On Thu, 20 May 2021 at 12:54, Dwayne Dibbley <dwayne.dibbley at gmail.com>
wrote:
> Thanks for that Matt,
>
> how ever I now seem to have messed up the config when trying to add the
> grids res calculated from the tilematrix like this:
>
>
> grids:
> nls_grid:
> origin: nw
> srs: 'EPSG:3857'
> bbox: [-7.793077, 49.852539, 1.790425, 60.894042]
> bbox_srs: EPSG:4326
> res: [
> # res level scale @90.7 DPI
> 78271.5169640208, # 0 279541132.01436001
> 39135.7584820104, # 1 139770566.00718001
> 19567.8792410052, # 2 69885283.00359000
> 9783.9396205026, # 3 34942641.50179500
> 4891.9698102512, # 4 17471320.75089700
> 2445.9849051256, # 5 8735660.37544870
> 1222.9924525628, # 6 4367830.18772440
> 611.4962262814, # 7 2183915.09386220
> 305.7481131407, # 8 1091957.54693110
> 152.8740565704, # 9 545978.77346554
> 76.4370282852, # 10 272989.38673277
> 38.2185141426, # 11 136494.69336639
> 19.1092570713, # 12 68247.34668319
> 9.5546285356, # 13 34123.67334160
> 4.7773142678, # 14 17061.83667080
> 2.3886571339, # 15 8530.91833540
> 1.1943285670, # 16 4265.45916770
> 0.5971642835, # 17 2132.72958385
> ]
>
>
>
> But now when I launch the demo wms it reports could not get any sources, I
> added a tms service and that returns nls_grid not compatible with TMS
>
> Thanks
>
> On Wed, 19 May 2021 at 20:22, Matt Walker <walkermatt at longwayaround.org.uk>
> wrote:
>
>> Hi,
>>
>> The docs cover seeding only a given area by defining a coverage:
>> https://mapproxy.org/docs/nightly/seed.html#coverages
>>
>> Kind regards,
>>
>> Matt.
>>
>> On Wed, 19 May 2021, 12:02 Dwayne Dibbley, <dwayne.dibbley at gmail.com>
>> wrote:
>>
>>> I have a config to pull from this wtms server:
>>>
>>>
>>> https://wmts.maptiler.com/aHR0cHM6Ly9ubHMudGlsZXNlcnZlci5jb20vZnBzVVpieHRndGtuL2luZGV4Lmpzb24/wmts
>>>
>>> here the config:
>>>
>>> services:
>>> demo:
>>> wms:
>>> md:
>>> title: OS 10k 1888
>>> layers:
>>> - name: osgb10k1888
>>> title: OS 10k 1888
>>> sources: [osgb10k1888_cache]
>>> caches:
>>> osgb10k1888_cache:
>>> sources: [osgb10k1888_wmts]
>>> grids: [nls_grid]
>>> sources:
>>> osgb10k1888_wmts:
>>> type: tile
>>> grid: nls_grid
>>> url: https://nls-0.tileserver.com/fpsUZbxtgtkn/%(z)s/%(x)s/%(y)s.jpg
>>> grids:
>>> nls_grid:
>>> origin: nw
>>> srs: 'EPSG:4326'
>>> bbox: [-7.793077, 49.852539, 1.790425, 60.894042]
>>> bbox_srs: EPSG:4326
>>>
>>> How would I go about only seeding a small area instead of the complete
>>> area?
>>>
>>> Many Thanks
>>> _______________________________________________
>>> MapProxy mailing list
>>> MapProxy at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/mapproxy
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20210521/b8bf752b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 35784 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20210521/b8bf752b/attachment-0001.png>
More information about the MapProxy
mailing list