@jupytergis/schema 0.15.0 → 0.16.0-alpha.0
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 +7836 -503
- 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 -4
- package/lib/_interface/project/layers/geoTiffLayer.d.ts +351 -0
- package/lib/_interface/project/layers/heatmapLayer.d.ts +8 -1
- package/lib/_interface/project/layers/openeoTileLayer.d.ts +20 -0
- 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 +8 -2
- 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 +87 -19
- 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 +7 -3
- package/lib/processing/_generated/exportProcessingSchema.js +7 -3
- package/lib/processing/_generated/processingType.d.ts +1 -1
- package/lib/processing/_generated/processingType.js +7 -3
- package/lib/processing/_generated/processing_merge.json +76 -21
- 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 -5
- package/lib/schema/project/layers/{webGlLayer.json → geoTiffLayer.json} +9 -3
- package/lib/schema/project/layers/heatmapLayer.json +7 -1
- 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 -1
- package/lib/types.js +7 -1
- package/package.json +2 -1
- package/lib/_interface/project/layers/webGlLayer.d.ts +0 -39
|
@@ -27,8 +27,6 @@ export interface IVectorTileLayer {
|
|
|
27
27
|
* The state of the symbology panel options
|
|
28
28
|
*/
|
|
29
29
|
symbologyState?: {
|
|
30
|
-
renderType: "Single Symbol" | "Graduated" | "Categorized" | "Canonical";
|
|
31
|
-
value?: string;
|
|
32
30
|
method?: "color" | "radius";
|
|
33
31
|
colorRamp?: string;
|
|
34
32
|
nClasses?: string;
|
|
@@ -49,5 +47,571 @@ export interface IVectorTileLayer {
|
|
|
49
47
|
* Whether the stroke color follows the fill color expression
|
|
50
48
|
*/
|
|
51
49
|
strokeFollowsFill?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Legacy top-level encoding rules (backward compatibility). New files should use layers.
|
|
52
|
+
*/
|
|
53
|
+
rules?: {
|
|
54
|
+
/**
|
|
55
|
+
* Stable UUID.
|
|
56
|
+
*/
|
|
57
|
+
id: string;
|
|
58
|
+
/**
|
|
59
|
+
* Input field name(s). Absent for constant rules.
|
|
60
|
+
*/
|
|
61
|
+
fields?: string[];
|
|
62
|
+
/**
|
|
63
|
+
* (scale, channels) pairs sharing these input fields.
|
|
64
|
+
*/
|
|
65
|
+
mappings: [
|
|
66
|
+
{
|
|
67
|
+
scale:
|
|
68
|
+
| {
|
|
69
|
+
scheme: "colorRamp";
|
|
70
|
+
params: {
|
|
71
|
+
name: string;
|
|
72
|
+
domain?: [number, number];
|
|
73
|
+
nShades: number;
|
|
74
|
+
mode: "equal interval" | "quantile" | "jenks" | "pretty" | "logarithmic";
|
|
75
|
+
reverse: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
78
|
+
*/
|
|
79
|
+
fallback: [number, number, number, number];
|
|
80
|
+
colorStops?: {
|
|
81
|
+
stop: number;
|
|
82
|
+
/**
|
|
83
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
84
|
+
*/
|
|
85
|
+
color: [number, number, number, number];
|
|
86
|
+
}[];
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
| {
|
|
90
|
+
scheme: "categorical";
|
|
91
|
+
params: {
|
|
92
|
+
colorRamp: string;
|
|
93
|
+
nShades?: number;
|
|
94
|
+
reverse?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
97
|
+
*/
|
|
98
|
+
fallback: [number, number, number, number];
|
|
99
|
+
colorStops?: {
|
|
100
|
+
stop: string | number;
|
|
101
|
+
/**
|
|
102
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
103
|
+
*/
|
|
104
|
+
color: [number, number, number, number];
|
|
105
|
+
}[];
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
| {
|
|
109
|
+
scheme: "scalar";
|
|
110
|
+
params: {
|
|
111
|
+
domain: [number, number];
|
|
112
|
+
range: [number, number];
|
|
113
|
+
mode: "equal interval" | "quantile" | "jenks" | "pretty" | "logarithmic";
|
|
114
|
+
nStops: number;
|
|
115
|
+
fallback: number;
|
|
116
|
+
scalarStops?: {
|
|
117
|
+
stop: number;
|
|
118
|
+
output: number;
|
|
119
|
+
}[];
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
| {
|
|
123
|
+
scheme: "constant_rgba";
|
|
124
|
+
params: {
|
|
125
|
+
/**
|
|
126
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
127
|
+
*/
|
|
128
|
+
value: [number, number, number, number];
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
| {
|
|
132
|
+
scheme: "constant_num";
|
|
133
|
+
params: {
|
|
134
|
+
value: number;
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
| {
|
|
138
|
+
scheme: "identity";
|
|
139
|
+
}
|
|
140
|
+
| {
|
|
141
|
+
scheme: "expression";
|
|
142
|
+
params: {
|
|
143
|
+
expr: string;
|
|
144
|
+
fallback: number | [number, number, number, number];
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Target output channel names.
|
|
149
|
+
*/
|
|
150
|
+
channels: [
|
|
151
|
+
(
|
|
152
|
+
| ("fill-color" | "stroke-color" | "circle-fill-color" | "circle-stroke-color" | "pixel-color")
|
|
153
|
+
| ("fill-red" | "fill-green" | "fill-blue" | "pixel-red" | "pixel-green" | "pixel-blue")
|
|
154
|
+
| ("fill-alpha" | "pixel-alpha")
|
|
155
|
+
| "pixel-rgb"
|
|
156
|
+
| ("stroke-width" | "circle-radius" | "circle-stroke-width")
|
|
157
|
+
),
|
|
158
|
+
...(
|
|
159
|
+
| ("fill-color" | "stroke-color" | "circle-fill-color" | "circle-stroke-color" | "pixel-color")
|
|
160
|
+
| ("fill-red" | "fill-green" | "fill-blue" | "pixel-red" | "pixel-green" | "pixel-blue")
|
|
161
|
+
| ("fill-alpha" | "pixel-alpha")
|
|
162
|
+
| "pixel-rgb"
|
|
163
|
+
| ("stroke-width" | "circle-radius" | "circle-stroke-width")
|
|
164
|
+
)[]
|
|
165
|
+
];
|
|
166
|
+
},
|
|
167
|
+
...{
|
|
168
|
+
scale:
|
|
169
|
+
| {
|
|
170
|
+
scheme: "colorRamp";
|
|
171
|
+
params: {
|
|
172
|
+
name: string;
|
|
173
|
+
domain?: [number, number];
|
|
174
|
+
nShades: number;
|
|
175
|
+
mode: "equal interval" | "quantile" | "jenks" | "pretty" | "logarithmic";
|
|
176
|
+
reverse: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
179
|
+
*/
|
|
180
|
+
fallback: [number, number, number, number];
|
|
181
|
+
colorStops?: {
|
|
182
|
+
stop: number;
|
|
183
|
+
/**
|
|
184
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
185
|
+
*/
|
|
186
|
+
color: [number, number, number, number];
|
|
187
|
+
}[];
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
| {
|
|
191
|
+
scheme: "categorical";
|
|
192
|
+
params: {
|
|
193
|
+
colorRamp: string;
|
|
194
|
+
nShades?: number;
|
|
195
|
+
reverse?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
198
|
+
*/
|
|
199
|
+
fallback: [number, number, number, number];
|
|
200
|
+
colorStops?: {
|
|
201
|
+
stop: string | number;
|
|
202
|
+
/**
|
|
203
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
204
|
+
*/
|
|
205
|
+
color: [number, number, number, number];
|
|
206
|
+
}[];
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
| {
|
|
210
|
+
scheme: "scalar";
|
|
211
|
+
params: {
|
|
212
|
+
domain: [number, number];
|
|
213
|
+
range: [number, number];
|
|
214
|
+
mode: "equal interval" | "quantile" | "jenks" | "pretty" | "logarithmic";
|
|
215
|
+
nStops: number;
|
|
216
|
+
fallback: number;
|
|
217
|
+
scalarStops?: {
|
|
218
|
+
stop: number;
|
|
219
|
+
output: number;
|
|
220
|
+
}[];
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
| {
|
|
224
|
+
scheme: "constant_rgba";
|
|
225
|
+
params: {
|
|
226
|
+
/**
|
|
227
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
228
|
+
*/
|
|
229
|
+
value: [number, number, number, number];
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
| {
|
|
233
|
+
scheme: "constant_num";
|
|
234
|
+
params: {
|
|
235
|
+
value: number;
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
| {
|
|
239
|
+
scheme: "identity";
|
|
240
|
+
}
|
|
241
|
+
| {
|
|
242
|
+
scheme: "expression";
|
|
243
|
+
params: {
|
|
244
|
+
expr: string;
|
|
245
|
+
fallback: number | [number, number, number, number];
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Target output channel names.
|
|
250
|
+
*/
|
|
251
|
+
channels: [
|
|
252
|
+
(
|
|
253
|
+
| ("fill-color" | "stroke-color" | "circle-fill-color" | "circle-stroke-color" | "pixel-color")
|
|
254
|
+
| ("fill-red" | "fill-green" | "fill-blue" | "pixel-red" | "pixel-green" | "pixel-blue")
|
|
255
|
+
| ("fill-alpha" | "pixel-alpha")
|
|
256
|
+
| "pixel-rgb"
|
|
257
|
+
| ("stroke-width" | "circle-radius" | "circle-stroke-width")
|
|
258
|
+
),
|
|
259
|
+
...(
|
|
260
|
+
| ("fill-color" | "stroke-color" | "circle-fill-color" | "circle-stroke-color" | "pixel-color")
|
|
261
|
+
| ("fill-red" | "fill-green" | "fill-blue" | "pixel-red" | "pixel-green" | "pixel-blue")
|
|
262
|
+
| ("fill-alpha" | "pixel-alpha")
|
|
263
|
+
| "pixel-rgb"
|
|
264
|
+
| ("stroke-width" | "circle-radius" | "circle-stroke-width")
|
|
265
|
+
)[]
|
|
266
|
+
];
|
|
267
|
+
}[]
|
|
268
|
+
];
|
|
269
|
+
/**
|
|
270
|
+
* Guard predicates for this rule.
|
|
271
|
+
*/
|
|
272
|
+
when?: (
|
|
273
|
+
| {
|
|
274
|
+
type: "geometryType";
|
|
275
|
+
value: "Point" | "LineString" | "Polygon";
|
|
276
|
+
}
|
|
277
|
+
| {
|
|
278
|
+
type: "hasField";
|
|
279
|
+
field: string;
|
|
280
|
+
}
|
|
281
|
+
| {
|
|
282
|
+
type: "fieldEquals";
|
|
283
|
+
field: string;
|
|
284
|
+
value: string | number;
|
|
285
|
+
}
|
|
286
|
+
| {
|
|
287
|
+
type: "fieldCompare";
|
|
288
|
+
field: string;
|
|
289
|
+
op: ">" | "<" | ">=" | "<=" | "!=";
|
|
290
|
+
value: number;
|
|
291
|
+
}
|
|
292
|
+
| {
|
|
293
|
+
type: "between";
|
|
294
|
+
field: string;
|
|
295
|
+
min: number;
|
|
296
|
+
max: number;
|
|
297
|
+
}
|
|
298
|
+
)[];
|
|
299
|
+
/**
|
|
300
|
+
* Logical combinator for when predicates. Defaults to 'all'.
|
|
301
|
+
*/
|
|
302
|
+
whenOp?: "all" | "any";
|
|
303
|
+
}[];
|
|
304
|
+
/**
|
|
305
|
+
* Grammar rendering layers. Each layer is an independent rendering pipeline with optional preprocess transforms and encoding rules.
|
|
306
|
+
*/
|
|
307
|
+
layers?: {
|
|
308
|
+
/**
|
|
309
|
+
* Stable UUID.
|
|
310
|
+
*/
|
|
311
|
+
id: string;
|
|
312
|
+
/**
|
|
313
|
+
* Render-side transforms (KDE, cluster) applied before encoding rules.
|
|
314
|
+
*/
|
|
315
|
+
preprocess?: (
|
|
316
|
+
| {
|
|
317
|
+
type: "kde";
|
|
318
|
+
radius: number;
|
|
319
|
+
blur: number;
|
|
320
|
+
weightField?: string;
|
|
321
|
+
}
|
|
322
|
+
| {
|
|
323
|
+
type: "cluster";
|
|
324
|
+
radius: number;
|
|
325
|
+
}
|
|
326
|
+
)[];
|
|
327
|
+
/**
|
|
328
|
+
* Encoding rules compiled into a flat-style expression for this layer.
|
|
329
|
+
*/
|
|
330
|
+
rules: {
|
|
331
|
+
/**
|
|
332
|
+
* Stable UUID.
|
|
333
|
+
*/
|
|
334
|
+
id: string;
|
|
335
|
+
/**
|
|
336
|
+
* Input field name(s). Absent for constant rules.
|
|
337
|
+
*/
|
|
338
|
+
fields?: string[];
|
|
339
|
+
/**
|
|
340
|
+
* (scale, channels) pairs sharing these input fields.
|
|
341
|
+
*/
|
|
342
|
+
mappings: [
|
|
343
|
+
{
|
|
344
|
+
scale:
|
|
345
|
+
| {
|
|
346
|
+
scheme: "colorRamp";
|
|
347
|
+
params: {
|
|
348
|
+
name: string;
|
|
349
|
+
domain?: [number, number];
|
|
350
|
+
nShades: number;
|
|
351
|
+
mode: "equal interval" | "quantile" | "jenks" | "pretty" | "logarithmic";
|
|
352
|
+
reverse: boolean;
|
|
353
|
+
/**
|
|
354
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
355
|
+
*/
|
|
356
|
+
fallback: [number, number, number, number];
|
|
357
|
+
colorStops?: {
|
|
358
|
+
stop: number;
|
|
359
|
+
/**
|
|
360
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
361
|
+
*/
|
|
362
|
+
color: [number, number, number, number];
|
|
363
|
+
}[];
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
| {
|
|
367
|
+
scheme: "categorical";
|
|
368
|
+
params: {
|
|
369
|
+
colorRamp: string;
|
|
370
|
+
nShades?: number;
|
|
371
|
+
reverse?: boolean;
|
|
372
|
+
/**
|
|
373
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
374
|
+
*/
|
|
375
|
+
fallback: [number, number, number, number];
|
|
376
|
+
colorStops?: {
|
|
377
|
+
stop: string | number;
|
|
378
|
+
/**
|
|
379
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
380
|
+
*/
|
|
381
|
+
color: [number, number, number, number];
|
|
382
|
+
}[];
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
| {
|
|
386
|
+
scheme: "scalar";
|
|
387
|
+
params: {
|
|
388
|
+
domain: [number, number];
|
|
389
|
+
range: [number, number];
|
|
390
|
+
mode: "equal interval" | "quantile" | "jenks" | "pretty" | "logarithmic";
|
|
391
|
+
nStops: number;
|
|
392
|
+
fallback: number;
|
|
393
|
+
scalarStops?: {
|
|
394
|
+
stop: number;
|
|
395
|
+
output: number;
|
|
396
|
+
}[];
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
| {
|
|
400
|
+
scheme: "constant_rgba";
|
|
401
|
+
params: {
|
|
402
|
+
/**
|
|
403
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
404
|
+
*/
|
|
405
|
+
value: [number, number, number, number];
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
| {
|
|
409
|
+
scheme: "constant_num";
|
|
410
|
+
params: {
|
|
411
|
+
value: number;
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
| {
|
|
415
|
+
scheme: "identity";
|
|
416
|
+
}
|
|
417
|
+
| {
|
|
418
|
+
scheme: "expression";
|
|
419
|
+
params: {
|
|
420
|
+
expr: string;
|
|
421
|
+
fallback: number | [number, number, number, number];
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
/**
|
|
425
|
+
* Target output channel names.
|
|
426
|
+
*/
|
|
427
|
+
channels: [
|
|
428
|
+
(
|
|
429
|
+
| ("fill-color" | "stroke-color" | "circle-fill-color" | "circle-stroke-color" | "pixel-color")
|
|
430
|
+
| ("fill-red" | "fill-green" | "fill-blue" | "pixel-red" | "pixel-green" | "pixel-blue")
|
|
431
|
+
| ("fill-alpha" | "pixel-alpha")
|
|
432
|
+
| "pixel-rgb"
|
|
433
|
+
| ("stroke-width" | "circle-radius" | "circle-stroke-width")
|
|
434
|
+
),
|
|
435
|
+
...(
|
|
436
|
+
| ("fill-color" | "stroke-color" | "circle-fill-color" | "circle-stroke-color" | "pixel-color")
|
|
437
|
+
| ("fill-red" | "fill-green" | "fill-blue" | "pixel-red" | "pixel-green" | "pixel-blue")
|
|
438
|
+
| ("fill-alpha" | "pixel-alpha")
|
|
439
|
+
| "pixel-rgb"
|
|
440
|
+
| ("stroke-width" | "circle-radius" | "circle-stroke-width")
|
|
441
|
+
)[]
|
|
442
|
+
];
|
|
443
|
+
},
|
|
444
|
+
...{
|
|
445
|
+
scale:
|
|
446
|
+
| {
|
|
447
|
+
scheme: "colorRamp";
|
|
448
|
+
params: {
|
|
449
|
+
name: string;
|
|
450
|
+
domain?: [number, number];
|
|
451
|
+
nShades: number;
|
|
452
|
+
mode: "equal interval" | "quantile" | "jenks" | "pretty" | "logarithmic";
|
|
453
|
+
reverse: boolean;
|
|
454
|
+
/**
|
|
455
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
456
|
+
*/
|
|
457
|
+
fallback: [number, number, number, number];
|
|
458
|
+
colorStops?: {
|
|
459
|
+
stop: number;
|
|
460
|
+
/**
|
|
461
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
462
|
+
*/
|
|
463
|
+
color: [number, number, number, number];
|
|
464
|
+
}[];
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
| {
|
|
468
|
+
scheme: "categorical";
|
|
469
|
+
params: {
|
|
470
|
+
colorRamp: string;
|
|
471
|
+
nShades?: number;
|
|
472
|
+
reverse?: boolean;
|
|
473
|
+
/**
|
|
474
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
475
|
+
*/
|
|
476
|
+
fallback: [number, number, number, number];
|
|
477
|
+
colorStops?: {
|
|
478
|
+
stop: string | number;
|
|
479
|
+
/**
|
|
480
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
481
|
+
*/
|
|
482
|
+
color: [number, number, number, number];
|
|
483
|
+
}[];
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
| {
|
|
487
|
+
scheme: "scalar";
|
|
488
|
+
params: {
|
|
489
|
+
domain: [number, number];
|
|
490
|
+
range: [number, number];
|
|
491
|
+
mode: "equal interval" | "quantile" | "jenks" | "pretty" | "logarithmic";
|
|
492
|
+
nStops: number;
|
|
493
|
+
fallback: number;
|
|
494
|
+
scalarStops?: {
|
|
495
|
+
stop: number;
|
|
496
|
+
output: number;
|
|
497
|
+
}[];
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
| {
|
|
501
|
+
scheme: "constant_rgba";
|
|
502
|
+
params: {
|
|
503
|
+
/**
|
|
504
|
+
* [R 0-255, G 0-255, B 0-255, A 0-1]
|
|
505
|
+
*/
|
|
506
|
+
value: [number, number, number, number];
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
| {
|
|
510
|
+
scheme: "constant_num";
|
|
511
|
+
params: {
|
|
512
|
+
value: number;
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
| {
|
|
516
|
+
scheme: "identity";
|
|
517
|
+
}
|
|
518
|
+
| {
|
|
519
|
+
scheme: "expression";
|
|
520
|
+
params: {
|
|
521
|
+
expr: string;
|
|
522
|
+
fallback: number | [number, number, number, number];
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
/**
|
|
526
|
+
* Target output channel names.
|
|
527
|
+
*/
|
|
528
|
+
channels: [
|
|
529
|
+
(
|
|
530
|
+
| ("fill-color" | "stroke-color" | "circle-fill-color" | "circle-stroke-color" | "pixel-color")
|
|
531
|
+
| ("fill-red" | "fill-green" | "fill-blue" | "pixel-red" | "pixel-green" | "pixel-blue")
|
|
532
|
+
| ("fill-alpha" | "pixel-alpha")
|
|
533
|
+
| "pixel-rgb"
|
|
534
|
+
| ("stroke-width" | "circle-radius" | "circle-stroke-width")
|
|
535
|
+
),
|
|
536
|
+
...(
|
|
537
|
+
| ("fill-color" | "stroke-color" | "circle-fill-color" | "circle-stroke-color" | "pixel-color")
|
|
538
|
+
| ("fill-red" | "fill-green" | "fill-blue" | "pixel-red" | "pixel-green" | "pixel-blue")
|
|
539
|
+
| ("fill-alpha" | "pixel-alpha")
|
|
540
|
+
| "pixel-rgb"
|
|
541
|
+
| ("stroke-width" | "circle-radius" | "circle-stroke-width")
|
|
542
|
+
)[]
|
|
543
|
+
];
|
|
544
|
+
}[]
|
|
545
|
+
];
|
|
546
|
+
/**
|
|
547
|
+
* Guard predicates for this rule.
|
|
548
|
+
*/
|
|
549
|
+
when?: (
|
|
550
|
+
| {
|
|
551
|
+
type: "geometryType";
|
|
552
|
+
value: "Point" | "LineString" | "Polygon";
|
|
553
|
+
}
|
|
554
|
+
| {
|
|
555
|
+
type: "hasField";
|
|
556
|
+
field: string;
|
|
557
|
+
}
|
|
558
|
+
| {
|
|
559
|
+
type: "fieldEquals";
|
|
560
|
+
field: string;
|
|
561
|
+
value: string | number;
|
|
562
|
+
}
|
|
563
|
+
| {
|
|
564
|
+
type: "fieldCompare";
|
|
565
|
+
field: string;
|
|
566
|
+
op: ">" | "<" | ">=" | "<=" | "!=";
|
|
567
|
+
value: number;
|
|
568
|
+
}
|
|
569
|
+
| {
|
|
570
|
+
type: "between";
|
|
571
|
+
field: string;
|
|
572
|
+
min: number;
|
|
573
|
+
max: number;
|
|
574
|
+
}
|
|
575
|
+
)[];
|
|
576
|
+
/**
|
|
577
|
+
* Logical combinator for when predicates. Defaults to 'all'.
|
|
578
|
+
*/
|
|
579
|
+
whenOp?: "all" | "any";
|
|
580
|
+
}[];
|
|
581
|
+
/**
|
|
582
|
+
* Guard predicates applied to every rule in this layer.
|
|
583
|
+
*/
|
|
584
|
+
when?: (
|
|
585
|
+
| {
|
|
586
|
+
type: "geometryType";
|
|
587
|
+
value: "Point" | "LineString" | "Polygon";
|
|
588
|
+
}
|
|
589
|
+
| {
|
|
590
|
+
type: "hasField";
|
|
591
|
+
field: string;
|
|
592
|
+
}
|
|
593
|
+
| {
|
|
594
|
+
type: "fieldEquals";
|
|
595
|
+
field: string;
|
|
596
|
+
value: string | number;
|
|
597
|
+
}
|
|
598
|
+
| {
|
|
599
|
+
type: "fieldCompare";
|
|
600
|
+
field: string;
|
|
601
|
+
op: ">" | "<" | ">=" | "<=" | "!=";
|
|
602
|
+
value: number;
|
|
603
|
+
}
|
|
604
|
+
| {
|
|
605
|
+
type: "between";
|
|
606
|
+
field: string;
|
|
607
|
+
min: number;
|
|
608
|
+
max: number;
|
|
609
|
+
}
|
|
610
|
+
)[];
|
|
611
|
+
/**
|
|
612
|
+
* Logical combinator for when predicates. Defaults to 'all'.
|
|
613
|
+
*/
|
|
614
|
+
whenOp?: "all" | "any";
|
|
615
|
+
}[];
|
|
52
616
|
};
|
|
53
617
|
}
|
|
@@ -28,6 +28,14 @@ export interface IGeoJSONSource {
|
|
|
28
28
|
*/
|
|
29
29
|
path?: string | null;
|
|
30
30
|
data?: GeoJSON;
|
|
31
|
+
/**
|
|
32
|
+
* Route requests through the Jupyter server proxy to avoid CORS issues.
|
|
33
|
+
*/
|
|
34
|
+
useProxy?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* HTTP headers forwarded to the upstream server when useProxy is true.
|
|
37
|
+
*/
|
|
38
|
+
httpHeaders?: string;
|
|
31
39
|
}
|
|
32
40
|
export interface GeoJSONPoint {
|
|
33
41
|
type: "Point";
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
* GeoPackageRasterSource
|
|
10
|
+
*/
|
|
11
|
+
export interface IGeoPackageRasterSource {
|
|
12
|
+
/**
|
|
13
|
+
* The path to the GeoPackage source
|
|
14
|
+
*/
|
|
15
|
+
path: string;
|
|
16
|
+
/**
|
|
17
|
+
* The minimum zoom level for the raster source
|
|
18
|
+
*/
|
|
19
|
+
minZoom?: number;
|
|
20
|
+
/**
|
|
21
|
+
* The maximum zoom level for the raster source
|
|
22
|
+
*/
|
|
23
|
+
maxZoom?: number;
|
|
24
|
+
/**
|
|
25
|
+
* The names of the tables in the GeoPackage to use as a source (optional). If left empty, all tables will be used.
|
|
26
|
+
*/
|
|
27
|
+
tables?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The attribution for the GeoPackage source
|
|
30
|
+
*/
|
|
31
|
+
attribution?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Interpolate between grid cells when overzooming?
|
|
34
|
+
*/
|
|
35
|
+
interpolate?: boolean;
|
|
36
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
* GeoPackageVectorSource
|
|
10
|
+
*/
|
|
11
|
+
export interface IGeoPackageVectorSource {
|
|
12
|
+
/**
|
|
13
|
+
* The path to the GeoPackage source
|
|
14
|
+
*/
|
|
15
|
+
path: string;
|
|
16
|
+
/**
|
|
17
|
+
* The attribution for the GeoPackage source.
|
|
18
|
+
*/
|
|
19
|
+
attribution?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The projection information for the GeoPackage data (optional).
|
|
22
|
+
*/
|
|
23
|
+
projection?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The names of the tables in the GeoPackage to use as a source (optional). If left empty, all tables will be used.
|
|
26
|
+
*/
|
|
27
|
+
tables?: string;
|
|
28
|
+
}
|
|
@@ -21,4 +21,12 @@ export interface IGeoParquetSource {
|
|
|
21
21
|
* The projection information for the GeoParquet data (optional).
|
|
22
22
|
*/
|
|
23
23
|
projection?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Route requests through the Jupyter server proxy to avoid CORS issues.
|
|
26
|
+
*/
|
|
27
|
+
useProxy?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* HTTP headers forwarded to the upstream server when useProxy is true.
|
|
30
|
+
*/
|
|
31
|
+
httpHeaders?: string;
|
|
24
32
|
}
|
|
@@ -38,4 +38,12 @@ export interface IGeoTiffSource {
|
|
|
38
38
|
* Interpolate between grid cells when overzooming?
|
|
39
39
|
*/
|
|
40
40
|
interpolate?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Route requests through the Jupyter server proxy to avoid CORS issues.
|
|
43
|
+
*/
|
|
44
|
+
useProxy?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* HTTP headers forwarded to the upstream server when useProxy is true.
|
|
47
|
+
*/
|
|
48
|
+
httpHeaders?: string;
|
|
41
49
|
}
|
|
@@ -21,4 +21,12 @@ export interface IImageSource {
|
|
|
21
21
|
* Interpolate between grid cells when overzooming?
|
|
22
22
|
*/
|
|
23
23
|
interpolate?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Route requests through the Jupyter server proxy to avoid CORS issues.
|
|
26
|
+
*/
|
|
27
|
+
useProxy?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* HTTP headers forwarded to the upstream server when useProxy is true.
|
|
30
|
+
*/
|
|
31
|
+
httpHeaders?: string;
|
|
24
32
|
}
|