-
Notifications
You must be signed in to change notification settings - Fork 13
/
config.yaml
173 lines (161 loc) · 4.63 KB
/
config.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
grids:
# grid name, I just recommends to add the min resolution because it's common to not generate all the layers at the same resolution.
swissgrid_05:
# resolutions [required]
resolutions: [1000, 500, 250, 100, 50, 20, 10, 5, 2, 1, 0.5]
# bbox [required]
bbox: [420000, 30000, 900000, 350000]
# srs [required]
srs: EPSG:21781
caches:
local:
type: filesystem
folder: /var/sig/tiles
# for GetCapabilities
http_url: https://%(host)s/tiles/
hosts:
- wmts0.example.com
- wmts1.example.com
- wmts2.example.com
- wmts3.example.com
- wmts4.example.com
s3:
type: s3
bucket: tiles
folder: ''
# for GetCapabilities
http_url: https://%(host)s/%(bucket)s/%(folder)s/
cache_control: 'public, max-age=14400'
hosts:
- wmts0.<host>
# this defines some defaults values for all the layers
defaults:
layer: &layer
type: wms
grid: swissgrid_05
# The minimum resolution to seed, useful to use with mapcache, optional.
# min_resolution_seed: 1
# the URL of the WMS server to used
url: http://mapserver/
# Set the headers to get the right virtual host, and don't get any cached result
headers:
Cache-Control: no-cache, no-store
Pragma: no-cache
# file name extension
extension: png
# the bbox there we want to generate tiles
#bbox: [493000, 114000, 586000, 204000]
# mime type used for the WMS request and the WMTS capabilities generation
mime_type: image/png
wmts_style: default
# the WMTS dimensions definition [default is []]
#dimensions:
# - name: DATE
# # the default value for the WMTS capabilities
# default: '2012'
# # the generated values
# generate: ['2012']
# # all the available values in the WMTS capabilities
# values: ['2012']
# the meta tiles definition [default is off]
meta: true
# the meta tiles size [default is 8]
meta_size: 8
# the meta tiles buffer [default is 128]
meta_buffer: 128
# connection an sql to get geometries (in column named geom) where we want to generate tiles
# Warn: too complex result can slow down the application
# connection: user=www-data password=www-data dbname=<db> host=localhost
# geoms:
# - sql: <column> AS geom FROM <table>
# size and hash used to detect empty tiles and metatiles [optional, default is None]
empty_metatile_detection:
size: 740
hash: 3237839c217b51b8a9644d596982f342f8041546
empty_tile_detection:
size: 921
hash: 1e3da153be87a493c4c71198366485f290cad43c
layers:
plan:
<<: *layer
layers: plan
ortho:
<<: *layer
layers: ortho
extension: jpeg
mime_type: image/jpeg
# no buffer needed on rater sources
meta_buffer: 0
empty_metatile_detection:
size: 66163
hash: a9d16a1794586ef92129a2fb41a739451ed09914
empty_tile_detection:
size: 1651
hash: 2892fea0a474228f5d66a534b0b5231d923696da
generation:
default_cache: local
# used to allowed only a specific user to generate tiles (for rights issue)
authorised_user: www-data
# maximum allowed consecutive errors, after it exit [default is 10]
maxconsecutive_errors: 10
process:
optipng_test:
- cmd: optipng -o7 -simulate %(in)s
optipng:
- cmd: optipng %(args)s -zc9 -zm8 -zs3 -f5 %(in)s
arg:
default: '-q'
quiet: '-q'
jpegoptim:
- cmd: jpegoptim %(args)s --strip-all --all-normal -m 90 %(in)s
arg:
default: '-q'
quiet: '-q'
openlayers:
# srs, center_x, center_y [required]
srs: EPSG:21781
center_x: 600000
center_y: 200000
metadata:
title: Some title
abstract: Some abstract
servicetype: OGC WMTS
keywords:
- some
- keywords
fees: None
access_constraints: None
provider:
name: The provider name
url: The provider URL
contact:
name: The contact name
position: The position name
info:
phone:
voice: +41 11 222 33 44
fax: +41 11 222 33 44
address:
delivery: Address delivery
city: Berne
area: BE
postal_code: 3000
country: Switzerland
email: info@example.com
redis:
socket_timeout: 30
sentinels:
- - redis_sentinel
- 26379
service_name: mymaster
db: 1
server:
predefined_commands:
- name: Generation all layers
command: generate-tiles
- name: Generation layer plan
command: generate-tiles --layer=plan
- name: Generation layer ortho
command: generate-tiles --layer=ortho
- name: Generate the legend images
command: generate-controller --generate-legend-images