@jupytergis/schema 0.15.0 → 0.16.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_interface/forms.json +7816 -555
- package/lib/_interface/processing/clipRasterByExtent.d.ts +39 -0
- package/lib/_interface/processing/clipRasterByVector.d.ts +32 -0
- package/lib/_interface/processing/clipVectorByMaskLayer.d.ts +28 -0
- package/lib/_interface/processing/rasterize.d.ts +42 -0
- package/lib/_interface/project/jgis.d.ts +20 -5
- package/lib/_interface/project/layers/geoTiffLayer.d.ts +351 -0
- package/lib/_interface/project/layers/{heatmapLayer.d.ts → openeoTileLayer.d.ts} +2 -19
- package/lib/_interface/project/layers/storySegmentLayer.d.ts +6 -0
- package/lib/_interface/project/layers/vectorLayer.d.ts +599 -5
- package/lib/_interface/project/layers/vectorTileLayer.d.ts +566 -2
- package/lib/_interface/project/sources/geoJsonSource.d.ts +8 -0
- package/lib/_interface/project/sources/geoPackageRasterSource.d.ts +36 -0
- package/lib/_interface/project/sources/geoPackageVectorSource.d.ts +28 -0
- package/lib/_interface/project/sources/geoParquetSource.d.ts +8 -0
- package/lib/_interface/project/sources/geoTiffSource.d.ts +8 -0
- package/lib/_interface/project/sources/imageSource.d.ts +8 -0
- package/lib/_interface/project/sources/openeoTileSource.d.ts +26 -0
- package/lib/_interface/project/sources/rasterDemSource.d.ts +8 -0
- package/lib/_interface/project/sources/rasterSource.d.ts +8 -0
- package/lib/_interface/project/sources/shapefileSource.d.ts +8 -0
- package/lib/_interface/project/sources/vectorTileSource.d.ts +8 -0
- package/lib/_interface/project/sources/videoSource.d.ts +8 -0
- package/lib/_interface/project/sources/wmsTileSource.d.ts +8 -0
- package/lib/_interface/project/symbology.d.ts +305 -0
- package/lib/_interface/version.d.ts +1 -1
- package/lib/_interface/version.js +1 -1
- package/lib/doc.d.ts +9 -3
- package/lib/doc.js +47 -4
- package/lib/grammar/grammarConversions.d.ts +50 -0
- package/lib/grammar/grammarConversions.js +137 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +2 -0
- package/lib/interfaces.d.ts +88 -20
- package/lib/interfaces.js +10 -1
- package/lib/migrations/index.d.ts +16 -0
- package/lib/migrations/index.js +52 -0
- package/lib/migrations/v0_5_to_v0_6.d.ts +11 -0
- package/lib/migrations/v0_5_to_v0_6.js +154 -0
- package/lib/model.d.ts +49 -13
- package/lib/model.js +212 -21
- package/lib/processing/ProcessingMerge.d.ts +4 -0
- package/lib/processing/ProcessingMerge.js +4 -0
- package/lib/processing/_generated/exportProcessingSchema.d.ts +8 -4
- package/lib/processing/_generated/exportProcessingSchema.js +8 -4
- package/lib/processing/_generated/processingType.d.ts +1 -1
- package/lib/processing/_generated/processingType.js +8 -4
- package/lib/processing/_generated/processing_merge.json +84 -29
- package/lib/schema/processing/clipRasterByExtent.json +39 -0
- package/lib/schema/processing/clipRasterByVector.json +33 -0
- package/lib/schema/processing/clipVectorByMaskLayer.json +27 -0
- package/lib/schema/processing/rasterize.json +45 -0
- package/lib/schema/project/jgis.json +34 -6
- package/lib/schema/project/layers/{webGlLayer.json → geoTiffLayer.json} +9 -3
- package/lib/schema/project/layers/openeoTileLayer.json +21 -0
- package/lib/schema/project/layers/storySegmentLayer.json +14 -3
- package/lib/schema/project/layers/vectorLayer.json +73 -14
- package/lib/schema/project/layers/vectorTileLayer.json +14 -10
- package/lib/schema/project/sources/geoJsonSource.json +13 -0
- package/lib/schema/project/sources/geoPackageRasterSource.json +45 -0
- package/lib/schema/project/sources/geoPackageVectorSource.json +29 -0
- package/lib/schema/project/sources/geoParquetSource.json +13 -0
- package/lib/schema/project/sources/geoTiffSource.json +13 -0
- package/lib/schema/project/sources/imageSource.json +13 -0
- package/lib/schema/project/sources/openeoTileSource.json +23 -0
- package/lib/schema/project/sources/rasterDemSource.json +13 -0
- package/lib/schema/project/sources/rasterSource.json +13 -0
- package/lib/schema/project/sources/shapefileSource.json +13 -0
- package/lib/schema/project/sources/vectorTileSource.json +13 -0
- package/lib/schema/project/sources/videoSource.json +13 -0
- package/lib/schema/project/sources/wmsTileSource.json +13 -0
- package/lib/schema/project/symbology.json +418 -0
- package/lib/types.d.ts +15 -2
- package/lib/types.js +7 -2
- package/package.json +2 -1
- package/lib/_interface/project/layers/webGlLayer.d.ts +0 -39
- package/lib/schema/project/layers/heatmapLayer.json +0 -54
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"description": "SymbologyState",
|
|
4
|
+
"title": "ISymbologyState",
|
|
5
|
+
"definitions": {
|
|
6
|
+
"RGBA": {
|
|
7
|
+
"type": "array",
|
|
8
|
+
"description": "[R 0-255, G 0-255, B 0-255, A 0-1]",
|
|
9
|
+
"items": { "type": "number" },
|
|
10
|
+
"minItems": 4,
|
|
11
|
+
"maxItems": 4
|
|
12
|
+
},
|
|
13
|
+
"ClassificationMode": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": ["equal interval", "quantile", "jenks", "pretty", "logarithmic"]
|
|
16
|
+
},
|
|
17
|
+
"RGBAChannel": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"fill-color",
|
|
21
|
+
"stroke-color",
|
|
22
|
+
"circle-fill-color",
|
|
23
|
+
"circle-stroke-color",
|
|
24
|
+
"pixel-color"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"UInt8Channel": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": [
|
|
30
|
+
"fill-red",
|
|
31
|
+
"fill-green",
|
|
32
|
+
"fill-blue",
|
|
33
|
+
"pixel-red",
|
|
34
|
+
"pixel-green",
|
|
35
|
+
"pixel-blue"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"UNormChannel": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": ["fill-alpha", "pixel-alpha"]
|
|
41
|
+
},
|
|
42
|
+
"VirtualChannel": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"enum": ["pixel-rgb"]
|
|
45
|
+
},
|
|
46
|
+
"PosFloatChannel": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": ["stroke-width", "circle-radius", "circle-stroke-width"]
|
|
49
|
+
},
|
|
50
|
+
"StyleChannel": {
|
|
51
|
+
"anyOf": [
|
|
52
|
+
{ "$ref": "#/definitions/RGBAChannel" },
|
|
53
|
+
{ "$ref": "#/definitions/UInt8Channel" },
|
|
54
|
+
{ "$ref": "#/definitions/UNormChannel" },
|
|
55
|
+
{ "$ref": "#/definitions/VirtualChannel" },
|
|
56
|
+
{ "$ref": "#/definitions/PosFloatChannel" }
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"ICompareOp": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"enum": [">", "<", ">=", "<=", "!="]
|
|
62
|
+
},
|
|
63
|
+
"IPredicate": {
|
|
64
|
+
"oneOf": [
|
|
65
|
+
{
|
|
66
|
+
"type": "object",
|
|
67
|
+
"description": "Filter by geometry type.",
|
|
68
|
+
"required": ["type", "value"],
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"properties": {
|
|
71
|
+
"type": { "type": "string", "enum": ["geometryType"] },
|
|
72
|
+
"value": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"enum": ["Point", "LineString", "Polygon"]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "object",
|
|
80
|
+
"description": "Filter by presence of a field.",
|
|
81
|
+
"required": ["type", "field"],
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"properties": {
|
|
84
|
+
"type": { "type": "string", "enum": ["hasField"] },
|
|
85
|
+
"field": { "type": "string" }
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"type": "object",
|
|
90
|
+
"description": "Filter by exact field value (string or number).",
|
|
91
|
+
"required": ["type", "field", "value"],
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"properties": {
|
|
94
|
+
"type": { "type": "string", "enum": ["fieldEquals"] },
|
|
95
|
+
"field": { "type": "string" },
|
|
96
|
+
"value": { "oneOf": [{ "type": "string" }, { "type": "number" }] }
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "object",
|
|
101
|
+
"description": "Filter by numeric field comparison.",
|
|
102
|
+
"required": ["type", "field", "op", "value"],
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"properties": {
|
|
105
|
+
"type": { "type": "string", "enum": ["fieldCompare"] },
|
|
106
|
+
"field": { "type": "string" },
|
|
107
|
+
"op": { "$ref": "#/definitions/ICompareOp" },
|
|
108
|
+
"value": { "type": "number" }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "object",
|
|
113
|
+
"description": "Filter by numeric field range (inclusive).",
|
|
114
|
+
"required": ["type", "field", "min", "max"],
|
|
115
|
+
"additionalProperties": false,
|
|
116
|
+
"properties": {
|
|
117
|
+
"type": { "type": "string", "enum": ["between"] },
|
|
118
|
+
"field": { "type": "string" },
|
|
119
|
+
"min": { "type": "number" },
|
|
120
|
+
"max": { "type": "number" }
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"IKDETransform": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"description": "KDE heatmap transform. Density output addressed as '$density'.",
|
|
128
|
+
"required": ["type", "radius", "blur"],
|
|
129
|
+
"additionalProperties": false,
|
|
130
|
+
"properties": {
|
|
131
|
+
"type": { "type": "string", "enum": ["kde"] },
|
|
132
|
+
"radius": { "type": "number", "minimum": 1 },
|
|
133
|
+
"blur": { "type": "number", "minimum": 0 },
|
|
134
|
+
"weightField": { "type": "string" }
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"IClusterTransform": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"description": "Cluster transform. Aggregates nearby points into centroids.",
|
|
140
|
+
"required": ["type", "radius"],
|
|
141
|
+
"additionalProperties": false,
|
|
142
|
+
"properties": {
|
|
143
|
+
"type": { "type": "string", "enum": ["cluster"] },
|
|
144
|
+
"radius": { "type": "number", "minimum": 1 }
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"ITransform": {
|
|
148
|
+
"oneOf": [
|
|
149
|
+
{ "$ref": "#/definitions/IKDETransform" },
|
|
150
|
+
{ "$ref": "#/definitions/IClusterTransform" }
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"IColorRampScale": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"description": "Maps a numeric field through a named color palette to RGBA.",
|
|
156
|
+
"required": ["scheme", "params"],
|
|
157
|
+
"additionalProperties": false,
|
|
158
|
+
"properties": {
|
|
159
|
+
"scheme": { "type": "string", "enum": ["colorRamp"] },
|
|
160
|
+
"params": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"required": ["name", "nShades", "mode", "reverse", "fallback"],
|
|
163
|
+
"additionalProperties": false,
|
|
164
|
+
"properties": {
|
|
165
|
+
"name": { "type": "string" },
|
|
166
|
+
"domain": {
|
|
167
|
+
"type": "array",
|
|
168
|
+
"items": { "type": "number" },
|
|
169
|
+
"minItems": 2,
|
|
170
|
+
"maxItems": 2
|
|
171
|
+
},
|
|
172
|
+
"nShades": { "type": "number" },
|
|
173
|
+
"mode": { "$ref": "#/definitions/ClassificationMode" },
|
|
174
|
+
"reverse": { "type": "boolean" },
|
|
175
|
+
"fallback": { "$ref": "#/definitions/RGBA" },
|
|
176
|
+
"colorStops": {
|
|
177
|
+
"type": "array",
|
|
178
|
+
"items": {
|
|
179
|
+
"type": "object",
|
|
180
|
+
"required": ["stop", "color"],
|
|
181
|
+
"additionalProperties": false,
|
|
182
|
+
"properties": {
|
|
183
|
+
"stop": { "type": "number" },
|
|
184
|
+
"color": { "$ref": "#/definitions/RGBA" }
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"ICategoricalScale": {
|
|
193
|
+
"type": "object",
|
|
194
|
+
"description": "Maps discrete field values to colors sampled from a named palette.",
|
|
195
|
+
"required": ["scheme", "params"],
|
|
196
|
+
"additionalProperties": false,
|
|
197
|
+
"properties": {
|
|
198
|
+
"scheme": { "type": "string", "enum": ["categorical"] },
|
|
199
|
+
"params": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"required": ["colorRamp", "fallback"],
|
|
202
|
+
"additionalProperties": false,
|
|
203
|
+
"properties": {
|
|
204
|
+
"colorRamp": { "type": "string" },
|
|
205
|
+
"nShades": { "type": "number" },
|
|
206
|
+
"reverse": { "type": "boolean" },
|
|
207
|
+
"fallback": { "$ref": "#/definitions/RGBA" },
|
|
208
|
+
"colorStops": {
|
|
209
|
+
"type": "array",
|
|
210
|
+
"items": {
|
|
211
|
+
"type": "object",
|
|
212
|
+
"required": ["stop", "color"],
|
|
213
|
+
"additionalProperties": false,
|
|
214
|
+
"properties": {
|
|
215
|
+
"stop": {
|
|
216
|
+
"oneOf": [{ "type": "string" }, { "type": "number" }]
|
|
217
|
+
},
|
|
218
|
+
"color": { "$ref": "#/definitions/RGBA" }
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"IScalarScale": {
|
|
227
|
+
"type": "object",
|
|
228
|
+
"description": "Maps a numeric field to a numeric output (radius, width, sub-channel value).",
|
|
229
|
+
"required": ["scheme", "params"],
|
|
230
|
+
"additionalProperties": false,
|
|
231
|
+
"properties": {
|
|
232
|
+
"scheme": { "type": "string", "enum": ["scalar"] },
|
|
233
|
+
"params": {
|
|
234
|
+
"type": "object",
|
|
235
|
+
"required": ["domain", "range", "mode", "nStops", "fallback"],
|
|
236
|
+
"additionalProperties": false,
|
|
237
|
+
"properties": {
|
|
238
|
+
"domain": {
|
|
239
|
+
"type": "array",
|
|
240
|
+
"items": { "type": "number" },
|
|
241
|
+
"minItems": 2,
|
|
242
|
+
"maxItems": 2
|
|
243
|
+
},
|
|
244
|
+
"range": {
|
|
245
|
+
"type": "array",
|
|
246
|
+
"items": { "type": "number" },
|
|
247
|
+
"minItems": 2,
|
|
248
|
+
"maxItems": 2
|
|
249
|
+
},
|
|
250
|
+
"mode": { "$ref": "#/definitions/ClassificationMode" },
|
|
251
|
+
"nStops": { "type": "number" },
|
|
252
|
+
"fallback": { "type": "number" },
|
|
253
|
+
"scalarStops": {
|
|
254
|
+
"type": "array",
|
|
255
|
+
"items": {
|
|
256
|
+
"type": "object",
|
|
257
|
+
"required": ["stop", "output"],
|
|
258
|
+
"additionalProperties": false,
|
|
259
|
+
"properties": {
|
|
260
|
+
"stop": { "type": "number" },
|
|
261
|
+
"output": { "type": "number" }
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"IConstantRGBAScale": {
|
|
270
|
+
"type": "object",
|
|
271
|
+
"description": "Fixed RGBA color regardless of feature data.",
|
|
272
|
+
"required": ["scheme", "params"],
|
|
273
|
+
"additionalProperties": false,
|
|
274
|
+
"properties": {
|
|
275
|
+
"scheme": { "type": "string", "enum": ["constant_rgba"] },
|
|
276
|
+
"params": {
|
|
277
|
+
"type": "object",
|
|
278
|
+
"required": ["value"],
|
|
279
|
+
"additionalProperties": false,
|
|
280
|
+
"properties": {
|
|
281
|
+
"value": { "$ref": "#/definitions/RGBA" }
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"IConstantNumScale": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"description": "Fixed numeric value regardless of feature data.",
|
|
289
|
+
"required": ["scheme", "params"],
|
|
290
|
+
"additionalProperties": false,
|
|
291
|
+
"properties": {
|
|
292
|
+
"scheme": { "type": "string", "enum": ["constant_num"] },
|
|
293
|
+
"params": {
|
|
294
|
+
"type": "object",
|
|
295
|
+
"required": ["value"],
|
|
296
|
+
"additionalProperties": false,
|
|
297
|
+
"properties": {
|
|
298
|
+
"value": { "type": "number" }
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"IIdentityScale": {
|
|
304
|
+
"type": "object",
|
|
305
|
+
"description": "Passes the field value through unchanged.",
|
|
306
|
+
"required": ["scheme"],
|
|
307
|
+
"additionalProperties": false,
|
|
308
|
+
"properties": {
|
|
309
|
+
"scheme": { "type": "string", "enum": ["identity"] }
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"IExpressionScale": {
|
|
313
|
+
"type": "object",
|
|
314
|
+
"description": "Evaluates an expression against one or more input fields (reserved).",
|
|
315
|
+
"required": ["scheme", "params"],
|
|
316
|
+
"additionalProperties": false,
|
|
317
|
+
"properties": {
|
|
318
|
+
"scheme": { "type": "string", "enum": ["expression"] },
|
|
319
|
+
"params": {
|
|
320
|
+
"type": "object",
|
|
321
|
+
"required": ["expr", "fallback"],
|
|
322
|
+
"additionalProperties": false,
|
|
323
|
+
"properties": {
|
|
324
|
+
"expr": { "type": "string" },
|
|
325
|
+
"fallback": {
|
|
326
|
+
"oneOf": [{ "type": "number" }, { "$ref": "#/definitions/RGBA" }]
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"IScale": {
|
|
333
|
+
"oneOf": [
|
|
334
|
+
{ "$ref": "#/definitions/IColorRampScale" },
|
|
335
|
+
{ "$ref": "#/definitions/ICategoricalScale" },
|
|
336
|
+
{ "$ref": "#/definitions/IScalarScale" },
|
|
337
|
+
{ "$ref": "#/definitions/IConstantRGBAScale" },
|
|
338
|
+
{ "$ref": "#/definitions/IConstantNumScale" },
|
|
339
|
+
{ "$ref": "#/definitions/IIdentityScale" },
|
|
340
|
+
{ "$ref": "#/definitions/IExpressionScale" }
|
|
341
|
+
]
|
|
342
|
+
},
|
|
343
|
+
"IMapping": {
|
|
344
|
+
"type": "object",
|
|
345
|
+
"description": "A (scale, channels) pair: one scale drives one or more output channels.",
|
|
346
|
+
"required": ["scale", "channels"],
|
|
347
|
+
"additionalProperties": false,
|
|
348
|
+
"properties": {
|
|
349
|
+
"scale": { "$ref": "#/definitions/IScale" },
|
|
350
|
+
"channels": {
|
|
351
|
+
"type": "array",
|
|
352
|
+
"description": "Target output channel names.",
|
|
353
|
+
"items": { "$ref": "#/definitions/StyleChannel" },
|
|
354
|
+
"minItems": 1
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"IEncodingRule": {
|
|
359
|
+
"type": "object",
|
|
360
|
+
"description": "Maps optional input fields to one or more (scale, channels) pairs.",
|
|
361
|
+
"required": ["id", "mappings"],
|
|
362
|
+
"additionalProperties": false,
|
|
363
|
+
"properties": {
|
|
364
|
+
"id": { "type": "string", "description": "Stable UUID." },
|
|
365
|
+
"fields": {
|
|
366
|
+
"type": "array",
|
|
367
|
+
"description": "Input field name(s). Absent for constant rules.",
|
|
368
|
+
"items": { "type": "string" }
|
|
369
|
+
},
|
|
370
|
+
"mappings": {
|
|
371
|
+
"type": "array",
|
|
372
|
+
"description": "(scale, channels) pairs sharing these input fields.",
|
|
373
|
+
"items": { "$ref": "#/definitions/IMapping" },
|
|
374
|
+
"minItems": 1
|
|
375
|
+
},
|
|
376
|
+
"when": {
|
|
377
|
+
"type": "array",
|
|
378
|
+
"description": "Guard predicates for this rule.",
|
|
379
|
+
"items": { "$ref": "#/definitions/IPredicate" }
|
|
380
|
+
},
|
|
381
|
+
"whenOp": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"enum": ["all", "any"],
|
|
384
|
+
"description": "Logical combinator for when predicates. Defaults to 'all'."
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"IGrammarLayer": {
|
|
389
|
+
"type": "object",
|
|
390
|
+
"description": "One independent rendering pipeline on a source.",
|
|
391
|
+
"required": ["id", "rules"],
|
|
392
|
+
"additionalProperties": false,
|
|
393
|
+
"properties": {
|
|
394
|
+
"id": { "type": "string", "description": "Stable UUID." },
|
|
395
|
+
"preprocess": {
|
|
396
|
+
"type": "array",
|
|
397
|
+
"description": "Render-side transforms (KDE, cluster) applied before encoding rules.",
|
|
398
|
+
"items": { "$ref": "#/definitions/ITransform" }
|
|
399
|
+
},
|
|
400
|
+
"rules": {
|
|
401
|
+
"type": "array",
|
|
402
|
+
"description": "Encoding rules compiled into a flat-style expression for this layer.",
|
|
403
|
+
"items": { "$ref": "#/definitions/IEncodingRule" }
|
|
404
|
+
},
|
|
405
|
+
"when": {
|
|
406
|
+
"type": "array",
|
|
407
|
+
"description": "Guard predicates applied to every rule in this layer.",
|
|
408
|
+
"items": { "$ref": "#/definitions/IPredicate" }
|
|
409
|
+
},
|
|
410
|
+
"whenOp": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"enum": ["all", "any"],
|
|
413
|
+
"description": "Logical combinator for when predicates. Defaults to 'all'."
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './_interface/project/jgis';
|
|
2
|
+
export * from './_interface/project/sources/geoPackageVectorSource';
|
|
3
|
+
export * from './_interface/project/sources/geoPackageRasterSource';
|
|
2
4
|
export * from './_interface/project/sources/geoJsonSource';
|
|
3
5
|
export * from './_interface/project/sources/geoTiffSource';
|
|
4
6
|
export * from './_interface/project/sources/imageSource';
|
|
@@ -10,7 +12,7 @@ export * from './_interface/project/sources/videoSource';
|
|
|
10
12
|
export * from './_interface/project/sources/geoParquetSource';
|
|
11
13
|
export * from './_interface/project/sources/markerSource';
|
|
12
14
|
export * from './_interface/project/sources/wmsTileSource';
|
|
13
|
-
export * from './_interface/project/
|
|
15
|
+
export * from './_interface/project/sources/openeoTileSource';
|
|
14
16
|
export * from './_interface/project/layers/hillshadeLayer';
|
|
15
17
|
export * from './_interface/project/layers/storySegmentLayer';
|
|
16
18
|
export * from './_interface/project/layers/rasterLayer';
|
|
@@ -18,8 +20,19 @@ export * from './_interface/project/layers/vectorLayer';
|
|
|
18
20
|
export * from './_interface/project/layers/imageLayer';
|
|
19
21
|
export * from './_interface/project/layers/stacLayer';
|
|
20
22
|
export * from './_interface/project/layers/vectorTileLayer';
|
|
21
|
-
export * from './_interface/project/layers/
|
|
23
|
+
export * from './_interface/project/layers/geoTiffLayer';
|
|
24
|
+
export * from './_interface/project/layers/openeoTileLayer';
|
|
22
25
|
export * from './processing/_generated/exportProcessingSchema';
|
|
26
|
+
export * from './_interface/project/symbology';
|
|
27
|
+
import type { IGrammarLayer } from './_interface/project/symbology';
|
|
28
|
+
export interface IGrammarSymbologyState {
|
|
29
|
+
/**
|
|
30
|
+
* Ordered list of independent rendering layers sharing the same source.
|
|
31
|
+
* Each layer produces one renderer layer (Vector, Image, WebGLTile, etc.).
|
|
32
|
+
* Layers are rendered in order (first = bottom).
|
|
33
|
+
*/
|
|
34
|
+
layers: IGrammarLayer[];
|
|
35
|
+
}
|
|
23
36
|
export * from './_interface/export/exportGeoJson';
|
|
24
37
|
export * from './_interface/export/exportGeoTiff';
|
|
25
38
|
export * from './doc';
|
package/lib/types.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './_interface/project/jgis';
|
|
2
2
|
// Sources
|
|
3
|
+
export * from './_interface/project/sources/geoPackageVectorSource';
|
|
4
|
+
export * from './_interface/project/sources/geoPackageRasterSource';
|
|
3
5
|
export * from './_interface/project/sources/geoJsonSource';
|
|
4
6
|
export * from './_interface/project/sources/geoTiffSource';
|
|
5
7
|
export * from './_interface/project/sources/imageSource';
|
|
@@ -11,8 +13,8 @@ export * from './_interface/project/sources/videoSource';
|
|
|
11
13
|
export * from './_interface/project/sources/geoParquetSource';
|
|
12
14
|
export * from './_interface/project/sources/markerSource';
|
|
13
15
|
export * from './_interface/project/sources/wmsTileSource';
|
|
16
|
+
export * from './_interface/project/sources/openeoTileSource';
|
|
14
17
|
// Layers
|
|
15
|
-
export * from './_interface/project/layers/heatmapLayer';
|
|
16
18
|
export * from './_interface/project/layers/hillshadeLayer';
|
|
17
19
|
export * from './_interface/project/layers/storySegmentLayer';
|
|
18
20
|
export * from './_interface/project/layers/rasterLayer';
|
|
@@ -20,9 +22,12 @@ export * from './_interface/project/layers/vectorLayer';
|
|
|
20
22
|
export * from './_interface/project/layers/imageLayer';
|
|
21
23
|
export * from './_interface/project/layers/stacLayer';
|
|
22
24
|
export * from './_interface/project/layers/vectorTileLayer';
|
|
23
|
-
export * from './_interface/project/layers/
|
|
25
|
+
export * from './_interface/project/layers/geoTiffLayer';
|
|
26
|
+
export * from './_interface/project/layers/openeoTileLayer';
|
|
24
27
|
// Processing
|
|
25
28
|
export * from './processing/_generated/exportProcessingSchema';
|
|
29
|
+
// Symbology grammar
|
|
30
|
+
export * from './_interface/project/symbology';
|
|
26
31
|
// exportLayer
|
|
27
32
|
export * from './_interface/export/exportGeoJson';
|
|
28
33
|
export * from './_interface/export/exportGeoTiff';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupytergis/schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0-alpha.1",
|
|
4
4
|
"description": "A JupyterGIS schema package.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupytergis"
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"url": "https://github.com/geojupyter/jupytergis.git"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
|
+
"test": "jest",
|
|
28
29
|
"build": "jlpm build:schema && jlpm build:lib",
|
|
29
30
|
"build:schema": "jlpm run build:processing && node ./cacheGeoJSONSchema.js && jlpm build:schema:registry && jlpm build:schema:js && jlpm build:schema:py",
|
|
30
31
|
"build:processing": "python scripts/process.py",
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* WebGlLayer
|
|
10
|
-
*/
|
|
11
|
-
export interface IWebGlLayer {
|
|
12
|
-
/**
|
|
13
|
-
* The id of the source
|
|
14
|
-
*/
|
|
15
|
-
source: string;
|
|
16
|
-
/**
|
|
17
|
-
* The opacity of the source
|
|
18
|
-
*/
|
|
19
|
-
opacity?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The color of the the object
|
|
22
|
-
*/
|
|
23
|
-
color?: string | number | (string | number | (number | string | (number | string)[])[])[];
|
|
24
|
-
/**
|
|
25
|
-
* The state of the symbology panel options
|
|
26
|
-
*/
|
|
27
|
-
symbologyState?: {
|
|
28
|
-
renderType: string;
|
|
29
|
-
band?: number;
|
|
30
|
-
redBand?: number;
|
|
31
|
-
greenBand?: number;
|
|
32
|
-
blueBand?: number;
|
|
33
|
-
alphaBand?: number;
|
|
34
|
-
interpolation?: "discrete" | "linear" | "exact";
|
|
35
|
-
colorRamp?: string;
|
|
36
|
-
nClasses?: string;
|
|
37
|
-
mode?: "continuous" | "equal interval" | "quantile";
|
|
38
|
-
};
|
|
39
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"description": "HeatmapLayer",
|
|
4
|
-
"title": "IHeatmapLayer",
|
|
5
|
-
"required": ["source", "blur", "radius"],
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"properties": {
|
|
8
|
-
"source": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"description": "The id of the source"
|
|
11
|
-
},
|
|
12
|
-
"opacity": {
|
|
13
|
-
"type": "number",
|
|
14
|
-
"description": "The opacity of the source",
|
|
15
|
-
"default": 1,
|
|
16
|
-
"multipleOf": 0.1,
|
|
17
|
-
"minimum": 0,
|
|
18
|
-
"maximum": 1
|
|
19
|
-
},
|
|
20
|
-
"radius": {
|
|
21
|
-
"type": "number",
|
|
22
|
-
"description": "Radius size in pixels",
|
|
23
|
-
"default": 8
|
|
24
|
-
},
|
|
25
|
-
"blur": {
|
|
26
|
-
"type": "number",
|
|
27
|
-
"description": "Blur size in pixels",
|
|
28
|
-
"default": 15
|
|
29
|
-
},
|
|
30
|
-
"color": {
|
|
31
|
-
"type": "array",
|
|
32
|
-
"items": {
|
|
33
|
-
"type": "string"
|
|
34
|
-
},
|
|
35
|
-
"default": ["#00f", "#0ff", "#0f0", "#ff0", "#f00"]
|
|
36
|
-
},
|
|
37
|
-
"symbologyState": {
|
|
38
|
-
"type": "object",
|
|
39
|
-
"description": "The state of the symbology panel options",
|
|
40
|
-
"required": ["renderType"],
|
|
41
|
-
"properties": {
|
|
42
|
-
"renderType": {
|
|
43
|
-
"type": "string",
|
|
44
|
-
"default": "Heatmap"
|
|
45
|
-
},
|
|
46
|
-
"colorRamp": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"default": "viridis"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"default": {}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|