-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathqwc-ogc-service.json
284 lines (284 loc) · 8.85 KB
/
qwc-ogc-service.json
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/qwc-services/qwc-ogc-service/master/schemas/qwc-ogc-service.json",
"title": "QWC OGC Service",
"type": "object",
"properties": {
"$schema": {
"title": "JSON Schema",
"description": "Reference to JSON schema of this config",
"type": "string",
"format": "uri",
"default": "https://raw.githubusercontent.com/qwc-services/qwc-ogc-service/master/schemas/qwc-ogc-service.json"
},
"service": {
"title": "Service name",
"type": "string",
"const": "ogc"
},
"config": {
"title": "Config options",
"type": "object",
"properties": {
"default_qgis_server_url": {
"description": "Default base URL for WMS/WFS requests. Default: `http://localhost:8001/ows/`",
"type": "string"
},
"public_ogc_url_pattern": {
"description": "Regex pattern of the external OGC URL pattern, used to detect `EXTERNAL_WMS` URLs in print requests which point to the OGC server itself. Can use `$origin$`, `$tenant$` and `$mountpoint$` as variables. Default: `$origin$/.*/?$mountpoint$`",
"type": "string"
},
"basic_auth_login_url": {
"description": "Login verification URL for requests with basic auth. Example: `http://qwc-auth-service:9090/verify_login`. Default: `null`",
"type": "array",
"items": {
"type": "string"
}
},
"qgis_server_identity_parameter": {
"description": "Name of the active user parameter for the QGIS Server. Will be set to the name of the logged in user in qwc2.",
"type": "string"
},
"auth_required": {
"description": "Whether to enforce authentication before processing requests. Default: `false`",
"type": "boolean"
},
"public_paths": {
"description": "Optional: List of paths that will be accessible without a JWT identity, if `auth_required` is set. Default: `[]`",
"type": "array",
"items": {
"type": "string"
}
},
"marker_params": {
"description": "Optional: Marker parameter definitions",
"type": "object",
"properties": {
"default": {
"description": "Default value",
"type": "string"
},
"type": {
"description": "Parameter type (number, color, string)",
"type": "string"
}
}
}
}
},
"resources": {
"title": "Resources",
"type": "object",
"properties": {
"wms_services": {
"title": "WMS services",
"type": "array",
"items": {
"title": "WMS service",
"description": "WMS service with nested layers and group layers",
"type": "object",
"properties": {
"name": {
"description": "WMS service name",
"type": "string"
},
"wms_url": {
"description": "Custom WMS URL if different from `default_qgis_server_url`",
"type": "string"
},
"online_resources": {
"description": "Custom OnlineResources shown in GetCapabilities",
"type": "object",
"properties": {
"service": {
"description": "Default public base URL for OnlineResources",
"type": "string"
},
"feature_info": {
"description": "Public base URL for FeatureInfo OnlineResources",
"type": "string"
},
"legend": {
"description": "Public base URL for Legend OnlineResources",
"type": "string"
}
}
},
"root_layer": {
"description": "Root layer of WMS (layer or group layer)",
"oneOf": [
{"$ref": "#/definitions/wms_layer"},
{"$ref": "#/definitions/wms_group_layer"}
]
},
"print_url": {
"description": "Custom WMS URL for printing, e.g. if using a separate QGIS project.",
"type": "string"
},
"print_templates": {
"description": "Available print templates",
"type": "array",
"items": {
"type": "string"
}
},
"legend_default_font_size": {
"description": "Default font size for GetLegendGraphic request",
"type": "number"
},
"internal_print_layers": {
"description": "Internal layer names used for printing and raster export of background and external layers",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name",
"root_layer"
]
}
},
"wfs_services": {
"title": "WFS services",
"type": "array",
"items": {
"title": "WFS service",
"description": "WFS service with list of layers",
"type": "object",
"properties": {
"name": {
"description": "WFS service name",
"type": "string"
},
"wfs_url": {
"description": "Custom WFS URL if different from `default_qgis_server_url`",
"type": "string"
},
"online_resource": {
"description": "Custom OnlineResource shown in GetCapabilities",
"type": "string"
},
"layers": {
"description": "List of WFS layers",
"type": "array",
"items": {"$ref": "#/definitions/wfs_layer"}
}
},
"required": [
"name",
"layers"
]
}
}
}
}
},
"required": [
"service",
"config",
"resources"
],
"definitions": {
"wms_layer": {
"title": "WMS Layer",
"description": "Single layer",
"type": "object",
"properties": {
"name": {
"description": "WMS layer name",
"type": "string"
},
"type": {
"description": "Layer type",
"type": "string",
"const": "layer"
},
"title": {
"description": "Layer title",
"type": "string"
},
"attributes": {
"description": "Attributes for GetFeatureInfo",
"type": "array",
"items": {
"type": "string"
}
},
"queryable": {
"description": "Whether this layer is queryable",
"type": "boolean"
},
"opacity": {
"description": "Custom base opacity from 0-100 (Hidden sublayers only)",
"type": "integer"
}
},
"required": [
"name"
],
"additionalProperties": false
},
"wms_group_layer": {
"title": "WMS Group Layer",
"description": "Group layer with nested sublayers",
"type": "object",
"properties": {
"name": {
"description": "WMS group layer name",
"type": "string"
},
"type": {
"description": "Layer type",
"type": "string",
"const": "layergroup"
},
"title": {
"description": "Group title",
"type": "string"
},
"layers": {
"description": "Sublayers of this group layer (layers or group layers)",
"type": "array",
"items": {
"oneOf": [
{"$ref": "#/definitions/wms_layer"},
{"$ref": "#/definitions/wms_group_layer"}
]
}
},
"hide_sublayers": {
"description": "Hide sublayers of this group layer if set, to make the group layer look like a regular layer (Facade layer)",
"type": "boolean"
}
},
"required": [
"name",
"layers"
],
"additionalProperties": false
},
"wfs_layer": {
"title": "WFS Layer",
"description": "Single layer",
"type": "object",
"properties": {
"name": {
"description": "WFS layer name",
"type": "string"
},
"attributes": {
"description": "Attributes for GetFeature and DescribeFeatureType",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name"
]
}
}
}