-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathqwc-feature-info-service.json
353 lines (353 loc) · 10.4 KB
/
qwc-feature-info-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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/qwc-services/qwc-feature-info-service/master/schemas/qwc-feature-info-service.json",
"title": "QWC FeatureInfo 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-feature-info-service/master/schemas/qwc-feature-info-service.json"
},
"service": {
"title": "Service name",
"type": "string",
"const": "feature-info"
},
"config": {
"title": "Config options",
"type": "object",
"properties": {
"default_info_template": {
"description": "Default HTML info template. Default: `null`",
"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"
}
},
"default_info_template_path": {
"description": "Default HTML info template path. Default: `null`",
"type": "string"
},
"default_info_template_base64": {
"description": "Default HTML info template in Base64 encoding. Default: `null`",
"type": "string",
"contentEncoding": "base64"
},
"default_qgis_server_url": {
"description": "Default URL for WMS GetFeatureInfo queries. Default: `http://localhost:8001/ows/`",
"type": "string"
},
"data_service_url": {
"description": "Data service URL (external) for constructing attachment urls. Default: `/api/v1/data/`",
"type": "string"
},
"transform_image_urls": {
"description": "Whether to transform image URLs to inline images. Default: `true`",
"type": "boolean"
},
"skip_empty_attributes": {
"description": "Whether to skip empty feature attributes in WMS GetFeatureInfo responses. Default: `false`",
"type": "boolean"
},
"use_permission_attribute_order": {
"description": " Whether to order the attributes according to order of the permitted attribute names in WMS GetFeatureInfo responses, rather than the order returned by WMS GetFeatureInfo. Default: `false`",
"type": "boolean"
}
}
},
"resources": {
"title": "Resources",
"type": "object",
"properties": {
"wms_services": {
"title": "WMS service",
"type": "array",
"items": {
"title": "WMS",
"description": "WMS service with nested layers and group layers",
"type": "object",
"properties": {
"name": {
"description": "WMS service name",
"type": "string"
},
"root_layer": {
"description": "Root layer of WMS (layer or group layer)",
"oneOf": [
{"$ref": "#/definitions/layer"},
{"$ref": "#/definitions/group_layer"},
{"type": "null"}
]
}
},
"required": [
"name",
"root_layer"
]
}
}
}
}
},
"required": [
"service",
"config",
"resources"
],
"definitions": {
"layer": {
"title": "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": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"description": "Attribute name",
"type": "string"
},
"alias": {
"type": "string"
},
"format": {
"description": "Formatting expression for converting attribute values",
"type": "string"
},
"format_base64": {
"description": "Formatting expression for converting attribute values, in Base64 encoding",
"type": "string",
"contentEncoding": "base64"
},
"json_attribute_aliases": {
"title": "JSON attribute aliases",
"description": "Aliases for attributes in JSON values of type list",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"description": "Attribute name in JSON value",
"type": "string"
},
"alias": {
"description": "Alias for attribute in JSON value",
"type": "string"
}
},
"required": [
"name",
"alias"
]
}
}
},
"required": [
"name"
]
}
},
"info_template": {
"title": "Info template",
"oneOf": [
{"$ref": "#/definitions/wms_info_template"},
{"$ref": "#/definitions/sql_info_template"},
{"$ref": "#/definitions/module_info_template"}
]
},
"display_field": {
"title": "Display field",
"description": "Show value of this attribute in feature result header",
"type": "string"
},
"feature_report": {
"title": "Feature report",
"description": "Name of corresponding feature report",
"type": "string"
}
},
"required": [
"name"
],
"additionalProperties": false
},
"group_layer": {
"title": "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/layer"},
{"$ref": "#/definitions/group_layer"}
]
}
},
"hide_sublayers": {
"title": "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
},
"wms_info_template": {
"description": "Info template for WMS GetFeatureInfo",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "wms"
},
"wms_url": {
"description": "Custom WMS URL if different from `default_qgis_server_url`",
"type": "string"
},
"template": {
"description": "HTML template for info result",
"type": "string"
},
"template_path": {
"description": "Path to HTML template for info result",
"type": "string"
},
"template_base64": {
"description": "HTML template for info result, in Base64 encoding",
"type": "string",
"contentEncoding": "base64"
}
},
"required": [
"type"
],
"additionalProperties": false
},
"sql_info_template": {
"description": "Info template for DB Query",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "sql"
},
"db_url": {
"description": "Database connection string",
"type": "string"
},
"sql": {
"description": "Query SQL",
"type": "string"
},
"sql_base64": {
"description": "Query SQL in Base64 encoding",
"type": "string",
"contentEncoding": "base64"
},
"template": {
"description": "HTML template for info result",
"type": "string"
},
"template_path": {
"description": "Path to HTML template for info result",
"type": "string"
},
"template_base64": {
"description": "HTML template for info result, in Base64 encoding",
"type": "string",
"contentEncoding": "base64"
}
},
"oneOf": [
{
"required": [
"type",
"db_url",
"sql"
]
},
{
"required": [
"type",
"db_url",
"sql_base64"
]
}
],
"additionalProperties": false
},
"module_info_template": {
"description": "Info template using WMS GetFeatureInfo",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "module"
},
"module": {
"description": "Custom info module name",
"type": "string"
},
"template": {
"description": "HTML template for info result",
"type": "string"
},
"template_path": {
"description": "Path to HTML template for info result.",
"type": "string"
},
"template_base64": {
"description": "HTML template for info result, in Base64 encoding",
"type": "string",
"contentEncoding": "base64"
}
},
"required": [
"type",
"module"
],
"additionalProperties": false
}
}
}