-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathqwc-legend-service.json
160 lines (160 loc) · 4.67 KB
/
qwc-legend-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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/qwc-services/qwc-legend-service/v2/schemas/qwc-legend-service.json",
"title": "QWC Legend 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-legend-service/v2/schemas/qwc-legend-service.json"
},
"service": {
"title": "Service name",
"type": "string",
"const": "legend"
},
"config": {
"title": "Config options",
"type": "object",
"properties": {
"default_qgis_server_url": {
"description": "Default base URL for forwarding WMS GetLegendGraphics requests. Default: `http://localhost:8001/ows/`",
"type": "string"
},
"legend_default_font_size": {
"description": "Default font size for GetLegendGraphic request. Default: `null`",
"type": "number"
},
"legend_images_path": {
"description": "Path to legend images (required if using `legend_image`). Default: `/legends/`",
"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"
}
}
},
"required": [
"default_qgis_server_url"
]
},
"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"
},
"root_layer": {
"description": "Root layer of WMS (layer or group layer)",
"oneOf": [
{"$ref": "#/definitions/layer"},
{"$ref": "#/definitions/group_layer"}
]
}
},
"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"
},
"legend_image": {
"description": "Legend image path relative to 'legend_images_path'",
"type": "string"
},
"legend_image_base64": {
"description": "Legend image in Base64 encoding",
"type": "string",
"contentEncoding": "base64"
}
},
"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"
},
"layers": {
"description": "Sublayers of this group layer (layers or group layers)",
"type": "array",
"items": {
"oneOf": [
{"$ref": "#/definitions/layer"},
{"$ref": "#/definitions/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"
},
"legend_image": {
"description": "Legend image path relative to 'legend_images_path' (only if hide_sublayers is set)",
"type": "string"
},
"legend_image_base64": {
"description": "Legend image in Base64 encoding (only if hide_sublayers is set)",
"type": "string",
"contentEncoding": "base64"
}
},
"required": [
"name",
"layers"
],
"additionalProperties": false
}
}
}