@urban-toolkit/autk-grammar 4.4.1 → 5.0.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/README.md +275 -5
- package/build/autk-grammar-schema.json +945 -425
- package/dist/autk-grammar.js +752 -426
- package/dist/autk-grammar.js.map +1 -1
- package/dist/autk-grammar.umd.cjs +2 -2
- package/dist/autk-grammar.umd.cjs.map +1 -1
- package/dist/data/autk-grammar-data.cjs +2 -0
- package/dist/data/autk-grammar-data.cjs.map +1 -0
- package/dist/data/autk-grammar-data.d.ts +349 -0
- package/dist/data/autk-grammar-data.js +165 -0
- package/dist/data/autk-grammar-data.js.map +1 -0
- package/dist/index.d.ts +555 -75
- package/package.json +7 -2
|
@@ -65,8 +65,13 @@
|
|
|
65
65
|
"height": {
|
|
66
66
|
"type": "number"
|
|
67
67
|
},
|
|
68
|
+
"id": {
|
|
69
|
+
"description": "Name of the plot, which a link in `links` uses as its `source`. Unique among the ids of the maps and plots. Without it a plot is known by its `dataRef`, so two plots of one table need ids: a run refuses two plots known by one name.",
|
|
70
|
+
"minLength": 1,
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
68
73
|
"mapRef": {
|
|
69
|
-
"description": "`dataRef` of the map layer this plot links its selection to.",
|
|
74
|
+
"description": "`dataRef` of the map layer this plot links its selection to. A shorthand for a link in `links`.",
|
|
70
75
|
"type": "string"
|
|
71
76
|
},
|
|
72
77
|
"margins": {
|
|
@@ -112,6 +117,10 @@
|
|
|
112
117
|
},
|
|
113
118
|
"width": {
|
|
114
119
|
"type": "number"
|
|
120
|
+
},
|
|
121
|
+
"workspace": {
|
|
122
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
123
|
+
"description": "Workspace the table is read from."
|
|
115
124
|
}
|
|
116
125
|
},
|
|
117
126
|
"required": [
|
|
@@ -144,6 +153,29 @@
|
|
|
144
153
|
],
|
|
145
154
|
"type": "object"
|
|
146
155
|
},
|
|
156
|
+
"CameraSpec": {
|
|
157
|
+
"description": "Where a map looks from. Each field is optional; an omitted field keeps the view that fits the map's layers. Read by the Autark adapter; the deck.gl adapter ignores it.",
|
|
158
|
+
"properties": {
|
|
159
|
+
"bearing": {
|
|
160
|
+
"description": "Compass heading the view faces, in degrees clockwise from north: the map turns around the point it looks at.",
|
|
161
|
+
"maximum": 360,
|
|
162
|
+
"minimum": 0,
|
|
163
|
+
"type": "number"
|
|
164
|
+
},
|
|
165
|
+
"pitch": {
|
|
166
|
+
"description": "Tilt from straight down, in degrees.",
|
|
167
|
+
"maximum": 90,
|
|
168
|
+
"minimum": 0,
|
|
169
|
+
"type": "number"
|
|
170
|
+
},
|
|
171
|
+
"zoom": {
|
|
172
|
+
"description": "Zoom level: the eye sits `10000 / 2^(zoom - 10)` workspace units from the point the map looks at (straight above it without `pitch`), so each step doubles the scale.",
|
|
173
|
+
"minimum": 0,
|
|
174
|
+
"type": "number"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"type": "object"
|
|
178
|
+
},
|
|
147
179
|
"ColorMapInterpolator": {
|
|
148
180
|
"description": "Color scheme for a colored map layer: `scheme*` names are categorical, `interpolate*` names are sequential or diverging.",
|
|
149
181
|
"enum": [
|
|
@@ -200,374 +232,124 @@
|
|
|
200
232
|
"ComputeSpec": {
|
|
201
233
|
"anyOf": [
|
|
202
234
|
{
|
|
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
|
-
"type": "object"
|
|
233
|
-
},
|
|
234
|
-
"type": "object"
|
|
235
|
-
},
|
|
236
|
-
"attributes": {
|
|
237
|
-
"additionalProperties": {
|
|
238
|
-
"type": "string"
|
|
239
|
-
},
|
|
240
|
-
"description": "Maps WGSL variable names to feature property paths.",
|
|
241
|
-
"type": "object"
|
|
242
|
-
},
|
|
243
|
-
"dataRef": {
|
|
244
|
-
"description": "Name of the table the shader runs over, one invocation per feature.",
|
|
245
|
-
"type": "string"
|
|
246
|
-
},
|
|
247
|
-
"outputColumnName": {
|
|
248
|
-
"description": "Column written when the shader returns one value.",
|
|
249
|
-
"type": "string"
|
|
250
|
-
},
|
|
251
|
-
"outputColumns": {
|
|
252
|
-
"items": {
|
|
253
|
-
"type": "string"
|
|
254
|
-
},
|
|
255
|
-
"minItems": 1,
|
|
256
|
-
"type": "array"
|
|
257
|
-
},
|
|
258
|
-
"uniformArrays": {
|
|
259
|
-
"additionalProperties": {
|
|
260
|
-
"items": {
|
|
261
|
-
"type": "number"
|
|
262
|
-
},
|
|
263
|
-
"type": "array"
|
|
264
|
-
},
|
|
265
|
-
"type": "object"
|
|
266
|
-
},
|
|
267
|
-
"uniformMatrices": {
|
|
268
|
-
"additionalProperties": {
|
|
269
|
-
"anyOf": [
|
|
270
|
-
{
|
|
271
|
-
"properties": {
|
|
272
|
-
"cols": {
|
|
273
|
-
"type": "number"
|
|
274
|
-
},
|
|
275
|
-
"data": {
|
|
276
|
-
"items": {
|
|
277
|
-
"items": {
|
|
278
|
-
"type": "number"
|
|
279
|
-
},
|
|
280
|
-
"type": "array"
|
|
281
|
-
},
|
|
282
|
-
"type": "array"
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
"required": [
|
|
286
|
-
"data",
|
|
287
|
-
"cols"
|
|
288
|
-
],
|
|
289
|
-
"type": "object"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"$ref": "#/definitions/FromFeatureDirective"
|
|
293
|
-
}
|
|
294
|
-
]
|
|
295
|
-
},
|
|
296
|
-
"description": "Matrix constants shared by every invocation, written inline or read from a feature.",
|
|
297
|
-
"type": "object"
|
|
298
|
-
},
|
|
299
|
-
"uniforms": {
|
|
300
|
-
"additionalProperties": {
|
|
301
|
-
"anyOf": [
|
|
302
|
-
{
|
|
303
|
-
"type": "number"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"$ref": "#/definitions/FromFeatureDirective"
|
|
307
|
-
}
|
|
308
|
-
]
|
|
309
|
-
},
|
|
310
|
-
"description": "Scalar constants shared by every invocation, written inline or read from a feature.",
|
|
311
|
-
"type": "object"
|
|
312
|
-
},
|
|
313
|
-
"wglsFunction": {
|
|
314
|
-
"anyOf": [
|
|
315
|
-
{
|
|
316
|
-
"type": "string"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"items": {
|
|
320
|
-
"type": "string"
|
|
321
|
-
},
|
|
322
|
-
"type": "array"
|
|
323
|
-
}
|
|
324
|
-
],
|
|
325
|
-
"description": "WGSL body of the compute function. An array is joined with newlines, which keeps long shaders readable in JSON."
|
|
326
|
-
}
|
|
235
|
+
"$ref": "#/definitions/GpgpuComputeSpec"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"$ref": "#/definitions/RenderComputeSpec"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"description": "One entry of `compute`. A pass with `type: 'render'` is a {@link RenderComputeSpec } , any other a {@link GpgpuComputeSpec } ."
|
|
242
|
+
},
|
|
243
|
+
"CsvDataSourceSpec": {
|
|
244
|
+
"description": "Loads a CSV table from exactly one of `csvFileUrl` or `csvObject`.",
|
|
245
|
+
"else": {
|
|
246
|
+
"required": [
|
|
247
|
+
"csvObject"
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
"if": {
|
|
251
|
+
"required": [
|
|
252
|
+
"csvFileUrl"
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
"properties": {
|
|
256
|
+
"csvFileUrl": {
|
|
257
|
+
"type": "string"
|
|
258
|
+
},
|
|
259
|
+
"csvObject": {
|
|
260
|
+
"description": "Rows as arrays; the first row holds the column names.",
|
|
261
|
+
"items": {
|
|
262
|
+
"items": {},
|
|
263
|
+
"type": "array"
|
|
327
264
|
},
|
|
265
|
+
"type": "array"
|
|
266
|
+
},
|
|
267
|
+
"delimiter": {
|
|
268
|
+
"type": "string"
|
|
269
|
+
},
|
|
270
|
+
"geometryColumns": {
|
|
271
|
+
"$ref": "#/definitions/GeometryColumns"
|
|
272
|
+
},
|
|
273
|
+
"outputTableName": {
|
|
274
|
+
"description": "Name of the table this source creates. Later sources, compute passes, maps and plots refer to it by this name.",
|
|
275
|
+
"type": "string"
|
|
276
|
+
},
|
|
277
|
+
"type": {
|
|
278
|
+
"const": "csv",
|
|
279
|
+
"type": "string"
|
|
280
|
+
},
|
|
281
|
+
"workspace": {
|
|
282
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
283
|
+
"description": "Workspace the table is created in."
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"required": [
|
|
287
|
+
"outputTableName",
|
|
288
|
+
"type"
|
|
289
|
+
],
|
|
290
|
+
"then": {
|
|
291
|
+
"not": {
|
|
328
292
|
"required": [
|
|
329
|
-
"
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
293
|
+
"csvObject"
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"type": "object"
|
|
298
|
+
},
|
|
299
|
+
"CustomDataSourceSpec": {
|
|
300
|
+
"description": "Loads a GeoJSON FeatureCollection from `geojsonFileUrl` or `geojsonObject`. When both are given, the Autark adapter reads the URL.",
|
|
301
|
+
"if": {
|
|
302
|
+
"not": {
|
|
303
|
+
"required": [
|
|
304
|
+
"geojsonFileUrl"
|
|
305
|
+
]
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"properties": {
|
|
309
|
+
"boundingBox": {
|
|
310
|
+
"$ref": "#/definitions/BoundingBox"
|
|
311
|
+
},
|
|
312
|
+
"coordinateFormat": {
|
|
313
|
+
"description": "Source coordinate reference system of the input data, expressed as an EPSG string (e.g. `'EPSG:4326'`, `'EPSG:3395'`).\n\nDefaults to `'EPSG:4326'` (WGS84) when omitted, which is the correct value for standards-compliant GeoJSON. Only set this when the source data deviates from RFC 7946.",
|
|
314
|
+
"type": "string"
|
|
315
|
+
},
|
|
316
|
+
"geojsonFileUrl": {
|
|
317
|
+
"type": "string"
|
|
318
|
+
},
|
|
319
|
+
"geojsonObject": {
|
|
320
|
+
"$ref": "#/definitions/InlineFeatureCollection",
|
|
321
|
+
"description": "GeoJSON FeatureCollection to load directly.\n\nPer RFC 7946, GeoJSON coordinates MUST be in WGS84 (EPSG:4326) longitude/latitude. This is the default assumption when `coordinateFormat` is omitted.\n\nIf your FeatureCollection is in a different CRS (e.g. a projected system such as EPSG:3395), you MUST set `coordinateFormat` explicitly to match the actual CRS of the input data. Omitting `coordinateFormat` when the data is not in EPSG:4326 will cause the spatial transform to produce invalid geometry."
|
|
322
|
+
},
|
|
323
|
+
"layerType": {
|
|
324
|
+
"$ref": "#/definitions/LayerType",
|
|
325
|
+
"description": "How the map draws the layer. When omitted, autk-db reads it from the first feature's geometry. Set it to draw lines as `polylines` or polygons as a `buildings` layer, for example. Read by the Autark adapter only."
|
|
326
|
+
},
|
|
327
|
+
"outputTableName": {
|
|
328
|
+
"description": "Name of the table this source creates. Later sources, compute passes, maps and plots refer to it by this name.",
|
|
329
|
+
"type": "string"
|
|
330
|
+
},
|
|
331
|
+
"type": {
|
|
332
|
+
"const": "geojson",
|
|
333
|
+
"type": "string"
|
|
335
334
|
},
|
|
336
|
-
{
|
|
337
|
-
"
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"const": "auto",
|
|
357
|
-
"type": "string"
|
|
358
|
-
}
|
|
359
|
-
]
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
|
-
"required": [
|
|
363
|
-
"rows",
|
|
364
|
-
"cols"
|
|
365
|
-
],
|
|
366
|
-
"type": "object"
|
|
367
|
-
},
|
|
368
|
-
"type": "object"
|
|
369
|
-
},
|
|
370
|
-
"attributes": {
|
|
371
|
-
"additionalProperties": {
|
|
372
|
-
"type": "string"
|
|
373
|
-
},
|
|
374
|
-
"description": "Maps WGSL variable names to feature property paths.",
|
|
375
|
-
"type": "object"
|
|
376
|
-
},
|
|
377
|
-
"dataRef": {
|
|
378
|
-
"description": "Name of the table the shader runs over, one invocation per feature.",
|
|
379
|
-
"type": "string"
|
|
380
|
-
},
|
|
381
|
-
"outputColumnName": {
|
|
382
|
-
"type": "string"
|
|
383
|
-
},
|
|
384
|
-
"outputColumns": {
|
|
385
|
-
"description": "Columns written when the shader returns several values, in order.",
|
|
386
|
-
"items": {
|
|
387
|
-
"type": "string"
|
|
388
|
-
},
|
|
389
|
-
"minItems": 1,
|
|
390
|
-
"type": "array"
|
|
391
|
-
},
|
|
392
|
-
"uniformArrays": {
|
|
393
|
-
"additionalProperties": {
|
|
394
|
-
"items": {
|
|
395
|
-
"type": "number"
|
|
396
|
-
},
|
|
397
|
-
"type": "array"
|
|
398
|
-
},
|
|
399
|
-
"type": "object"
|
|
400
|
-
},
|
|
401
|
-
"uniformMatrices": {
|
|
402
|
-
"additionalProperties": {
|
|
403
|
-
"anyOf": [
|
|
404
|
-
{
|
|
405
|
-
"properties": {
|
|
406
|
-
"cols": {
|
|
407
|
-
"type": "number"
|
|
408
|
-
},
|
|
409
|
-
"data": {
|
|
410
|
-
"items": {
|
|
411
|
-
"items": {
|
|
412
|
-
"type": "number"
|
|
413
|
-
},
|
|
414
|
-
"type": "array"
|
|
415
|
-
},
|
|
416
|
-
"type": "array"
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
|
-
"required": [
|
|
420
|
-
"data",
|
|
421
|
-
"cols"
|
|
422
|
-
],
|
|
423
|
-
"type": "object"
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
"$ref": "#/definitions/FromFeatureDirective"
|
|
427
|
-
}
|
|
428
|
-
]
|
|
429
|
-
},
|
|
430
|
-
"description": "Matrix constants shared by every invocation, written inline or read from a feature.",
|
|
431
|
-
"type": "object"
|
|
432
|
-
},
|
|
433
|
-
"uniforms": {
|
|
434
|
-
"additionalProperties": {
|
|
435
|
-
"anyOf": [
|
|
436
|
-
{
|
|
437
|
-
"type": "number"
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"$ref": "#/definitions/FromFeatureDirective"
|
|
441
|
-
}
|
|
442
|
-
]
|
|
443
|
-
},
|
|
444
|
-
"description": "Scalar constants shared by every invocation, written inline or read from a feature.",
|
|
445
|
-
"type": "object"
|
|
446
|
-
},
|
|
447
|
-
"wglsFunction": {
|
|
448
|
-
"anyOf": [
|
|
449
|
-
{
|
|
450
|
-
"type": "string"
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
"items": {
|
|
454
|
-
"type": "string"
|
|
455
|
-
},
|
|
456
|
-
"type": "array"
|
|
457
|
-
}
|
|
458
|
-
],
|
|
459
|
-
"description": "WGSL body of the compute function. An array is joined with newlines, which keeps long shaders readable in JSON."
|
|
460
|
-
}
|
|
461
|
-
},
|
|
462
|
-
"required": [
|
|
463
|
-
"attributes",
|
|
464
|
-
"dataRef",
|
|
465
|
-
"outputColumns",
|
|
466
|
-
"wglsFunction"
|
|
467
|
-
],
|
|
468
|
-
"type": "object"
|
|
469
|
-
}
|
|
470
|
-
],
|
|
471
|
-
"description": "A GPU compute pass over a table. Results are written to `feature.properties.compute.<column>`. It needs `outputColumnName` for a single result or `outputColumns` for several."
|
|
472
|
-
},
|
|
473
|
-
"CsvDataSourceSpec": {
|
|
474
|
-
"description": "Loads a CSV table from exactly one of `csvFileUrl` or `csvObject`.",
|
|
475
|
-
"else": {
|
|
476
|
-
"required": [
|
|
477
|
-
"csvObject"
|
|
478
|
-
]
|
|
479
|
-
},
|
|
480
|
-
"if": {
|
|
481
|
-
"required": [
|
|
482
|
-
"csvFileUrl"
|
|
483
|
-
]
|
|
484
|
-
},
|
|
485
|
-
"properties": {
|
|
486
|
-
"csvFileUrl": {
|
|
487
|
-
"type": "string"
|
|
488
|
-
},
|
|
489
|
-
"csvObject": {
|
|
490
|
-
"description": "Rows as arrays; the first row holds the column names.",
|
|
491
|
-
"items": {
|
|
492
|
-
"items": {},
|
|
493
|
-
"type": "array"
|
|
494
|
-
},
|
|
495
|
-
"type": "array"
|
|
496
|
-
},
|
|
497
|
-
"delimiter": {
|
|
498
|
-
"type": "string"
|
|
499
|
-
},
|
|
500
|
-
"geometryColumns": {
|
|
501
|
-
"$ref": "#/definitions/GeometryColumns"
|
|
502
|
-
},
|
|
503
|
-
"outputTableName": {
|
|
504
|
-
"description": "Name of the table this source creates. Later sources, compute passes, maps and plots refer to it by this name.",
|
|
505
|
-
"type": "string"
|
|
506
|
-
},
|
|
507
|
-
"type": {
|
|
508
|
-
"const": "csv",
|
|
509
|
-
"type": "string"
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
"required": [
|
|
513
|
-
"outputTableName",
|
|
514
|
-
"type"
|
|
515
|
-
],
|
|
516
|
-
"then": {
|
|
517
|
-
"not": {
|
|
518
|
-
"required": [
|
|
519
|
-
"csvObject"
|
|
520
|
-
]
|
|
521
|
-
}
|
|
522
|
-
},
|
|
523
|
-
"type": "object"
|
|
524
|
-
},
|
|
525
|
-
"CustomDataSourceSpec": {
|
|
526
|
-
"description": "Loads a GeoJSON FeatureCollection from `geojsonFileUrl` or `geojsonObject`. When both are given, the Autark adapter reads the URL.",
|
|
527
|
-
"if": {
|
|
528
|
-
"not": {
|
|
529
|
-
"required": [
|
|
530
|
-
"geojsonFileUrl"
|
|
531
|
-
]
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
"properties": {
|
|
535
|
-
"boundingBox": {
|
|
536
|
-
"$ref": "#/definitions/BoundingBox"
|
|
537
|
-
},
|
|
538
|
-
"coordinateFormat": {
|
|
539
|
-
"description": "Source coordinate reference system of the input data, expressed as an EPSG string (e.g. `'EPSG:4326'`, `'EPSG:3395'`).\n\nDefaults to `'EPSG:4326'` (WGS84) when omitted, which is the correct value for standards-compliant GeoJSON. Only set this when the source data deviates from RFC 7946.",
|
|
540
|
-
"type": "string"
|
|
541
|
-
},
|
|
542
|
-
"geojsonFileUrl": {
|
|
543
|
-
"type": "string"
|
|
544
|
-
},
|
|
545
|
-
"geojsonObject": {
|
|
546
|
-
"$ref": "#/definitions/InlineFeatureCollection",
|
|
547
|
-
"description": "GeoJSON FeatureCollection to load directly.\n\nPer RFC 7946, GeoJSON coordinates MUST be in WGS84 (EPSG:4326) longitude/latitude. This is the default assumption when `coordinateFormat` is omitted.\n\nIf your FeatureCollection is in a different CRS (e.g. a projected system such as EPSG:3395), you MUST set `coordinateFormat` explicitly to match the actual CRS of the input data. Omitting `coordinateFormat` when the data is not in EPSG:4326 will cause the spatial transform to produce invalid geometry."
|
|
548
|
-
},
|
|
549
|
-
"outputTableName": {
|
|
550
|
-
"description": "Name of the table this source creates. Later sources, compute passes, maps and plots refer to it by this name.",
|
|
551
|
-
"type": "string"
|
|
552
|
-
},
|
|
553
|
-
"type": {
|
|
554
|
-
"const": "geojson",
|
|
555
|
-
"type": "string"
|
|
556
|
-
}
|
|
557
|
-
},
|
|
558
|
-
"required": [
|
|
559
|
-
"outputTableName",
|
|
560
|
-
"type"
|
|
561
|
-
],
|
|
562
|
-
"then": {
|
|
563
|
-
"required": [
|
|
564
|
-
"geojsonObject"
|
|
565
|
-
]
|
|
566
|
-
},
|
|
567
|
-
"type": "object"
|
|
568
|
-
},
|
|
569
|
-
"DataSourceSpec": {
|
|
570
|
-
"allOf": [
|
|
335
|
+
"workspace": {
|
|
336
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
337
|
+
"description": "Workspace the table is created in."
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"required": [
|
|
341
|
+
"outputTableName",
|
|
342
|
+
"type"
|
|
343
|
+
],
|
|
344
|
+
"then": {
|
|
345
|
+
"required": [
|
|
346
|
+
"geojsonObject"
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
"type": "object"
|
|
350
|
+
},
|
|
351
|
+
"DataSourceSpec": {
|
|
352
|
+
"allOf": [
|
|
571
353
|
{
|
|
572
354
|
"if": {
|
|
573
355
|
"properties": {
|
|
@@ -620,6 +402,19 @@
|
|
|
620
402
|
"$ref": "#/definitions/CustomDataSourceSpec"
|
|
621
403
|
}
|
|
622
404
|
},
|
|
405
|
+
{
|
|
406
|
+
"if": {
|
|
407
|
+
"properties": {
|
|
408
|
+
"type": {
|
|
409
|
+
"const": "geotiff",
|
|
410
|
+
"type": "string"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
"then": {
|
|
415
|
+
"$ref": "#/definitions/GeoTiffDataSourceSpec"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
623
418
|
{
|
|
624
419
|
"if": {
|
|
625
420
|
"properties": {
|
|
@@ -655,6 +450,7 @@
|
|
|
655
450
|
"csv",
|
|
656
451
|
"json",
|
|
657
452
|
"geojson",
|
|
453
|
+
"geotiff",
|
|
658
454
|
"heatmap",
|
|
659
455
|
"join"
|
|
660
456
|
]
|
|
@@ -738,22 +534,65 @@
|
|
|
738
534
|
}
|
|
739
535
|
]
|
|
740
536
|
},
|
|
741
|
-
"
|
|
742
|
-
"
|
|
743
|
-
|
|
744
|
-
|
|
537
|
+
"GeoTiffDataSourceSpec": {
|
|
538
|
+
"description": "Loads a GeoTIFF raster from `geotiffFileUrl` as a raster table: one feature, with one band per value. Read by the Autark adapter only.",
|
|
539
|
+
"properties": {
|
|
540
|
+
"coordinateFormat": {
|
|
541
|
+
"description": "CRS of the file, as an EPSG string. Defaults to `'EPSG:4326'`.",
|
|
542
|
+
"type": "string"
|
|
745
543
|
},
|
|
746
|
-
{
|
|
747
|
-
"
|
|
544
|
+
"geotiffFileUrl": {
|
|
545
|
+
"description": "URL of the GeoTIFF file, relative to the page or absolute, which autk-db fetches. The file's first image is read: each of its bands becomes a band of the table (`band_1`, `band_2`, ...), where the file's no-data value reads as no value. A rotated or sheared grid is refused.",
|
|
546
|
+
"type": "string"
|
|
748
547
|
},
|
|
749
|
-
{
|
|
750
|
-
"
|
|
548
|
+
"maxRasterCells": {
|
|
549
|
+
"description": "Most cells to decode; a larger raster is downsampled to fit. Defaults to 1 000 000.",
|
|
550
|
+
"type": "number"
|
|
751
551
|
},
|
|
752
|
-
{
|
|
753
|
-
"
|
|
552
|
+
"outputTableName": {
|
|
553
|
+
"description": "Name of the table this source creates. Later sources, compute passes, maps and plots refer to it by this name.",
|
|
554
|
+
"type": "string"
|
|
754
555
|
},
|
|
755
|
-
{
|
|
756
|
-
"
|
|
556
|
+
"resampleMethod": {
|
|
557
|
+
"description": "How a larger raster is downsampled. Defaults to `'bilinear'`.",
|
|
558
|
+
"enum": [
|
|
559
|
+
"nearest",
|
|
560
|
+
"bilinear"
|
|
561
|
+
],
|
|
562
|
+
"type": "string"
|
|
563
|
+
},
|
|
564
|
+
"type": {
|
|
565
|
+
"const": "geotiff",
|
|
566
|
+
"type": "string"
|
|
567
|
+
},
|
|
568
|
+
"workspace": {
|
|
569
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
570
|
+
"description": "Workspace the table is created in."
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
"required": [
|
|
574
|
+
"geotiffFileUrl",
|
|
575
|
+
"outputTableName",
|
|
576
|
+
"type"
|
|
577
|
+
],
|
|
578
|
+
"type": "object"
|
|
579
|
+
},
|
|
580
|
+
"Geometry": {
|
|
581
|
+
"anyOf": [
|
|
582
|
+
{
|
|
583
|
+
"$ref": "#/definitions/Point"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"$ref": "#/definitions/MultiPoint"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"$ref": "#/definitions/LineString"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"$ref": "#/definitions/MultiLineString"
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"$ref": "#/definitions/Polygon"
|
|
757
596
|
},
|
|
758
597
|
{
|
|
759
598
|
"$ref": "#/definitions/MultiPolygon"
|
|
@@ -775,34 +614,353 @@
|
|
|
775
614
|
"items": {
|
|
776
615
|
"$ref": "#/definitions/Geometry"
|
|
777
616
|
},
|
|
778
|
-
"type": "array"
|
|
779
|
-
},
|
|
780
|
-
"type": {
|
|
781
|
-
"const": "GeometryCollection",
|
|
782
|
-
"description": "Specifies the type of GeoJSON object.",
|
|
783
|
-
"type": "string"
|
|
617
|
+
"type": "array"
|
|
618
|
+
},
|
|
619
|
+
"type": {
|
|
620
|
+
"const": "GeometryCollection",
|
|
621
|
+
"description": "Specifies the type of GeoJSON object.",
|
|
622
|
+
"type": "string"
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
"required": [
|
|
626
|
+
"geometries",
|
|
627
|
+
"type"
|
|
628
|
+
],
|
|
629
|
+
"type": "object"
|
|
630
|
+
},
|
|
631
|
+
"GeometryColumns": {
|
|
632
|
+
"anyOf": [
|
|
633
|
+
{
|
|
634
|
+
"const": true,
|
|
635
|
+
"type": "boolean"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"$ref": "#/definitions/LatLongGeometryColumns"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"$ref": "#/definitions/WktGeometryColumns"
|
|
642
|
+
}
|
|
643
|
+
],
|
|
644
|
+
"description": "How rows become features: `true` reads the `Latitude` and `Longitude` columns, or name the columns."
|
|
645
|
+
},
|
|
646
|
+
"GpgpuComputeSpec": {
|
|
647
|
+
"anyOf": [
|
|
648
|
+
{
|
|
649
|
+
"properties": {
|
|
650
|
+
"attributeArrays": {
|
|
651
|
+
"additionalProperties": {
|
|
652
|
+
"type": "number"
|
|
653
|
+
},
|
|
654
|
+
"type": "object"
|
|
655
|
+
},
|
|
656
|
+
"attributeMatrices": {
|
|
657
|
+
"additionalProperties": {
|
|
658
|
+
"properties": {
|
|
659
|
+
"cols": {
|
|
660
|
+
"type": "number"
|
|
661
|
+
},
|
|
662
|
+
"rows": {
|
|
663
|
+
"anyOf": [
|
|
664
|
+
{
|
|
665
|
+
"type": "number"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"const": "auto",
|
|
669
|
+
"type": "string"
|
|
670
|
+
}
|
|
671
|
+
]
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"required": [
|
|
675
|
+
"rows",
|
|
676
|
+
"cols"
|
|
677
|
+
],
|
|
678
|
+
"type": "object"
|
|
679
|
+
},
|
|
680
|
+
"type": "object"
|
|
681
|
+
},
|
|
682
|
+
"attributes": {
|
|
683
|
+
"additionalProperties": {
|
|
684
|
+
"type": "string"
|
|
685
|
+
},
|
|
686
|
+
"description": "Maps WGSL variable names to feature property paths.",
|
|
687
|
+
"type": "object"
|
|
688
|
+
},
|
|
689
|
+
"dataRef": {
|
|
690
|
+
"description": "Name of the table the shader runs over, one invocation per feature.",
|
|
691
|
+
"type": "string"
|
|
692
|
+
},
|
|
693
|
+
"layerType": {
|
|
694
|
+
"$ref": "#/definitions/LayerType",
|
|
695
|
+
"description": "How the map draws the new table. Defaults to the type of the table it was computed from. Only used with `outputTableName`."
|
|
696
|
+
},
|
|
697
|
+
"outputColumnName": {
|
|
698
|
+
"description": "Column written when the shader returns one value.",
|
|
699
|
+
"type": "string"
|
|
700
|
+
},
|
|
701
|
+
"outputColumns": {
|
|
702
|
+
"items": {
|
|
703
|
+
"type": "string"
|
|
704
|
+
},
|
|
705
|
+
"minItems": 1,
|
|
706
|
+
"type": "array"
|
|
707
|
+
},
|
|
708
|
+
"outputTableName": {
|
|
709
|
+
"description": "Name of a new table that receives the result, so the source table stays as it is and later passes, maps and plots can read both. Without it, the pass writes into its `dataRef` table.",
|
|
710
|
+
"type": "string"
|
|
711
|
+
},
|
|
712
|
+
"type": {
|
|
713
|
+
"const": "gpgpu",
|
|
714
|
+
"description": "`gpgpu` is the default, so existing specifications need not set it.",
|
|
715
|
+
"type": "string"
|
|
716
|
+
},
|
|
717
|
+
"uniformArrays": {
|
|
718
|
+
"additionalProperties": {
|
|
719
|
+
"items": {
|
|
720
|
+
"type": "number"
|
|
721
|
+
},
|
|
722
|
+
"type": "array"
|
|
723
|
+
},
|
|
724
|
+
"type": "object"
|
|
725
|
+
},
|
|
726
|
+
"uniformMatrices": {
|
|
727
|
+
"additionalProperties": {
|
|
728
|
+
"anyOf": [
|
|
729
|
+
{
|
|
730
|
+
"properties": {
|
|
731
|
+
"cols": {
|
|
732
|
+
"type": "number"
|
|
733
|
+
},
|
|
734
|
+
"data": {
|
|
735
|
+
"items": {
|
|
736
|
+
"items": {
|
|
737
|
+
"type": "number"
|
|
738
|
+
},
|
|
739
|
+
"type": "array"
|
|
740
|
+
},
|
|
741
|
+
"type": "array"
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
"required": [
|
|
745
|
+
"data",
|
|
746
|
+
"cols"
|
|
747
|
+
],
|
|
748
|
+
"type": "object"
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"$ref": "#/definitions/FromFeatureDirective"
|
|
752
|
+
}
|
|
753
|
+
]
|
|
754
|
+
},
|
|
755
|
+
"description": "Matrix constants shared by every invocation, written inline or read from a feature.",
|
|
756
|
+
"type": "object"
|
|
757
|
+
},
|
|
758
|
+
"uniforms": {
|
|
759
|
+
"additionalProperties": {
|
|
760
|
+
"anyOf": [
|
|
761
|
+
{
|
|
762
|
+
"type": "number"
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"$ref": "#/definitions/FromFeatureDirective"
|
|
766
|
+
}
|
|
767
|
+
]
|
|
768
|
+
},
|
|
769
|
+
"description": "Scalar constants shared by every invocation, written inline or read from a feature.",
|
|
770
|
+
"type": "object"
|
|
771
|
+
},
|
|
772
|
+
"wgslFunction": {
|
|
773
|
+
"anyOf": [
|
|
774
|
+
{
|
|
775
|
+
"type": "string"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"items": {
|
|
779
|
+
"type": "string"
|
|
780
|
+
},
|
|
781
|
+
"type": "array"
|
|
782
|
+
}
|
|
783
|
+
],
|
|
784
|
+
"description": "WGSL body of the compute function. An array is joined with newlines, which keeps long shaders readable in JSON."
|
|
785
|
+
},
|
|
786
|
+
"workspace": {
|
|
787
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
788
|
+
"description": "Workspace of the tables the pass reads and writes."
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
"required": [
|
|
792
|
+
"attributes",
|
|
793
|
+
"dataRef",
|
|
794
|
+
"outputColumnName",
|
|
795
|
+
"wgslFunction"
|
|
796
|
+
],
|
|
797
|
+
"type": "object"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"properties": {
|
|
801
|
+
"attributeArrays": {
|
|
802
|
+
"additionalProperties": {
|
|
803
|
+
"type": "number"
|
|
804
|
+
},
|
|
805
|
+
"type": "object"
|
|
806
|
+
},
|
|
807
|
+
"attributeMatrices": {
|
|
808
|
+
"additionalProperties": {
|
|
809
|
+
"properties": {
|
|
810
|
+
"cols": {
|
|
811
|
+
"type": "number"
|
|
812
|
+
},
|
|
813
|
+
"rows": {
|
|
814
|
+
"anyOf": [
|
|
815
|
+
{
|
|
816
|
+
"type": "number"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"const": "auto",
|
|
820
|
+
"type": "string"
|
|
821
|
+
}
|
|
822
|
+
]
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
"required": [
|
|
826
|
+
"rows",
|
|
827
|
+
"cols"
|
|
828
|
+
],
|
|
829
|
+
"type": "object"
|
|
830
|
+
},
|
|
831
|
+
"type": "object"
|
|
832
|
+
},
|
|
833
|
+
"attributes": {
|
|
834
|
+
"additionalProperties": {
|
|
835
|
+
"type": "string"
|
|
836
|
+
},
|
|
837
|
+
"description": "Maps WGSL variable names to feature property paths.",
|
|
838
|
+
"type": "object"
|
|
839
|
+
},
|
|
840
|
+
"dataRef": {
|
|
841
|
+
"description": "Name of the table the shader runs over, one invocation per feature.",
|
|
842
|
+
"type": "string"
|
|
843
|
+
},
|
|
844
|
+
"layerType": {
|
|
845
|
+
"$ref": "#/definitions/LayerType",
|
|
846
|
+
"description": "How the map draws the new table. Defaults to the type of the table it was computed from. Only used with `outputTableName`."
|
|
847
|
+
},
|
|
848
|
+
"outputColumnName": {
|
|
849
|
+
"type": "string"
|
|
850
|
+
},
|
|
851
|
+
"outputColumns": {
|
|
852
|
+
"description": "Columns written when the shader returns several values, in order.",
|
|
853
|
+
"items": {
|
|
854
|
+
"type": "string"
|
|
855
|
+
},
|
|
856
|
+
"minItems": 1,
|
|
857
|
+
"type": "array"
|
|
858
|
+
},
|
|
859
|
+
"outputTableName": {
|
|
860
|
+
"description": "Name of a new table that receives the result, so the source table stays as it is and later passes, maps and plots can read both. Without it, the pass writes into its `dataRef` table.",
|
|
861
|
+
"type": "string"
|
|
862
|
+
},
|
|
863
|
+
"type": {
|
|
864
|
+
"const": "gpgpu",
|
|
865
|
+
"description": "`gpgpu` is the default, so existing specifications need not set it.",
|
|
866
|
+
"type": "string"
|
|
867
|
+
},
|
|
868
|
+
"uniformArrays": {
|
|
869
|
+
"additionalProperties": {
|
|
870
|
+
"items": {
|
|
871
|
+
"type": "number"
|
|
872
|
+
},
|
|
873
|
+
"type": "array"
|
|
874
|
+
},
|
|
875
|
+
"type": "object"
|
|
876
|
+
},
|
|
877
|
+
"uniformMatrices": {
|
|
878
|
+
"additionalProperties": {
|
|
879
|
+
"anyOf": [
|
|
880
|
+
{
|
|
881
|
+
"properties": {
|
|
882
|
+
"cols": {
|
|
883
|
+
"type": "number"
|
|
884
|
+
},
|
|
885
|
+
"data": {
|
|
886
|
+
"items": {
|
|
887
|
+
"items": {
|
|
888
|
+
"type": "number"
|
|
889
|
+
},
|
|
890
|
+
"type": "array"
|
|
891
|
+
},
|
|
892
|
+
"type": "array"
|
|
893
|
+
}
|
|
894
|
+
},
|
|
895
|
+
"required": [
|
|
896
|
+
"data",
|
|
897
|
+
"cols"
|
|
898
|
+
],
|
|
899
|
+
"type": "object"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"$ref": "#/definitions/FromFeatureDirective"
|
|
903
|
+
}
|
|
904
|
+
]
|
|
905
|
+
},
|
|
906
|
+
"description": "Matrix constants shared by every invocation, written inline or read from a feature.",
|
|
907
|
+
"type": "object"
|
|
908
|
+
},
|
|
909
|
+
"uniforms": {
|
|
910
|
+
"additionalProperties": {
|
|
911
|
+
"anyOf": [
|
|
912
|
+
{
|
|
913
|
+
"type": "number"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"$ref": "#/definitions/FromFeatureDirective"
|
|
917
|
+
}
|
|
918
|
+
]
|
|
919
|
+
},
|
|
920
|
+
"description": "Scalar constants shared by every invocation, written inline or read from a feature.",
|
|
921
|
+
"type": "object"
|
|
922
|
+
},
|
|
923
|
+
"wgslFunction": {
|
|
924
|
+
"anyOf": [
|
|
925
|
+
{
|
|
926
|
+
"type": "string"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"items": {
|
|
930
|
+
"type": "string"
|
|
931
|
+
},
|
|
932
|
+
"type": "array"
|
|
933
|
+
}
|
|
934
|
+
],
|
|
935
|
+
"description": "WGSL body of the compute function. An array is joined with newlines, which keeps long shaders readable in JSON."
|
|
936
|
+
},
|
|
937
|
+
"workspace": {
|
|
938
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
939
|
+
"description": "Workspace of the tables the pass reads and writes."
|
|
940
|
+
}
|
|
941
|
+
},
|
|
942
|
+
"required": [
|
|
943
|
+
"attributes",
|
|
944
|
+
"dataRef",
|
|
945
|
+
"outputColumns",
|
|
946
|
+
"wgslFunction"
|
|
947
|
+
],
|
|
948
|
+
"type": "object"
|
|
784
949
|
}
|
|
785
|
-
},
|
|
786
|
-
"required": [
|
|
787
|
-
"geometries",
|
|
788
|
-
"type"
|
|
789
950
|
],
|
|
790
|
-
"
|
|
951
|
+
"description": "A GPGPU compute pass over a table. Results are written to `feature.properties.compute.<column>`. It needs `outputColumnName` for a single result or `outputColumns` for several."
|
|
791
952
|
},
|
|
792
|
-
"
|
|
793
|
-
"
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
{
|
|
802
|
-
"$ref": "#/definitions/WktGeometryColumns"
|
|
803
|
-
}
|
|
953
|
+
"HeatmapAggregateFunction": {
|
|
954
|
+
"description": "How the rows near a heatmap cell are combined into its value: any aggregate function but `collect`, which lists the rows, while a cell holds one value.",
|
|
955
|
+
"enum": [
|
|
956
|
+
"sum",
|
|
957
|
+
"avg",
|
|
958
|
+
"count",
|
|
959
|
+
"min",
|
|
960
|
+
"max",
|
|
961
|
+
"weighted"
|
|
804
962
|
],
|
|
805
|
-
"
|
|
963
|
+
"type": "string"
|
|
806
964
|
},
|
|
807
965
|
"HeatmapSourceSpec": {
|
|
808
966
|
"description": "Aggregates a table onto a regular grid, producing a raster heatmap table.",
|
|
@@ -824,10 +982,12 @@
|
|
|
824
982
|
"type": "object"
|
|
825
983
|
},
|
|
826
984
|
"groupBy": {
|
|
985
|
+
"description": "Aggregate the rows near each cell, one raster band per entry.",
|
|
827
986
|
"items": {
|
|
828
987
|
"properties": {
|
|
829
988
|
"aggregateFn": {
|
|
830
|
-
"$ref": "#/definitions/
|
|
989
|
+
"$ref": "#/definitions/HeatmapAggregateFunction",
|
|
990
|
+
"description": "How the rows combine into the cell's value: any aggregate but `collect`, which lists rows, while a cell holds one value."
|
|
831
991
|
},
|
|
832
992
|
"column": {
|
|
833
993
|
"type": "string"
|
|
@@ -840,11 +1000,20 @@
|
|
|
840
1000
|
},
|
|
841
1001
|
"type": "array"
|
|
842
1002
|
},
|
|
1003
|
+
"joinDataRef": {
|
|
1004
|
+
"description": "Table whose rows are aggregated onto the grid.",
|
|
1005
|
+
"type": "string"
|
|
1006
|
+
},
|
|
843
1007
|
"near": {
|
|
844
|
-
"description": "
|
|
1008
|
+
"description": "Which rows count toward a grid cell: those within `distance` of the cell's center.",
|
|
845
1009
|
"properties": {
|
|
846
1010
|
"distance": {
|
|
1011
|
+
"description": "Radius around each cell's center, in workspace units.",
|
|
847
1012
|
"type": "number"
|
|
1013
|
+
},
|
|
1014
|
+
"useCentroid": {
|
|
1015
|
+
"description": "Measure from the cell's center to each row's centroid, the default. With `false`, measure to the nearest point of the row's geometry, so a long road counts in every cell within `distance` of any part of it.",
|
|
1016
|
+
"type": "boolean"
|
|
848
1017
|
}
|
|
849
1018
|
},
|
|
850
1019
|
"required": [
|
|
@@ -856,20 +1025,20 @@
|
|
|
856
1025
|
"description": "Name of the table this source creates. Later sources, compute passes, maps and plots refer to it by this name.",
|
|
857
1026
|
"type": "string"
|
|
858
1027
|
},
|
|
859
|
-
"tableJoinName": {
|
|
860
|
-
"description": "Table whose rows are aggregated onto the grid.",
|
|
861
|
-
"type": "string"
|
|
862
|
-
},
|
|
863
1028
|
"type": {
|
|
864
1029
|
"const": "heatmap",
|
|
865
1030
|
"type": "string"
|
|
1031
|
+
},
|
|
1032
|
+
"workspace": {
|
|
1033
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
1034
|
+
"description": "Workspace the table is created in."
|
|
866
1035
|
}
|
|
867
1036
|
},
|
|
868
1037
|
"required": [
|
|
869
1038
|
"grid",
|
|
1039
|
+
"joinDataRef",
|
|
870
1040
|
"near",
|
|
871
1041
|
"outputTableName",
|
|
872
|
-
"tableJoinName",
|
|
873
1042
|
"type"
|
|
874
1043
|
],
|
|
875
1044
|
"type": "object"
|
|
@@ -902,8 +1071,13 @@
|
|
|
902
1071
|
"height": {
|
|
903
1072
|
"type": "number"
|
|
904
1073
|
},
|
|
1074
|
+
"id": {
|
|
1075
|
+
"description": "Name of the plot, which a link in `links` uses as its `source`. Unique among the ids of the maps and plots. Without it a plot is known by its `dataRef`, so two plots of one table need ids: a run refuses two plots known by one name.",
|
|
1076
|
+
"minLength": 1,
|
|
1077
|
+
"type": "string"
|
|
1078
|
+
},
|
|
905
1079
|
"mapRef": {
|
|
906
|
-
"description": "`dataRef` of the map layer this plot links its selection to.",
|
|
1080
|
+
"description": "`dataRef` of the map layer this plot links its selection to. A shorthand for a link in `links`.",
|
|
907
1081
|
"type": "string"
|
|
908
1082
|
},
|
|
909
1083
|
"margins": {
|
|
@@ -949,6 +1123,10 @@
|
|
|
949
1123
|
},
|
|
950
1124
|
"width": {
|
|
951
1125
|
"type": "number"
|
|
1126
|
+
},
|
|
1127
|
+
"workspace": {
|
|
1128
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
1129
|
+
"description": "Workspace the table is read from."
|
|
952
1130
|
}
|
|
953
1131
|
},
|
|
954
1132
|
"required": [
|
|
@@ -1027,6 +1205,10 @@
|
|
|
1027
1205
|
"JoinSourceSpec": {
|
|
1028
1206
|
"description": "Spatially joins one table onto another. The result replaces the root table.",
|
|
1029
1207
|
"properties": {
|
|
1208
|
+
"dataRef": {
|
|
1209
|
+
"description": "Table that receives the joined columns.",
|
|
1210
|
+
"type": "string"
|
|
1211
|
+
},
|
|
1030
1212
|
"groupBy": {
|
|
1031
1213
|
"description": "Aggregate the joined rows per root feature.",
|
|
1032
1214
|
"items": {
|
|
@@ -1048,13 +1230,19 @@
|
|
|
1048
1230
|
},
|
|
1049
1231
|
"type": "array"
|
|
1050
1232
|
},
|
|
1233
|
+
"joinDataRef": {
|
|
1234
|
+
"description": "Table whose rows are joined onto the root table.",
|
|
1235
|
+
"type": "string"
|
|
1236
|
+
},
|
|
1051
1237
|
"near": {
|
|
1052
|
-
"description": "Join rows within `distance`
|
|
1238
|
+
"description": "Join the rows within `distance` of each root feature instead of the rows that intersect it.",
|
|
1053
1239
|
"properties": {
|
|
1054
1240
|
"distance": {
|
|
1241
|
+
"description": "Greatest distance from a root feature to a row it receives, in workspace units.",
|
|
1055
1242
|
"type": "number"
|
|
1056
1243
|
},
|
|
1057
1244
|
"useCentroid": {
|
|
1245
|
+
"description": "Measure from the root feature's centroid to the row's centroid, the default. With `false`, measure between the geometries themselves, from their nearest points, so features that touch are 0 apart.",
|
|
1058
1246
|
"type": "boolean"
|
|
1059
1247
|
}
|
|
1060
1248
|
},
|
|
@@ -1063,23 +1251,19 @@
|
|
|
1063
1251
|
],
|
|
1064
1252
|
"type": "object"
|
|
1065
1253
|
},
|
|
1066
|
-
"tableJoinName": {
|
|
1067
|
-
"description": "Table whose rows are joined onto the root table.",
|
|
1068
|
-
"type": "string"
|
|
1069
|
-
},
|
|
1070
|
-
"tableRootName": {
|
|
1071
|
-
"description": "Table that receives the joined columns.",
|
|
1072
|
-
"type": "string"
|
|
1073
|
-
},
|
|
1074
1254
|
"type": {
|
|
1075
1255
|
"const": "join",
|
|
1076
1256
|
"type": "string"
|
|
1257
|
+
},
|
|
1258
|
+
"workspace": {
|
|
1259
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
1260
|
+
"description": "Workspace of the two tables."
|
|
1077
1261
|
}
|
|
1078
1262
|
},
|
|
1079
1263
|
"required": [
|
|
1080
1264
|
"type",
|
|
1081
|
-
"
|
|
1082
|
-
"
|
|
1265
|
+
"dataRef",
|
|
1266
|
+
"joinDataRef"
|
|
1083
1267
|
],
|
|
1084
1268
|
"type": "object"
|
|
1085
1269
|
},
|
|
@@ -1113,6 +1297,10 @@
|
|
|
1113
1297
|
"type": {
|
|
1114
1298
|
"const": "json",
|
|
1115
1299
|
"type": "string"
|
|
1300
|
+
},
|
|
1301
|
+
"workspace": {
|
|
1302
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
1303
|
+
"description": "Workspace the table is created in."
|
|
1116
1304
|
}
|
|
1117
1305
|
},
|
|
1118
1306
|
"required": [
|
|
@@ -1163,6 +1351,32 @@
|
|
|
1163
1351
|
],
|
|
1164
1352
|
"type": "string"
|
|
1165
1353
|
},
|
|
1354
|
+
"LayoutSpec": {
|
|
1355
|
+
"description": "How the maps and plots of a specification are arranged on the page.\n\nThe engine does not read it: the host that creates the map canvases and the plot elements does, through `arrangeViews`, which gives each view its pane.",
|
|
1356
|
+
"properties": {
|
|
1357
|
+
"columns": {
|
|
1358
|
+
"description": "Number of columns of a `grid`, a whole number. Defaults to 2.",
|
|
1359
|
+
"minimum": 1,
|
|
1360
|
+
"multipleOf": 1,
|
|
1361
|
+
"type": "number"
|
|
1362
|
+
},
|
|
1363
|
+
"gap": {
|
|
1364
|
+
"description": "Space between views, in pixels. Defaults to 0.",
|
|
1365
|
+
"minimum": 0,
|
|
1366
|
+
"type": "number"
|
|
1367
|
+
},
|
|
1368
|
+
"type": {
|
|
1369
|
+
"description": "`vertical` stacks the views, `horizontal` puts them side by side, `grid` fills `columns` columns. Defaults to `vertical`.",
|
|
1370
|
+
"enum": [
|
|
1371
|
+
"vertical",
|
|
1372
|
+
"horizontal",
|
|
1373
|
+
"grid"
|
|
1374
|
+
],
|
|
1375
|
+
"type": "string"
|
|
1376
|
+
}
|
|
1377
|
+
},
|
|
1378
|
+
"type": "object"
|
|
1379
|
+
},
|
|
1166
1380
|
"LinePlotSpec": {
|
|
1167
1381
|
"description": "A line chart over a `reduce-series` or `binning-events` transform, which it requires.",
|
|
1168
1382
|
"properties": {
|
|
@@ -1191,8 +1405,13 @@
|
|
|
1191
1405
|
"height": {
|
|
1192
1406
|
"type": "number"
|
|
1193
1407
|
},
|
|
1408
|
+
"id": {
|
|
1409
|
+
"description": "Name of the plot, which a link in `links` uses as its `source`. Unique among the ids of the maps and plots. Without it a plot is known by its `dataRef`, so two plots of one table need ids: a run refuses two plots known by one name.",
|
|
1410
|
+
"minLength": 1,
|
|
1411
|
+
"type": "string"
|
|
1412
|
+
},
|
|
1194
1413
|
"mapRef": {
|
|
1195
|
-
"description": "`dataRef` of the map layer this plot links its selection to.",
|
|
1414
|
+
"description": "`dataRef` of the map layer this plot links its selection to. A shorthand for a link in `links`.",
|
|
1196
1415
|
"type": "string"
|
|
1197
1416
|
},
|
|
1198
1417
|
"margins": {
|
|
@@ -1241,6 +1460,10 @@
|
|
|
1241
1460
|
},
|
|
1242
1461
|
"width": {
|
|
1243
1462
|
"type": "number"
|
|
1463
|
+
},
|
|
1464
|
+
"workspace": {
|
|
1465
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
1466
|
+
"description": "Workspace the table is read from."
|
|
1244
1467
|
}
|
|
1245
1468
|
},
|
|
1246
1469
|
"required": [
|
|
@@ -1276,6 +1499,31 @@
|
|
|
1276
1499
|
],
|
|
1277
1500
|
"type": "object"
|
|
1278
1501
|
},
|
|
1502
|
+
"LinkSpec": {
|
|
1503
|
+
"description": "Links a plot to a layer of a map: selecting in the plot highlights the same features on the layer, and picking on the layer selects them in the plot. Read by the Autark adapter; the deck.gl adapter ignores it.",
|
|
1504
|
+
"properties": {
|
|
1505
|
+
"layer": {
|
|
1506
|
+
"description": "Layer of the target map, by its `title`, else its `dataRef`. Defaults to the layer that draws the plot's `dataRef`.",
|
|
1507
|
+
"minLength": 1,
|
|
1508
|
+
"type": "string"
|
|
1509
|
+
},
|
|
1510
|
+
"source": {
|
|
1511
|
+
"description": "`id` of the plot, or its `dataRef` when it has no id.",
|
|
1512
|
+
"minLength": 1,
|
|
1513
|
+
"type": "string"
|
|
1514
|
+
},
|
|
1515
|
+
"target": {
|
|
1516
|
+
"description": "`id` of the map that highlights.",
|
|
1517
|
+
"minLength": 1,
|
|
1518
|
+
"type": "string"
|
|
1519
|
+
}
|
|
1520
|
+
},
|
|
1521
|
+
"required": [
|
|
1522
|
+
"source",
|
|
1523
|
+
"target"
|
|
1524
|
+
],
|
|
1525
|
+
"type": "object"
|
|
1526
|
+
},
|
|
1279
1527
|
"MapLayerSpec": {
|
|
1280
1528
|
"description": "One layer drawn by a map.",
|
|
1281
1529
|
"if": {
|
|
@@ -1398,6 +1646,11 @@
|
|
|
1398
1646
|
},
|
|
1399
1647
|
"type": "array"
|
|
1400
1648
|
},
|
|
1649
|
+
"pointSize": {
|
|
1650
|
+
"description": "Radius of each point of a points layer, in meters on the ground. The Autark adapter converts it to the workspace's planar units at the middle of the layer's extent, where World Mercator, the default, stretches a meter by about 1.34 at Chicago, and passes it as autk-map's `pointSize`. Without it, autk-map's radius of 64 planar units applies. Other layers and the deck.gl adapter ignore it.",
|
|
1651
|
+
"exclusiveMinimum": 0,
|
|
1652
|
+
"type": "number"
|
|
1653
|
+
},
|
|
1401
1654
|
"selectFields": {
|
|
1402
1655
|
"description": "Columns whose values name the rows a pick on this layer selects, so an app can link the selection to other tables that hold those columns. Neither adapter reads it: the Autark adapter's `map:picking` events still report feature ids.",
|
|
1403
1656
|
"items": {
|
|
@@ -1448,6 +1701,15 @@
|
|
|
1448
1701
|
"MapSpec": {
|
|
1449
1702
|
"description": "A map view.",
|
|
1450
1703
|
"properties": {
|
|
1704
|
+
"camera": {
|
|
1705
|
+
"$ref": "#/definitions/CameraSpec",
|
|
1706
|
+
"description": "Where the map looks from."
|
|
1707
|
+
},
|
|
1708
|
+
"id": {
|
|
1709
|
+
"description": "Name of the map, which a link in `links` uses as its `target`. Unique among the ids of the maps and plots.",
|
|
1710
|
+
"minLength": 1,
|
|
1711
|
+
"type": "string"
|
|
1712
|
+
},
|
|
1451
1713
|
"layerRefs": {
|
|
1452
1714
|
"description": "Layers to draw, bottom first. Each names a table with `dataRef`.",
|
|
1453
1715
|
"items": {
|
|
@@ -1458,6 +1720,10 @@
|
|
|
1458
1720
|
"style": {
|
|
1459
1721
|
"description": "Map style.",
|
|
1460
1722
|
"type": "string"
|
|
1723
|
+
},
|
|
1724
|
+
"workspace": {
|
|
1725
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
1726
|
+
"description": "Workspace the map reads its layers' tables from."
|
|
1461
1727
|
}
|
|
1462
1728
|
},
|
|
1463
1729
|
"required": [
|
|
@@ -1654,6 +1920,10 @@
|
|
|
1654
1920
|
"type": {
|
|
1655
1921
|
"const": "osm",
|
|
1656
1922
|
"type": "string"
|
|
1923
|
+
},
|
|
1924
|
+
"workspace": {
|
|
1925
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
1926
|
+
"description": "Workspace the table is created in."
|
|
1657
1927
|
}
|
|
1658
1928
|
},
|
|
1659
1929
|
"required": [
|
|
@@ -1716,8 +1986,13 @@
|
|
|
1716
1986
|
"height": {
|
|
1717
1987
|
"type": "number"
|
|
1718
1988
|
},
|
|
1989
|
+
"id": {
|
|
1990
|
+
"description": "Name of the plot, which a link in `links` uses as its `source`. Unique among the ids of the maps and plots. Without it a plot is known by its `dataRef`, so two plots of one table need ids: a run refuses two plots known by one name.",
|
|
1991
|
+
"minLength": 1,
|
|
1992
|
+
"type": "string"
|
|
1993
|
+
},
|
|
1719
1994
|
"mapRef": {
|
|
1720
|
-
"description": "`dataRef` of the map layer this plot links its selection to.",
|
|
1995
|
+
"description": "`dataRef` of the map layer this plot links its selection to. A shorthand for a link in `links`.",
|
|
1721
1996
|
"type": "string"
|
|
1722
1997
|
},
|
|
1723
1998
|
"margins": {
|
|
@@ -1763,6 +2038,10 @@
|
|
|
1763
2038
|
},
|
|
1764
2039
|
"width": {
|
|
1765
2040
|
"type": "number"
|
|
2041
|
+
},
|
|
2042
|
+
"workspace": {
|
|
2043
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
2044
|
+
"description": "Workspace the table is read from."
|
|
1766
2045
|
}
|
|
1767
2046
|
},
|
|
1768
2047
|
"required": [
|
|
@@ -2076,6 +2355,213 @@
|
|
|
2076
2355
|
},
|
|
2077
2356
|
"type": "object"
|
|
2078
2357
|
},
|
|
2358
|
+
"RenderComputeSpec": {
|
|
2359
|
+
"description": "A render-based compute pass: from each viewpoint of a table it renders the layers in several directions on the GPU and counts what each frame shows (a visibility or sky-view metric). The result, the viewpoints table's features (one point per window with the `building-windows` strategy) with the metrics in `feature.properties.compute.render`, is stored as the table `outputTableName`. Read by the Autark adapter only.",
|
|
2360
|
+
"properties": {
|
|
2361
|
+
"aggregation": {
|
|
2362
|
+
"anyOf": [
|
|
2363
|
+
{
|
|
2364
|
+
"properties": {
|
|
2365
|
+
"backgroundLayerType": {
|
|
2366
|
+
"description": "Name of that class. Defaults to `background`, and it must not be the type of a rendered layer.",
|
|
2367
|
+
"type": "string"
|
|
2368
|
+
},
|
|
2369
|
+
"includeBackground": {
|
|
2370
|
+
"description": "Also count the pixels where no layer is drawn, such as the sky, as one more class.",
|
|
2371
|
+
"type": "boolean"
|
|
2372
|
+
},
|
|
2373
|
+
"type": {
|
|
2374
|
+
"const": "classes",
|
|
2375
|
+
"type": "string"
|
|
2376
|
+
}
|
|
2377
|
+
},
|
|
2378
|
+
"required": [
|
|
2379
|
+
"type"
|
|
2380
|
+
],
|
|
2381
|
+
"type": "object"
|
|
2382
|
+
},
|
|
2383
|
+
{
|
|
2384
|
+
"properties": {
|
|
2385
|
+
"type": {
|
|
2386
|
+
"const": "objects",
|
|
2387
|
+
"type": "string"
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2390
|
+
"required": [
|
|
2391
|
+
"type"
|
|
2392
|
+
],
|
|
2393
|
+
"type": "object"
|
|
2394
|
+
}
|
|
2395
|
+
],
|
|
2396
|
+
"description": "What each feature of the result receives: `classes`, the share of its frames' pixels each layer type covers, from 0 to 1; `objects`, for each object seen, the share of its frames that show it."
|
|
2397
|
+
},
|
|
2398
|
+
"camera": {
|
|
2399
|
+
"description": "The lens of the frames each viewpoint renders. Unlike a map's `camera`, which sets where a map view looks from, it sets no position or direction: `viewpoints` does.",
|
|
2400
|
+
"properties": {
|
|
2401
|
+
"clip": {
|
|
2402
|
+
"description": "How near and how far from the viewpoint the frames show the layers, in workspace units.",
|
|
2403
|
+
"properties": {
|
|
2404
|
+
"far": {
|
|
2405
|
+
"description": "Farthest distance drawn. Defaults to 5000.",
|
|
2406
|
+
"type": "number"
|
|
2407
|
+
},
|
|
2408
|
+
"near": {
|
|
2409
|
+
"description": "Nearest distance drawn. Defaults to 1.",
|
|
2410
|
+
"type": "number"
|
|
2411
|
+
}
|
|
2412
|
+
},
|
|
2413
|
+
"type": "object"
|
|
2414
|
+
},
|
|
2415
|
+
"fov": {
|
|
2416
|
+
"description": "Field of view of each square frame, in degrees. Defaults to 90.",
|
|
2417
|
+
"type": "number"
|
|
2418
|
+
}
|
|
2419
|
+
},
|
|
2420
|
+
"type": "object"
|
|
2421
|
+
},
|
|
2422
|
+
"layerType": {
|
|
2423
|
+
"$ref": "#/definitions/LayerType",
|
|
2424
|
+
"description": "How the map draws the new table. Defaults to the type of the viewpoints table, or to `points` with the `building-windows` strategy, whose result holds one point per window."
|
|
2425
|
+
},
|
|
2426
|
+
"layers": {
|
|
2427
|
+
"description": "Layers to render.",
|
|
2428
|
+
"items": {
|
|
2429
|
+
"$ref": "#/definitions/RenderLayerSpec"
|
|
2430
|
+
},
|
|
2431
|
+
"minItems": 1,
|
|
2432
|
+
"type": "array"
|
|
2433
|
+
},
|
|
2434
|
+
"outputTableName": {
|
|
2435
|
+
"description": "Name of the table that receives the result. Later passes, maps and plots read it by this name.",
|
|
2436
|
+
"type": "string"
|
|
2437
|
+
},
|
|
2438
|
+
"tileSize": {
|
|
2439
|
+
"description": "Frame size in pixels.",
|
|
2440
|
+
"minimum": 8,
|
|
2441
|
+
"multipleOf": 8,
|
|
2442
|
+
"type": "number"
|
|
2443
|
+
},
|
|
2444
|
+
"type": {
|
|
2445
|
+
"const": "render",
|
|
2446
|
+
"description": "Selects a render pass.",
|
|
2447
|
+
"type": "string"
|
|
2448
|
+
},
|
|
2449
|
+
"viewpoints": {
|
|
2450
|
+
"description": "Where the frames are rendered from: the features of a table, and the directions each one looks in.",
|
|
2451
|
+
"properties": {
|
|
2452
|
+
"dataRef": {
|
|
2453
|
+
"description": "Name of the table whose features are the viewpoints.",
|
|
2454
|
+
"type": "string"
|
|
2455
|
+
},
|
|
2456
|
+
"sampling": {
|
|
2457
|
+
"description": "The directions each viewpoint looks in, around the horizon. Read with the `centroid` strategy only.",
|
|
2458
|
+
"properties": {
|
|
2459
|
+
"azimuthOffsetDeg": {
|
|
2460
|
+
"description": "Angle of the first direction, in degrees counterclockwise from east (0 looks east, 90 north); the others follow every 360 / `directions` degrees. Defaults to 0.",
|
|
2461
|
+
"type": "number"
|
|
2462
|
+
},
|
|
2463
|
+
"directions": {
|
|
2464
|
+
"description": "Directions sampled around each viewpoint, evenly spaced. Defaults to 1.",
|
|
2465
|
+
"type": "number"
|
|
2466
|
+
},
|
|
2467
|
+
"pitchDeg": {
|
|
2468
|
+
"description": "Angle of every direction above the horizontal, in degrees: up when positive, down when negative. Defaults to 0.",
|
|
2469
|
+
"type": "number"
|
|
2470
|
+
}
|
|
2471
|
+
},
|
|
2472
|
+
"type": "object"
|
|
2473
|
+
},
|
|
2474
|
+
"strategy": {
|
|
2475
|
+
"anyOf": [
|
|
2476
|
+
{
|
|
2477
|
+
"properties": {
|
|
2478
|
+
"type": {
|
|
2479
|
+
"const": "centroid",
|
|
2480
|
+
"type": "string"
|
|
2481
|
+
}
|
|
2482
|
+
},
|
|
2483
|
+
"required": [
|
|
2484
|
+
"type"
|
|
2485
|
+
],
|
|
2486
|
+
"type": "object"
|
|
2487
|
+
},
|
|
2488
|
+
{
|
|
2489
|
+
"properties": {
|
|
2490
|
+
"floors": {
|
|
2491
|
+
"description": "Rows of windows on each facade, spread evenly up the building's height.",
|
|
2492
|
+
"type": "number"
|
|
2493
|
+
},
|
|
2494
|
+
"type": {
|
|
2495
|
+
"const": "building-windows",
|
|
2496
|
+
"type": "string"
|
|
2497
|
+
}
|
|
2498
|
+
},
|
|
2499
|
+
"required": [
|
|
2500
|
+
"type",
|
|
2501
|
+
"floors"
|
|
2502
|
+
],
|
|
2503
|
+
"type": "object"
|
|
2504
|
+
}
|
|
2505
|
+
],
|
|
2506
|
+
"description": "Where the viewpoints are: each feature's centroid (the default), looking in the directions `sampling` sets, or `building-windows`: windows along each building's facades, each looking out from the facade and 30 degrees to either side. The result then holds one point per window instead of the table's features."
|
|
2507
|
+
}
|
|
2508
|
+
},
|
|
2509
|
+
"required": [
|
|
2510
|
+
"dataRef"
|
|
2511
|
+
],
|
|
2512
|
+
"type": "object"
|
|
2513
|
+
},
|
|
2514
|
+
"workspace": {
|
|
2515
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
2516
|
+
"description": "Workspace of the tables the pass reads and writes."
|
|
2517
|
+
}
|
|
2518
|
+
},
|
|
2519
|
+
"required": [
|
|
2520
|
+
"type",
|
|
2521
|
+
"outputTableName",
|
|
2522
|
+
"layers",
|
|
2523
|
+
"viewpoints",
|
|
2524
|
+
"aggregation"
|
|
2525
|
+
],
|
|
2526
|
+
"type": "object"
|
|
2527
|
+
},
|
|
2528
|
+
"RenderLayerSpec": {
|
|
2529
|
+
"description": "A table drawn into the frames a render pass samples.",
|
|
2530
|
+
"properties": {
|
|
2531
|
+
"dataRef": {
|
|
2532
|
+
"description": "Name of the table to draw.",
|
|
2533
|
+
"type": "string"
|
|
2534
|
+
},
|
|
2535
|
+
"id": {
|
|
2536
|
+
"description": "Name given to the layer in the pass. Letters, digits and underscores, not starting with a digit.",
|
|
2537
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
2538
|
+
"type": "string"
|
|
2539
|
+
},
|
|
2540
|
+
"objectIdProperty": {
|
|
2541
|
+
"description": "Property that holds the object's id, for `aggregation.type` `objects`.",
|
|
2542
|
+
"type": "string"
|
|
2543
|
+
},
|
|
2544
|
+
"type": {
|
|
2545
|
+
"description": "How the layer is drawn into the frames. A render pass draws no points.",
|
|
2546
|
+
"enum": [
|
|
2547
|
+
"surface",
|
|
2548
|
+
"parks",
|
|
2549
|
+
"water",
|
|
2550
|
+
"roads",
|
|
2551
|
+
"buildings",
|
|
2552
|
+
"polygons",
|
|
2553
|
+
"polylines"
|
|
2554
|
+
],
|
|
2555
|
+
"type": "string"
|
|
2556
|
+
}
|
|
2557
|
+
},
|
|
2558
|
+
"required": [
|
|
2559
|
+
"id",
|
|
2560
|
+
"dataRef",
|
|
2561
|
+
"type"
|
|
2562
|
+
],
|
|
2563
|
+
"type": "object"
|
|
2564
|
+
},
|
|
2079
2565
|
"ScatterPlotSpec": {
|
|
2080
2566
|
"description": "A scatterplot of two or more columns.",
|
|
2081
2567
|
"properties": {
|
|
@@ -2104,8 +2590,13 @@
|
|
|
2104
2590
|
"height": {
|
|
2105
2591
|
"type": "number"
|
|
2106
2592
|
},
|
|
2593
|
+
"id": {
|
|
2594
|
+
"description": "Name of the plot, which a link in `links` uses as its `source`. Unique among the ids of the maps and plots. Without it a plot is known by its `dataRef`, so two plots of one table need ids: a run refuses two plots known by one name.",
|
|
2595
|
+
"minLength": 1,
|
|
2596
|
+
"type": "string"
|
|
2597
|
+
},
|
|
2107
2598
|
"mapRef": {
|
|
2108
|
-
"description": "`dataRef` of the map layer this plot links its selection to.",
|
|
2599
|
+
"description": "`dataRef` of the map layer this plot links its selection to. A shorthand for a link in `links`.",
|
|
2109
2600
|
"type": "string"
|
|
2110
2601
|
},
|
|
2111
2602
|
"margins": {
|
|
@@ -2151,6 +2642,10 @@
|
|
|
2151
2642
|
},
|
|
2152
2643
|
"width": {
|
|
2153
2644
|
"type": "number"
|
|
2645
|
+
},
|
|
2646
|
+
"workspace": {
|
|
2647
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
2648
|
+
"description": "Workspace the table is read from."
|
|
2154
2649
|
}
|
|
2155
2650
|
},
|
|
2156
2651
|
"required": [
|
|
@@ -2188,8 +2683,13 @@
|
|
|
2188
2683
|
"height": {
|
|
2189
2684
|
"type": "number"
|
|
2190
2685
|
},
|
|
2686
|
+
"id": {
|
|
2687
|
+
"description": "Name of the plot, which a link in `links` uses as its `source`. Unique among the ids of the maps and plots. Without it a plot is known by its `dataRef`, so two plots of one table need ids: a run refuses two plots known by one name.",
|
|
2688
|
+
"minLength": 1,
|
|
2689
|
+
"type": "string"
|
|
2690
|
+
},
|
|
2191
2691
|
"mapRef": {
|
|
2192
|
-
"description": "`dataRef` of the map layer this plot links its selection to.",
|
|
2692
|
+
"description": "`dataRef` of the map layer this plot links its selection to. A shorthand for a link in `links`.",
|
|
2193
2693
|
"type": "string"
|
|
2194
2694
|
},
|
|
2195
2695
|
"margins": {
|
|
@@ -2235,6 +2735,10 @@
|
|
|
2235
2735
|
},
|
|
2236
2736
|
"width": {
|
|
2237
2737
|
"type": "number"
|
|
2738
|
+
},
|
|
2739
|
+
"workspace": {
|
|
2740
|
+
"$ref": "#/definitions/WorkspaceName",
|
|
2741
|
+
"description": "Workspace the table is read from."
|
|
2238
2742
|
}
|
|
2239
2743
|
},
|
|
2240
2744
|
"required": [
|
|
@@ -2265,6 +2769,17 @@
|
|
|
2265
2769
|
},
|
|
2266
2770
|
"type": "array"
|
|
2267
2771
|
},
|
|
2772
|
+
"layout": {
|
|
2773
|
+
"$ref": "#/definitions/LayoutSpec",
|
|
2774
|
+
"description": "How the host arranges the maps and plots."
|
|
2775
|
+
},
|
|
2776
|
+
"links": {
|
|
2777
|
+
"description": "Links between plots and map layers. The engine does not read them; the adapter wires them once the maps and plots exist.",
|
|
2778
|
+
"items": {
|
|
2779
|
+
"$ref": "#/definitions/LinkSpec"
|
|
2780
|
+
},
|
|
2781
|
+
"type": "array"
|
|
2782
|
+
},
|
|
2268
2783
|
"map": {
|
|
2269
2784
|
"anyOf": [
|
|
2270
2785
|
{
|
|
@@ -2311,6 +2826,11 @@
|
|
|
2311
2826
|
"wktColumnName"
|
|
2312
2827
|
],
|
|
2313
2828
|
"type": "object"
|
|
2829
|
+
},
|
|
2830
|
+
"WorkspaceName": {
|
|
2831
|
+
"description": "Name of a workspace: an isolated set of tables with its own extent. The first source loaded into a workspace sets its extent and later sources are cut to it, so two areas that must not clip each other go in two workspaces. A table is found by its name inside its workspace, so two workspaces may hold tables of the same name. Entries without a workspace use the default one. Read by the Autark adapter only.",
|
|
2832
|
+
"minLength": 1,
|
|
2833
|
+
"type": "string"
|
|
2314
2834
|
}
|
|
2315
2835
|
}
|
|
2316
2836
|
}
|