@bendyline/molen-tooling 0.0.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/LICENSE +21 -0
- package/NOTICE.md +15 -0
- package/README.md +91 -0
- package/dist/capture/THIRD-PARTY-NOTICES.md +223 -0
- package/dist/capture/basis/LICENSE.txt +55 -0
- package/dist/capture/basis/basis_transcoder.js +19 -0
- package/dist/capture/basis/basis_transcoder.wasm +0 -0
- package/dist/capture/capture.html +15 -0
- package/dist/capture/harness.js +4671 -0
- package/dist/capture/worldgen-preview.html +15 -0
- package/dist/capture/worldgen-preview.js +4617 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +1276 -0
- package/dist/docs-src/guide/3d-art-guidelines.md +157 -0
- package/dist/docs-src/guide/3d-model-assets.md +286 -0
- package/dist/docs-src/guide/adaptive-performance.md +89 -0
- package/dist/docs-src/guide/agent-loop.md +156 -0
- package/dist/docs-src/guide/aircraft.md +225 -0
- package/dist/docs-src/guide/browser-mount.md +185 -0
- package/dist/docs-src/guide/building-interiors.md +175 -0
- package/dist/docs-src/guide/capability-authoring.md +69 -0
- package/dist/docs-src/guide/determinism.md +285 -0
- package/dist/docs-src/guide/entities.md +47 -0
- package/dist/docs-src/guide/examples.md +58 -0
- package/dist/docs-src/guide/experience-playback.md +57 -0
- package/dist/docs-src/guide/figures.md +164 -0
- package/dist/docs-src/guide/game-samples.md +100 -0
- package/dist/docs-src/guide/graphics-performance.md +167 -0
- package/dist/docs-src/guide/input.md +205 -0
- package/dist/docs-src/guide/materials.md +125 -0
- package/dist/docs-src/guide/project.md +157 -0
- package/dist/docs-src/guide/quickstart.md +63 -0
- package/dist/docs-src/guide/recognizable-places.md +158 -0
- package/dist/docs-src/guide/rendering-backends.md +231 -0
- package/dist/docs-src/guide/scripting.md +330 -0
- package/dist/docs-src/guide/sky.md +192 -0
- package/dist/docs-src/guide/source-bundles.md +42 -0
- package/dist/docs-src/guide/structure-library.md +114 -0
- package/dist/docs-src/guide/surface-rendering.md +203 -0
- package/dist/docs-src/guide/terrain.md +389 -0
- package/dist/docs-src/guide/three-surface.md +70 -0
- package/dist/docs-src/guide/vehicle-interiors.md +126 -0
- package/dist/docs-src/guide/vehicles.md +110 -0
- package/dist/docs-src/guide/weather.md +123 -0
- package/dist/docs-src/guide/worldgen.md +434 -0
- package/dist/docs-src/llms.txt +129 -0
- package/dist/docs-src/schemas/README.md +36 -0
- package/dist/docs-src/schemas/archstyle.md +2340 -0
- package/dist/docs-src/schemas/assert.md +169 -0
- package/dist/docs-src/schemas/asset.md +543 -0
- package/dist/docs-src/schemas/business-catalog.md +162 -0
- package/dist/docs-src/schemas/cameratrack.md +132 -0
- package/dist/docs-src/schemas/command.md +112 -0
- package/dist/docs-src/schemas/components.md +5826 -0
- package/dist/docs-src/schemas/delta.md +204 -0
- package/dist/docs-src/schemas/experience-play.md +452 -0
- package/dist/docs-src/schemas/figure.md +290 -0
- package/dist/docs-src/schemas/interior-catalog.md +230 -0
- package/dist/docs-src/schemas/keyframe.md +314 -0
- package/dist/docs-src/schemas/landmark-catalog.md +56 -0
- package/dist/docs-src/schemas/landmark.md +293 -0
- package/dist/docs-src/schemas/matgraph.md +1163 -0
- package/dist/docs-src/schemas/pack-index.md +82 -0
- package/dist/docs-src/schemas/pack-source.md +139 -0
- package/dist/docs-src/schemas/pack.md +225 -0
- package/dist/docs-src/schemas/pixelgrid.md +108 -0
- package/dist/docs-src/schemas/prefab.md +106 -0
- package/dist/docs-src/schemas/project.md +271 -0
- package/dist/docs-src/schemas/region-atlas.md +612 -0
- package/dist/docs-src/schemas/replay.md +807 -0
- package/dist/docs-src/schemas/scatter.md +541 -0
- package/dist/docs-src/schemas/scene.md +1152 -0
- package/dist/docs-src/schemas/source-bundle.md +266 -0
- package/dist/docs-src/schemas/stylepack.md +420 -0
- package/dist/docs-src/schemas/terrain-package.md +731 -0
- package/dist/docs-src/schemas/terrain.md +313 -0
- package/dist/docs-src/schemas/types.md +218 -0
- package/dist/docs-src/schemas/uvpaint.md +149 -0
- package/dist/docs-src/schemas/worldgen-batch.md +743 -0
- package/dist/index.d.mts +1271 -0
- package/dist/index.mjs +78 -0
- package/dist/mcp-BFnCWrg0.mjs +796 -0
- package/dist/ops-BGxhSP6w.mjs +7246 -0
- package/package.json +96 -0
|
@@ -0,0 +1,731 @@
|
|
|
1
|
+
# Terrain package manifest (`molen/terrain-package@1`)
|
|
2
|
+
|
|
3
|
+
Installable tiled-world package: coordinate space, elevation, optional semantic layers, provenance, and checksums.
|
|
4
|
+
|
|
5
|
+
## Example
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"format": "molen/terrain-package@1",
|
|
10
|
+
"name": "earth-lite",
|
|
11
|
+
"version": "2026.08",
|
|
12
|
+
"coordinateSpace": {
|
|
13
|
+
"kind": "geospatial",
|
|
14
|
+
"crs": "EPSG:3857",
|
|
15
|
+
"bounds": [
|
|
16
|
+
-180,
|
|
17
|
+
-85.05112878,
|
|
18
|
+
180,
|
|
19
|
+
85.05112878
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"tileMatrix": {
|
|
23
|
+
"scheme": "xyz",
|
|
24
|
+
"minLevel": 0,
|
|
25
|
+
"maxLevel": 8
|
|
26
|
+
},
|
|
27
|
+
"elevation": {
|
|
28
|
+
"source": {
|
|
29
|
+
"kind": "pmtiles",
|
|
30
|
+
"path": "elevation.pmtiles"
|
|
31
|
+
},
|
|
32
|
+
"encoding": "png16",
|
|
33
|
+
"height": {
|
|
34
|
+
"min": -500,
|
|
35
|
+
"max": 9000
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"surface": {
|
|
39
|
+
"seaLevel": 0,
|
|
40
|
+
"layers": [
|
|
41
|
+
{
|
|
42
|
+
"name": "grass",
|
|
43
|
+
"color": "#527346",
|
|
44
|
+
"tiling": 24,
|
|
45
|
+
"auto": {
|
|
46
|
+
"heightMin": 2
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "rock",
|
|
51
|
+
"color": "#77766e",
|
|
52
|
+
"tiling": 10,
|
|
53
|
+
"auto": {
|
|
54
|
+
"slopeMin": 0.1
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"landcover": {
|
|
60
|
+
"source": {
|
|
61
|
+
"kind": "pmtiles",
|
|
62
|
+
"path": "world.pmtiles"
|
|
63
|
+
},
|
|
64
|
+
"encoding": "mvt",
|
|
65
|
+
"layer": "landcover",
|
|
66
|
+
"profile": "protomaps-basemap@1"
|
|
67
|
+
},
|
|
68
|
+
"features": {
|
|
69
|
+
"source": {
|
|
70
|
+
"kind": "pmtiles",
|
|
71
|
+
"path": "world.pmtiles"
|
|
72
|
+
},
|
|
73
|
+
"encoding": "mvt",
|
|
74
|
+
"layers": [
|
|
75
|
+
"water",
|
|
76
|
+
"transportation",
|
|
77
|
+
"building"
|
|
78
|
+
],
|
|
79
|
+
"profile": "protomaps-basemap@1"
|
|
80
|
+
},
|
|
81
|
+
"preset": "1gb",
|
|
82
|
+
"attribution": [
|
|
83
|
+
{
|
|
84
|
+
"text": "Example terrain data",
|
|
85
|
+
"license": "CC-BY-4.0",
|
|
86
|
+
"sourceUrl": "https://example.com/terrain"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"provenance": {
|
|
90
|
+
"compiler": "example terrain compiler",
|
|
91
|
+
"compilerVersion": "0.1.0",
|
|
92
|
+
"sources": [
|
|
93
|
+
{
|
|
94
|
+
"id": "example-dem",
|
|
95
|
+
"release": "2026-08"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"files": [
|
|
100
|
+
{
|
|
101
|
+
"path": "elevation.pmtiles",
|
|
102
|
+
"sha256": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
103
|
+
"bytes": 1024
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"path": "world.pmtiles",
|
|
107
|
+
"sha256": "1111111111111111111111111111111111111111111111111111111111111111",
|
|
108
|
+
"bytes": 2048
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## JSON Schema
|
|
115
|
+
|
|
116
|
+
```json
|
|
117
|
+
{
|
|
118
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
119
|
+
"type": "object",
|
|
120
|
+
"properties": {
|
|
121
|
+
"format": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"const": "molen/terrain-package@1",
|
|
124
|
+
"description": "Format envelope; always 'molen/terrain-package@1'."
|
|
125
|
+
},
|
|
126
|
+
"name": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"minLength": 1,
|
|
129
|
+
"description": "Package name."
|
|
130
|
+
},
|
|
131
|
+
"version": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"minLength": 1,
|
|
134
|
+
"description": "Package version string, e.g. '2026.08'."
|
|
135
|
+
},
|
|
136
|
+
"coordinateSpace": {
|
|
137
|
+
"oneOf": [
|
|
138
|
+
{
|
|
139
|
+
"type": "object",
|
|
140
|
+
"properties": {
|
|
141
|
+
"kind": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"const": "local",
|
|
144
|
+
"description": "Invented world in a local metric frame."
|
|
145
|
+
},
|
|
146
|
+
"units": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"const": "meters",
|
|
149
|
+
"description": "Bounds units; always 'meters'."
|
|
150
|
+
},
|
|
151
|
+
"bounds": {
|
|
152
|
+
"minItems": 4,
|
|
153
|
+
"maxItems": 4,
|
|
154
|
+
"type": "array",
|
|
155
|
+
"items": {
|
|
156
|
+
"type": "number"
|
|
157
|
+
},
|
|
158
|
+
"description": "[minX, minZ, maxX, maxZ] in meters (world XZ, Y-up)."
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"required": [
|
|
162
|
+
"kind",
|
|
163
|
+
"units",
|
|
164
|
+
"bounds"
|
|
165
|
+
],
|
|
166
|
+
"additionalProperties": false
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"type": "object",
|
|
170
|
+
"properties": {
|
|
171
|
+
"kind": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"const": "geospatial",
|
|
174
|
+
"description": "Real-Earth data in a geographic CRS."
|
|
175
|
+
},
|
|
176
|
+
"crs": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"enum": [
|
|
179
|
+
"EPSG:3857",
|
|
180
|
+
"EPSG:4326"
|
|
181
|
+
],
|
|
182
|
+
"description": "Coordinate reference system: EPSG:3857 (Web Mercator) or EPSG:4326 (WGS84 lon/lat)."
|
|
183
|
+
},
|
|
184
|
+
"ellipsoid": {
|
|
185
|
+
"default": "WGS84",
|
|
186
|
+
"type": "string",
|
|
187
|
+
"const": "WGS84",
|
|
188
|
+
"description": "Reference ellipsoid; always 'WGS84'."
|
|
189
|
+
},
|
|
190
|
+
"bounds": {
|
|
191
|
+
"minItems": 4,
|
|
192
|
+
"maxItems": 4,
|
|
193
|
+
"type": "array",
|
|
194
|
+
"items": {
|
|
195
|
+
"type": "number"
|
|
196
|
+
},
|
|
197
|
+
"description": "[minLon, minLat, maxLon, maxLat] in degrees."
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"required": [
|
|
201
|
+
"kind",
|
|
202
|
+
"crs",
|
|
203
|
+
"bounds"
|
|
204
|
+
],
|
|
205
|
+
"additionalProperties": false
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"description": "Coordinate space the package covers: local metric or geospatial."
|
|
209
|
+
},
|
|
210
|
+
"tileMatrix": {
|
|
211
|
+
"type": "object",
|
|
212
|
+
"properties": {
|
|
213
|
+
"scheme": {
|
|
214
|
+
"default": "xyz",
|
|
215
|
+
"type": "string",
|
|
216
|
+
"enum": [
|
|
217
|
+
"xyz",
|
|
218
|
+
"tms"
|
|
219
|
+
],
|
|
220
|
+
"description": "Tile row numbering: 'xyz' (row 0 at the top, default) or 'tms' (row 0 at the bottom)."
|
|
221
|
+
},
|
|
222
|
+
"minLevel": {
|
|
223
|
+
"default": 0,
|
|
224
|
+
"type": "integer",
|
|
225
|
+
"minimum": 0,
|
|
226
|
+
"maximum": 30,
|
|
227
|
+
"description": "Coarsest zoom level present (default 0)."
|
|
228
|
+
},
|
|
229
|
+
"maxLevel": {
|
|
230
|
+
"type": "integer",
|
|
231
|
+
"minimum": 0,
|
|
232
|
+
"maximum": 30,
|
|
233
|
+
"description": "Finest zoom level present."
|
|
234
|
+
},
|
|
235
|
+
"rootTiles": {
|
|
236
|
+
"default": [
|
|
237
|
+
1,
|
|
238
|
+
1
|
|
239
|
+
],
|
|
240
|
+
"minItems": 2,
|
|
241
|
+
"maxItems": 2,
|
|
242
|
+
"type": "array",
|
|
243
|
+
"items": {
|
|
244
|
+
"type": "integer",
|
|
245
|
+
"exclusiveMinimum": 0,
|
|
246
|
+
"maximum": 9007199254740991
|
|
247
|
+
},
|
|
248
|
+
"description": "Tiles along [x, z] at level 0 (default [1, 1])."
|
|
249
|
+
},
|
|
250
|
+
"tileResolution": {
|
|
251
|
+
"default": 257,
|
|
252
|
+
"type": "integer",
|
|
253
|
+
"minimum": 2,
|
|
254
|
+
"maximum": 1025,
|
|
255
|
+
"description": "Height samples per tile edge (default 257)."
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"required": [
|
|
259
|
+
"maxLevel"
|
|
260
|
+
],
|
|
261
|
+
"additionalProperties": false,
|
|
262
|
+
"description": "Tile pyramid layout shared by every archive in the package."
|
|
263
|
+
},
|
|
264
|
+
"elevation": {
|
|
265
|
+
"type": "object",
|
|
266
|
+
"properties": {
|
|
267
|
+
"source": {
|
|
268
|
+
"anyOf": [
|
|
269
|
+
{
|
|
270
|
+
"type": "object",
|
|
271
|
+
"properties": {
|
|
272
|
+
"kind": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"const": "pmtiles",
|
|
275
|
+
"description": "Archive kind; always 'pmtiles'."
|
|
276
|
+
},
|
|
277
|
+
"path": {
|
|
278
|
+
"type": "string",
|
|
279
|
+
"minLength": 1,
|
|
280
|
+
"description": "Package-relative path of the PMTiles archive."
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"required": [
|
|
284
|
+
"kind",
|
|
285
|
+
"path"
|
|
286
|
+
],
|
|
287
|
+
"additionalProperties": false
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "object",
|
|
291
|
+
"properties": {
|
|
292
|
+
"kind": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"const": "pmtiles",
|
|
295
|
+
"description": "Archive kind; always 'pmtiles'."
|
|
296
|
+
},
|
|
297
|
+
"url": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"format": "uri",
|
|
300
|
+
"description": "Absolute URL of the PMTiles archive."
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"required": [
|
|
304
|
+
"kind",
|
|
305
|
+
"url"
|
|
306
|
+
],
|
|
307
|
+
"additionalProperties": false
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"description": "Archive holding the elevation tiles."
|
|
311
|
+
},
|
|
312
|
+
"encoding": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"const": "png16",
|
|
315
|
+
"description": "Tile encoding; always 'png16' (16-bit grayscale PNG)."
|
|
316
|
+
},
|
|
317
|
+
"height": {
|
|
318
|
+
"type": "object",
|
|
319
|
+
"properties": {
|
|
320
|
+
"min": {
|
|
321
|
+
"type": "number",
|
|
322
|
+
"description": "Height in meters encoded by sample value 0."
|
|
323
|
+
},
|
|
324
|
+
"max": {
|
|
325
|
+
"type": "number",
|
|
326
|
+
"description": "Height in meters encoded by sample value 65535."
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"required": [
|
|
330
|
+
"min",
|
|
331
|
+
"max"
|
|
332
|
+
],
|
|
333
|
+
"additionalProperties": false,
|
|
334
|
+
"description": "Height range in meters the PNG16 samples map onto."
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"required": [
|
|
338
|
+
"source",
|
|
339
|
+
"encoding",
|
|
340
|
+
"height"
|
|
341
|
+
],
|
|
342
|
+
"additionalProperties": false,
|
|
343
|
+
"description": "Elevation tiles."
|
|
344
|
+
},
|
|
345
|
+
"surface": {
|
|
346
|
+
"type": "object",
|
|
347
|
+
"properties": {
|
|
348
|
+
"seaLevel": {
|
|
349
|
+
"default": 0,
|
|
350
|
+
"type": "number",
|
|
351
|
+
"description": "Sea level in meters within the elevation height range (default 0)."
|
|
352
|
+
},
|
|
353
|
+
"layers": {
|
|
354
|
+
"default": [],
|
|
355
|
+
"type": "array",
|
|
356
|
+
"items": {
|
|
357
|
+
"type": "object",
|
|
358
|
+
"properties": {
|
|
359
|
+
"name": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"minLength": 1,
|
|
362
|
+
"description": "Layer name, e.g. 'grass' or 'rock'."
|
|
363
|
+
},
|
|
364
|
+
"materialRef": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"minLength": 1,
|
|
367
|
+
"description": "Material reference for the layer surface (project material doc id)."
|
|
368
|
+
},
|
|
369
|
+
"color": {
|
|
370
|
+
"type": "string",
|
|
371
|
+
"pattern": "^#[0-9a-fA-F]{6}$",
|
|
372
|
+
"description": "Flat '#rrggbb' color used for vertex-color splat banding."
|
|
373
|
+
},
|
|
374
|
+
"tiling": {
|
|
375
|
+
"default": 8,
|
|
376
|
+
"type": "number",
|
|
377
|
+
"exclusiveMinimum": 0,
|
|
378
|
+
"description": "Texture repeats per chunk edge for the layer material (default 8)."
|
|
379
|
+
},
|
|
380
|
+
"auto": {
|
|
381
|
+
"type": "object",
|
|
382
|
+
"properties": {
|
|
383
|
+
"heightMin": {
|
|
384
|
+
"type": "number",
|
|
385
|
+
"description": "Lowest height in meters at which the layer applies."
|
|
386
|
+
},
|
|
387
|
+
"heightMax": {
|
|
388
|
+
"type": "number",
|
|
389
|
+
"description": "Highest height in meters at which the layer applies."
|
|
390
|
+
},
|
|
391
|
+
"slopeMin": {
|
|
392
|
+
"type": "number",
|
|
393
|
+
"minimum": 0,
|
|
394
|
+
"maximum": 1,
|
|
395
|
+
"description": "Minimum slope 0..1 (0 = flat, 1 = vertical) at which the layer applies."
|
|
396
|
+
},
|
|
397
|
+
"slopeMax": {
|
|
398
|
+
"type": "number",
|
|
399
|
+
"minimum": 0,
|
|
400
|
+
"maximum": 1,
|
|
401
|
+
"description": "Maximum slope 0..1 (0 = flat, 1 = vertical) at which the layer applies."
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"additionalProperties": false,
|
|
405
|
+
"description": "Automatic height/slope banding that selects where the layer paints."
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"required": [
|
|
409
|
+
"name"
|
|
410
|
+
],
|
|
411
|
+
"additionalProperties": false
|
|
412
|
+
},
|
|
413
|
+
"description": "Surface layers painted by auto banding, in order."
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"additionalProperties": false,
|
|
417
|
+
"description": "Surface shading settings."
|
|
418
|
+
},
|
|
419
|
+
"landcover": {
|
|
420
|
+
"type": "object",
|
|
421
|
+
"properties": {
|
|
422
|
+
"source": {
|
|
423
|
+
"anyOf": [
|
|
424
|
+
{
|
|
425
|
+
"type": "object",
|
|
426
|
+
"properties": {
|
|
427
|
+
"kind": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"const": "pmtiles",
|
|
430
|
+
"description": "Archive kind; always 'pmtiles'."
|
|
431
|
+
},
|
|
432
|
+
"path": {
|
|
433
|
+
"type": "string",
|
|
434
|
+
"minLength": 1,
|
|
435
|
+
"description": "Package-relative path of the PMTiles archive."
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"required": [
|
|
439
|
+
"kind",
|
|
440
|
+
"path"
|
|
441
|
+
],
|
|
442
|
+
"additionalProperties": false
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"type": "object",
|
|
446
|
+
"properties": {
|
|
447
|
+
"kind": {
|
|
448
|
+
"type": "string",
|
|
449
|
+
"const": "pmtiles",
|
|
450
|
+
"description": "Archive kind; always 'pmtiles'."
|
|
451
|
+
},
|
|
452
|
+
"url": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"format": "uri",
|
|
455
|
+
"description": "Absolute URL of the PMTiles archive."
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
"required": [
|
|
459
|
+
"kind",
|
|
460
|
+
"url"
|
|
461
|
+
],
|
|
462
|
+
"additionalProperties": false
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
"description": "Archive holding the landcover tiles."
|
|
466
|
+
},
|
|
467
|
+
"encoding": {
|
|
468
|
+
"type": "string",
|
|
469
|
+
"enum": [
|
|
470
|
+
"mvt",
|
|
471
|
+
"png8"
|
|
472
|
+
],
|
|
473
|
+
"description": "Tile encoding: 'mvt' (Mapbox vector tiles) or 'png8' (indexed PNG)."
|
|
474
|
+
},
|
|
475
|
+
"layer": {
|
|
476
|
+
"default": "landcover",
|
|
477
|
+
"type": "string",
|
|
478
|
+
"const": "landcover",
|
|
479
|
+
"description": "MVT layer name; always 'landcover'."
|
|
480
|
+
},
|
|
481
|
+
"profile": {
|
|
482
|
+
"type": "string",
|
|
483
|
+
"const": "protomaps-basemap@1",
|
|
484
|
+
"description": "Attribute profile of the tiles; always 'protomaps-basemap@1' when set."
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
"required": [
|
|
488
|
+
"source",
|
|
489
|
+
"encoding"
|
|
490
|
+
],
|
|
491
|
+
"additionalProperties": false,
|
|
492
|
+
"description": "Optional semantic landcover classification tiles."
|
|
493
|
+
},
|
|
494
|
+
"features": {
|
|
495
|
+
"type": "object",
|
|
496
|
+
"properties": {
|
|
497
|
+
"source": {
|
|
498
|
+
"anyOf": [
|
|
499
|
+
{
|
|
500
|
+
"type": "object",
|
|
501
|
+
"properties": {
|
|
502
|
+
"kind": {
|
|
503
|
+
"type": "string",
|
|
504
|
+
"const": "pmtiles",
|
|
505
|
+
"description": "Archive kind; always 'pmtiles'."
|
|
506
|
+
},
|
|
507
|
+
"path": {
|
|
508
|
+
"type": "string",
|
|
509
|
+
"minLength": 1,
|
|
510
|
+
"description": "Package-relative path of the PMTiles archive."
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
"required": [
|
|
514
|
+
"kind",
|
|
515
|
+
"path"
|
|
516
|
+
],
|
|
517
|
+
"additionalProperties": false
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"type": "object",
|
|
521
|
+
"properties": {
|
|
522
|
+
"kind": {
|
|
523
|
+
"type": "string",
|
|
524
|
+
"const": "pmtiles",
|
|
525
|
+
"description": "Archive kind; always 'pmtiles'."
|
|
526
|
+
},
|
|
527
|
+
"url": {
|
|
528
|
+
"type": "string",
|
|
529
|
+
"format": "uri",
|
|
530
|
+
"description": "Absolute URL of the PMTiles archive."
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
"required": [
|
|
534
|
+
"kind",
|
|
535
|
+
"url"
|
|
536
|
+
],
|
|
537
|
+
"additionalProperties": false
|
|
538
|
+
}
|
|
539
|
+
],
|
|
540
|
+
"description": "Archive holding the feature tiles."
|
|
541
|
+
},
|
|
542
|
+
"encoding": {
|
|
543
|
+
"type": "string",
|
|
544
|
+
"const": "mvt",
|
|
545
|
+
"description": "Tile encoding; always 'mvt'."
|
|
546
|
+
},
|
|
547
|
+
"layers": {
|
|
548
|
+
"minItems": 1,
|
|
549
|
+
"type": "array",
|
|
550
|
+
"items": {
|
|
551
|
+
"type": "string",
|
|
552
|
+
"enum": [
|
|
553
|
+
"water",
|
|
554
|
+
"transportation",
|
|
555
|
+
"building",
|
|
556
|
+
"poi"
|
|
557
|
+
]
|
|
558
|
+
},
|
|
559
|
+
"description": "MVT feature layers included (unique; at least one)."
|
|
560
|
+
},
|
|
561
|
+
"profile": {
|
|
562
|
+
"type": "string",
|
|
563
|
+
"const": "protomaps-basemap@1",
|
|
564
|
+
"description": "Attribute profile of the tiles; always 'protomaps-basemap@1' when set."
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
"required": [
|
|
568
|
+
"source",
|
|
569
|
+
"encoding",
|
|
570
|
+
"layers"
|
|
571
|
+
],
|
|
572
|
+
"additionalProperties": false,
|
|
573
|
+
"description": "Optional vector feature tiles (water, roads, buildings)."
|
|
574
|
+
},
|
|
575
|
+
"models": {
|
|
576
|
+
"type": "object",
|
|
577
|
+
"properties": {
|
|
578
|
+
"index": {
|
|
579
|
+
"type": "string",
|
|
580
|
+
"minLength": 1,
|
|
581
|
+
"description": "Package-relative path of the model placement index."
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
"required": [
|
|
585
|
+
"index"
|
|
586
|
+
],
|
|
587
|
+
"additionalProperties": false,
|
|
588
|
+
"description": "Optional placed 3D models."
|
|
589
|
+
},
|
|
590
|
+
"preset": {
|
|
591
|
+
"type": "string",
|
|
592
|
+
"enum": [
|
|
593
|
+
"1gb",
|
|
594
|
+
"5gb",
|
|
595
|
+
"20gb"
|
|
596
|
+
],
|
|
597
|
+
"description": "Size preset the package was compiled with (drives default streaming budgets)."
|
|
598
|
+
},
|
|
599
|
+
"attribution": {
|
|
600
|
+
"minItems": 1,
|
|
601
|
+
"type": "array",
|
|
602
|
+
"items": {
|
|
603
|
+
"type": "object",
|
|
604
|
+
"properties": {
|
|
605
|
+
"text": {
|
|
606
|
+
"type": "string",
|
|
607
|
+
"minLength": 1,
|
|
608
|
+
"description": "Attribution text to display."
|
|
609
|
+
},
|
|
610
|
+
"license": {
|
|
611
|
+
"type": "string",
|
|
612
|
+
"minLength": 1,
|
|
613
|
+
"description": "License identifier, e.g. 'CC-BY-4.0'."
|
|
614
|
+
},
|
|
615
|
+
"sourceUrl": {
|
|
616
|
+
"type": "string",
|
|
617
|
+
"format": "uri",
|
|
618
|
+
"description": "URL of the data source."
|
|
619
|
+
},
|
|
620
|
+
"licenseUrl": {
|
|
621
|
+
"type": "string",
|
|
622
|
+
"format": "uri",
|
|
623
|
+
"description": "URL of the license text."
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
"required": [
|
|
627
|
+
"text",
|
|
628
|
+
"license"
|
|
629
|
+
],
|
|
630
|
+
"additionalProperties": false
|
|
631
|
+
},
|
|
632
|
+
"description": "Data attributions (at least one)."
|
|
633
|
+
},
|
|
634
|
+
"provenance": {
|
|
635
|
+
"type": "object",
|
|
636
|
+
"properties": {
|
|
637
|
+
"compiler": {
|
|
638
|
+
"type": "string",
|
|
639
|
+
"minLength": 1,
|
|
640
|
+
"description": "Tool that compiled the package."
|
|
641
|
+
},
|
|
642
|
+
"compilerVersion": {
|
|
643
|
+
"type": "string",
|
|
644
|
+
"minLength": 1,
|
|
645
|
+
"description": "Version of the compiler."
|
|
646
|
+
},
|
|
647
|
+
"sources": {
|
|
648
|
+
"minItems": 1,
|
|
649
|
+
"type": "array",
|
|
650
|
+
"items": {
|
|
651
|
+
"type": "object",
|
|
652
|
+
"properties": {
|
|
653
|
+
"id": {
|
|
654
|
+
"type": "string",
|
|
655
|
+
"minLength": 1,
|
|
656
|
+
"description": "Source dataset id."
|
|
657
|
+
},
|
|
658
|
+
"release": {
|
|
659
|
+
"type": "string",
|
|
660
|
+
"minLength": 1,
|
|
661
|
+
"description": "Source dataset release/version."
|
|
662
|
+
},
|
|
663
|
+
"sha256": {
|
|
664
|
+
"type": "string",
|
|
665
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
666
|
+
"description": "Hex sha256 of the source dataset."
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
"required": [
|
|
670
|
+
"id",
|
|
671
|
+
"release"
|
|
672
|
+
],
|
|
673
|
+
"additionalProperties": false
|
|
674
|
+
},
|
|
675
|
+
"description": "Source datasets the package was compiled from (at least one)."
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
"required": [
|
|
679
|
+
"compiler",
|
|
680
|
+
"compilerVersion",
|
|
681
|
+
"sources"
|
|
682
|
+
],
|
|
683
|
+
"additionalProperties": false,
|
|
684
|
+
"description": "How and from what the package was built."
|
|
685
|
+
},
|
|
686
|
+
"files": {
|
|
687
|
+
"default": [],
|
|
688
|
+
"type": "array",
|
|
689
|
+
"items": {
|
|
690
|
+
"type": "object",
|
|
691
|
+
"properties": {
|
|
692
|
+
"path": {
|
|
693
|
+
"type": "string",
|
|
694
|
+
"minLength": 1,
|
|
695
|
+
"description": "Package-relative file path."
|
|
696
|
+
},
|
|
697
|
+
"sha256": {
|
|
698
|
+
"type": "string",
|
|
699
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
700
|
+
"description": "Hex sha256 of the file."
|
|
701
|
+
},
|
|
702
|
+
"bytes": {
|
|
703
|
+
"type": "integer",
|
|
704
|
+
"minimum": 0,
|
|
705
|
+
"maximum": 9007199254740991,
|
|
706
|
+
"description": "File size in bytes."
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
"required": [
|
|
710
|
+
"path",
|
|
711
|
+
"sha256",
|
|
712
|
+
"bytes"
|
|
713
|
+
],
|
|
714
|
+
"additionalProperties": false
|
|
715
|
+
},
|
|
716
|
+
"description": "Checksum/size records for every content file (paths unique)."
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
"required": [
|
|
720
|
+
"format",
|
|
721
|
+
"name",
|
|
722
|
+
"version",
|
|
723
|
+
"coordinateSpace",
|
|
724
|
+
"tileMatrix",
|
|
725
|
+
"elevation",
|
|
726
|
+
"attribution",
|
|
727
|
+
"provenance"
|
|
728
|
+
],
|
|
729
|
+
"additionalProperties": false
|
|
730
|
+
}
|
|
731
|
+
```
|