forked from justb4/docker-mapproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmapproxy.yaml
116 lines (105 loc) · 2.99 KB
/
mapproxy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# More standard MapProxy configuration showing:
#
# - GeoPackage as tile cache
# - custom grid (using Dutch standard tiling grid)
# - multiple tilegrids/caches
services:
demo:
tms:
use_grid_names: false
# origin for /tiles service
origin: 'nw'
kml:
use_grid_names: true
wmts:
wms:
md:
title: MapProxy WMS Proxy
abstract: This is a minimal MapProxy example.
layers:
- name: osm
title: Omniscale OSM WMS - osm.omniscale.net
sources: [osm_cache]
- name: dutch_aerial
title: Dutch public aerial Map - by Dutch Kadaster-PDOK - RGB 7.5cm resolution - latest
sources: [dutch_aerial_cache]
caches:
osm_cache:
grids: [webmercator]
sources: [osm_wms]
dutch_aerial_cache:
# Store res 0-12 (RD) and 0-17 (merc, 18 levels)
grids: [dutch_tile_grid, webmercator, mercator]
sources: [dutch_aerial_wms]
format: image/jpeg
meta_buffer: 0
meta_size: [4,4]
use_direct_from_res: 0.30
cache:
type: geopackage
filename: gpkg/openlufo.gpkg
levels: false
sources:
osm_wms:
type: wms
req:
url: https://maps.omniscale.net/v2/demo/style.default/service?
layers: osm
dutch_aerial_wms:
type: wms
req:
url: https://service.pdok.nl/hwh/luchtfotorgb/wms/v1_0?
layers: Actueel_orthoHR
format: image/jpeg
transparent: false
coverage:
# Extent of 37.5 px/km map
bbox: [-285401.92,22598.08,595401.92,903401.92]
srs: 'EPSG:28992'
supported_srs: ['EPSG:28992', 'EPSG:4326', 'EPSG:3857']
grids:
webmercator:
base: GLOBAL_WEBMERCATOR
dutch_tile_grid:
tile_size: [256, 256]
srs: 'EPSG:28992'
bbox: [-285401.920, 22598.080, 595401.920, 903401.920]
bbox_srs: 'EPSG:28992'
# 17 levels 0-16
res: [3440.64, 1720.32, 860.16, 430.08, 215.04, 107.52, 53.76, 26.88, 13.44, 6.72, 3.36, 1.68, 0.84, 0.42, 0.21, 0.105, 0.0525]
mercator:
base: GLOBAL_MERCATOR
tile_size: [256, 256]
srs: 'EPSG:900913'
# zoom 0-23
# See https://gist.github.com/gagan-bansal/db6fb206f61b38f2f1c3
res: [156543.03392804097,
78271.51696402048,
39135.75848201024,
19567.87924100512,
9783.93962050256,
4891.96981025128,
2445.98490512564,
1222.99245256282,
611.49622628141,
305.748113140705,
152.8740565703525,
76.43702828517625,
38.21851414258813,
19.109257071294063,
9.554628535647032,
4.777314267823516,
2.388657133911758,
1.194328566955879,
0.5971642834779395,
0.29858214173896974,
0.14929107086948487,
0.07464553543474244,
0.03732276771737122,
0.01866138385868561]
globals:
cache:
# where to store the cached images
base_dir: '/mapproxy_cache'
# where to store lockfiles
lock_dir: '/mapproxy_cache/locks'