@loaders.gl/tile-converter 4.1.1 → 4.2.0-alpha.2
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/dist/3d-tiles-converter/3d-tiles-converter.d.ts +11 -0
- package/dist/3d-tiles-converter/3d-tiles-converter.d.ts.map +1 -1
- package/dist/3d-tiles-converter/3d-tiles-converter.js +77 -27
- package/dist/3d-tiles-converter/3d-tiles-converter.js.map +1 -1
- package/dist/3d-tiles-converter/helpers/load-i3s.d.ts +22 -1
- package/dist/3d-tiles-converter/helpers/load-i3s.d.ts.map +1 -1
- package/dist/3d-tiles-converter/helpers/load-i3s.js +49 -4
- package/dist/3d-tiles-converter/helpers/load-i3s.js.map +1 -1
- package/dist/converter-cli.js +2 -1
- package/dist/converter-cli.js.map +1 -1
- package/dist/converter.min.cjs +137 -130
- package/dist/deps-installer/deps-installer.js +1 -1
- package/dist/deps-installer/deps-installer.js.map +1 -1
- package/dist/i3s-converter/helpers/attribute-metadata-info.d.ts +10 -0
- package/dist/i3s-converter/helpers/attribute-metadata-info.d.ts.map +1 -1
- package/dist/i3s-converter/helpers/attribute-metadata-info.js +5 -0
- package/dist/i3s-converter/helpers/attribute-metadata-info.js.map +1 -1
- package/dist/i3s-converter/helpers/load-3d-tiles.d.ts.map +1 -1
- package/dist/i3s-converter/helpers/load-3d-tiles.js +22 -2
- package/dist/i3s-converter/helpers/load-3d-tiles.js.map +1 -1
- package/dist/i3s-converter/helpers/node-index-document.d.ts +2 -1
- package/dist/i3s-converter/helpers/node-index-document.d.ts.map +1 -1
- package/dist/i3s-converter/helpers/node-index-document.js +6 -8
- package/dist/i3s-converter/helpers/node-index-document.js.map +1 -1
- package/dist/i3s-converter/i3s-converter.d.ts +18 -0
- package/dist/i3s-converter/i3s-converter.d.ts.map +1 -1
- package/dist/i3s-converter/i3s-converter.js +121 -24
- package/dist/i3s-converter/i3s-converter.js.map +1 -1
- package/dist/i3s-server/bin/i3s-server.min.cjs +86 -86
- package/dist/index.cjs +792 -101
- package/dist/lib/json-schemas/conversion-dump-json-schema.d.ts +463 -0
- package/dist/lib/json-schemas/conversion-dump-json-schema.d.ts.map +1 -0
- package/dist/lib/json-schemas/conversion-dump-json-schema.js +463 -0
- package/dist/lib/json-schemas/conversion-dump-json-schema.js.map +1 -0
- package/dist/lib/utils/conversion-dump.d.ts +65 -8
- package/dist/lib/utils/conversion-dump.d.ts.map +1 -1
- package/dist/lib/utils/conversion-dump.js +98 -18
- package/dist/lib/utils/conversion-dump.js.map +1 -1
- package/dist/lib/utils/file-utils.d.ts +6 -0
- package/dist/lib/utils/file-utils.d.ts.map +1 -1
- package/dist/lib/utils/file-utils.js +7 -0
- package/dist/lib/utils/file-utils.js.map +1 -1
- package/dist/pgm-loader.js +1 -1
- package/dist/pgm-loader.js.map +1 -1
- package/package.json +15 -14
- package/src/3d-tiles-converter/3d-tiles-converter.ts +104 -31
- package/src/3d-tiles-converter/helpers/load-i3s.ts +86 -7
- package/src/converter-cli.ts +2 -1
- package/src/i3s-converter/helpers/attribute-metadata-info.ts +16 -0
- package/src/i3s-converter/helpers/load-3d-tiles.ts +52 -2
- package/src/i3s-converter/helpers/node-index-document.ts +18 -8
- package/src/i3s-converter/i3s-converter.ts +198 -41
- package/src/lib/json-schemas/conversion-dump-json-schema.ts +285 -0
- package/src/lib/utils/conversion-dump.ts +200 -26
- package/src/lib/utils/file-utils.ts +13 -0
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
export const dumpJsonSchema = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
properties: {
|
|
4
|
+
options: {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
inputUrl: {
|
|
8
|
+
type: 'string'
|
|
9
|
+
},
|
|
10
|
+
outputPath: {
|
|
11
|
+
type: 'string'
|
|
12
|
+
},
|
|
13
|
+
tilesetName: {
|
|
14
|
+
type: 'string'
|
|
15
|
+
},
|
|
16
|
+
maxDepth: {
|
|
17
|
+
type: 'number'
|
|
18
|
+
},
|
|
19
|
+
slpk: {
|
|
20
|
+
type: 'boolean'
|
|
21
|
+
},
|
|
22
|
+
egmFilePath: {
|
|
23
|
+
type: 'string'
|
|
24
|
+
},
|
|
25
|
+
token: {
|
|
26
|
+
type: 'string'
|
|
27
|
+
},
|
|
28
|
+
draco: {
|
|
29
|
+
type: 'boolean'
|
|
30
|
+
},
|
|
31
|
+
mergeMaterials: {
|
|
32
|
+
type: 'boolean'
|
|
33
|
+
},
|
|
34
|
+
generateTextures: {
|
|
35
|
+
type: 'boolean'
|
|
36
|
+
},
|
|
37
|
+
generateBoundingVolumes: {
|
|
38
|
+
type: 'boolean'
|
|
39
|
+
},
|
|
40
|
+
metadataClass: {
|
|
41
|
+
type: 'string'
|
|
42
|
+
},
|
|
43
|
+
analyze: {
|
|
44
|
+
type: 'boolean'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
required: ['inputUrl', 'outputPath', 'tilesetName']
|
|
48
|
+
},
|
|
49
|
+
tilesConverted: {
|
|
50
|
+
type: 'object',
|
|
51
|
+
patternProperties: {
|
|
52
|
+
'.*': {
|
|
53
|
+
type: 'object',
|
|
54
|
+
properties: {
|
|
55
|
+
nodes: {
|
|
56
|
+
type: 'array',
|
|
57
|
+
items: {
|
|
58
|
+
type: 'object',
|
|
59
|
+
properties: {
|
|
60
|
+
nodeId: {
|
|
61
|
+
type: ['number', 'string']
|
|
62
|
+
},
|
|
63
|
+
done: {
|
|
64
|
+
type: 'boolean'
|
|
65
|
+
},
|
|
66
|
+
progress: {
|
|
67
|
+
type: 'object',
|
|
68
|
+
patternProperties: {
|
|
69
|
+
'.*': {
|
|
70
|
+
type: 'boolean'
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
dumpMetadata: {
|
|
75
|
+
type: 'object',
|
|
76
|
+
properties: {
|
|
77
|
+
boundingVolumes: {
|
|
78
|
+
type: ['object', 'null'],
|
|
79
|
+
properties: {
|
|
80
|
+
mbs: {
|
|
81
|
+
type: 'array',
|
|
82
|
+
minItems: 4,
|
|
83
|
+
maxItems: 4,
|
|
84
|
+
items: {
|
|
85
|
+
type: 'number'
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
obb: {
|
|
89
|
+
type: 'object',
|
|
90
|
+
properties: {
|
|
91
|
+
center: {
|
|
92
|
+
type: 'array',
|
|
93
|
+
minItems: 3,
|
|
94
|
+
maxItems: 3,
|
|
95
|
+
items: {
|
|
96
|
+
type: 'number'
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
halfSize: {
|
|
100
|
+
type: 'array',
|
|
101
|
+
minItems: 3,
|
|
102
|
+
maxItems: 3,
|
|
103
|
+
items: {
|
|
104
|
+
type: 'number'
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
quaternion: {
|
|
108
|
+
type: 'array',
|
|
109
|
+
minItems: 4,
|
|
110
|
+
maxItems: 4,
|
|
111
|
+
items: {
|
|
112
|
+
type: 'number'
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
required: ['center', 'halfSize', 'quaternion']
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
required: ['mbs', 'obb']
|
|
120
|
+
},
|
|
121
|
+
attributesCount: {
|
|
122
|
+
type: 'number'
|
|
123
|
+
},
|
|
124
|
+
featureCount: {
|
|
125
|
+
type: 'number'
|
|
126
|
+
},
|
|
127
|
+
geometry: {
|
|
128
|
+
type: 'boolean'
|
|
129
|
+
},
|
|
130
|
+
hasUvRegions: {
|
|
131
|
+
type: 'boolean'
|
|
132
|
+
},
|
|
133
|
+
materialId: {
|
|
134
|
+
type: 'number'
|
|
135
|
+
},
|
|
136
|
+
texelCountHint: {
|
|
137
|
+
type: 'number'
|
|
138
|
+
},
|
|
139
|
+
vertexCount: {
|
|
140
|
+
type: 'number'
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
required: ['boundingVolumes', 'featureCount', 'geometry', 'hasUvRegions', 'materialId', 'vertexCount']
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
required: ['nodeId', 'done']
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
required: ['nodes']
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
textureSetDefinitions: {
|
|
155
|
+
type: 'array',
|
|
156
|
+
items: {
|
|
157
|
+
type: 'object',
|
|
158
|
+
properties: {
|
|
159
|
+
formats: {
|
|
160
|
+
type: 'array',
|
|
161
|
+
items: {
|
|
162
|
+
type: 'object',
|
|
163
|
+
properties: {
|
|
164
|
+
name: {
|
|
165
|
+
type: 'string'
|
|
166
|
+
},
|
|
167
|
+
format: {
|
|
168
|
+
enum: ['jpg', 'png', 'ktx-etc2', 'dds', 'ktx2']
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
required: ['name', 'format']
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
atlas: {
|
|
175
|
+
type: 'boolean'
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
required: ['formats']
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
attributeMetadataInfo: {
|
|
182
|
+
type: 'object',
|
|
183
|
+
properties: {
|
|
184
|
+
attributeStorageInfo: {
|
|
185
|
+
type: 'array',
|
|
186
|
+
items: {
|
|
187
|
+
type: 'object',
|
|
188
|
+
properties: {
|
|
189
|
+
key: {
|
|
190
|
+
type: 'string'
|
|
191
|
+
},
|
|
192
|
+
name: {
|
|
193
|
+
type: 'string'
|
|
194
|
+
},
|
|
195
|
+
header: {
|
|
196
|
+
type: 'array',
|
|
197
|
+
items: {
|
|
198
|
+
type: 'object',
|
|
199
|
+
properties: {
|
|
200
|
+
property: {
|
|
201
|
+
type: 'string'
|
|
202
|
+
},
|
|
203
|
+
valueType: {
|
|
204
|
+
type: 'string'
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
required: ['property', 'valueType']
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
ordering: {
|
|
211
|
+
type: 'array',
|
|
212
|
+
items: {
|
|
213
|
+
type: 'string'
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
attributeValues: {
|
|
217
|
+
$ref: '#/$defs/AttributeValue'
|
|
218
|
+
},
|
|
219
|
+
attributeByteCounts: {
|
|
220
|
+
$ref: '#/$defs/AttributeValue'
|
|
221
|
+
},
|
|
222
|
+
objectIds: {
|
|
223
|
+
$ref: '#/$defs/AttributeValue'
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
required: ['key', 'name', 'header']
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
fields: {
|
|
230
|
+
type: 'array',
|
|
231
|
+
items: {
|
|
232
|
+
type: 'object',
|
|
233
|
+
properties: {
|
|
234
|
+
name: {
|
|
235
|
+
type: 'string'
|
|
236
|
+
},
|
|
237
|
+
type: {
|
|
238
|
+
$ref: '#/$defs/ESRIField'
|
|
239
|
+
},
|
|
240
|
+
alias: {
|
|
241
|
+
type: 'string'
|
|
242
|
+
},
|
|
243
|
+
domain: {
|
|
244
|
+
$ref: '#/$defs/Domain'
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
required: ['name', 'type']
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
popupInfo: {
|
|
251
|
+
type: 'object',
|
|
252
|
+
properties: {
|
|
253
|
+
title: {
|
|
254
|
+
type: 'string'
|
|
255
|
+
},
|
|
256
|
+
description: {
|
|
257
|
+
type: 'string'
|
|
258
|
+
},
|
|
259
|
+
expressionInfos: {
|
|
260
|
+
type: 'array',
|
|
261
|
+
items: {}
|
|
262
|
+
},
|
|
263
|
+
fieldInfos: {
|
|
264
|
+
type: 'array',
|
|
265
|
+
items: {
|
|
266
|
+
$ref: '#/$defs/FieldInfo'
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
mediaInfos: {
|
|
270
|
+
type: 'array',
|
|
271
|
+
items: {}
|
|
272
|
+
},
|
|
273
|
+
popupElements: {
|
|
274
|
+
type: 'array',
|
|
275
|
+
items: {
|
|
276
|
+
type: 'object',
|
|
277
|
+
properties: {
|
|
278
|
+
text: {
|
|
279
|
+
type: 'string'
|
|
280
|
+
},
|
|
281
|
+
type: {
|
|
282
|
+
type: 'string'
|
|
283
|
+
},
|
|
284
|
+
fieldInfos: {
|
|
285
|
+
type: 'array',
|
|
286
|
+
items: {
|
|
287
|
+
$ref: '#/$defs/FieldInfo'
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
required: ['attributeStorageInfo', 'fields']
|
|
297
|
+
},
|
|
298
|
+
materialDefinitions: {
|
|
299
|
+
type: 'array',
|
|
300
|
+
items: {
|
|
301
|
+
type: 'object',
|
|
302
|
+
properties: {
|
|
303
|
+
pbrMetallicRoughness: {
|
|
304
|
+
type: 'object',
|
|
305
|
+
properties: {
|
|
306
|
+
baseColorFactor: {
|
|
307
|
+
type: 'array',
|
|
308
|
+
minItems: 4,
|
|
309
|
+
maxItems: 4,
|
|
310
|
+
items: {
|
|
311
|
+
type: 'number'
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
baseColorTexture: {
|
|
315
|
+
$ref: '#/$defs/I3SMaterialTexture'
|
|
316
|
+
},
|
|
317
|
+
metallicFactor: {
|
|
318
|
+
type: 'number'
|
|
319
|
+
},
|
|
320
|
+
roughnessFactor: {
|
|
321
|
+
type: 'number'
|
|
322
|
+
},
|
|
323
|
+
metallicRoughnessTexture: {
|
|
324
|
+
$ref: '#/$defs/I3SMaterialTexture'
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
required: ['metallicFactor', 'roughnessFactor']
|
|
328
|
+
},
|
|
329
|
+
normalTexture: {
|
|
330
|
+
$ref: '#/$defs/I3SMaterialTexture'
|
|
331
|
+
},
|
|
332
|
+
occlusionTexture: {
|
|
333
|
+
$ref: '#/$defs/I3SMaterialTexture'
|
|
334
|
+
},
|
|
335
|
+
emissiveTexture: {
|
|
336
|
+
$ref: '#/$defs/I3SMaterialTexture'
|
|
337
|
+
},
|
|
338
|
+
emissiveFactor: {
|
|
339
|
+
type: 'array',
|
|
340
|
+
minItems: 3,
|
|
341
|
+
maxItems: 3,
|
|
342
|
+
items: {
|
|
343
|
+
type: 'number'
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
alphaMode: {
|
|
347
|
+
enum: ['opaque', 'mask', 'blend']
|
|
348
|
+
},
|
|
349
|
+
alphaCutoff: {
|
|
350
|
+
type: 'number'
|
|
351
|
+
},
|
|
352
|
+
doubleSided: {
|
|
353
|
+
type: 'boolean'
|
|
354
|
+
},
|
|
355
|
+
cullFace: {
|
|
356
|
+
enum: ['none', 'front', 'back']
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
required: ['pbrMetallicRoughness', 'alphaMode']
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
required: ['options', 'tilesConverted'],
|
|
364
|
+
$defs: {
|
|
365
|
+
AttributeValue: {
|
|
366
|
+
type: 'object',
|
|
367
|
+
properties: {
|
|
368
|
+
valueType: {
|
|
369
|
+
type: 'string'
|
|
370
|
+
},
|
|
371
|
+
encoding: {
|
|
372
|
+
type: 'string'
|
|
373
|
+
},
|
|
374
|
+
valuesPerElement: {
|
|
375
|
+
type: 'number'
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
required: ['valueType']
|
|
379
|
+
},
|
|
380
|
+
ESRIField: {
|
|
381
|
+
enum: ['esriFieldTypeDate', 'esriFieldTypeSingle', 'esriFieldTypeDouble', 'esriFieldTypeGUID', 'esriFieldTypeGlobalID', 'esriFieldTypeInteger', 'esriFieldTypeOID', 'esriFieldTypeSmallInteger', 'esriFieldTypeString']
|
|
382
|
+
},
|
|
383
|
+
Domain: {
|
|
384
|
+
type: 'object',
|
|
385
|
+
properties: {
|
|
386
|
+
type: {
|
|
387
|
+
type: 'string'
|
|
388
|
+
},
|
|
389
|
+
name: {
|
|
390
|
+
type: 'string'
|
|
391
|
+
},
|
|
392
|
+
description: {
|
|
393
|
+
type: 'string'
|
|
394
|
+
},
|
|
395
|
+
fieldType: {
|
|
396
|
+
type: 'string'
|
|
397
|
+
},
|
|
398
|
+
range: {
|
|
399
|
+
type: 'array',
|
|
400
|
+
items: {
|
|
401
|
+
type: 'number'
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
codedValues: {
|
|
405
|
+
type: 'array',
|
|
406
|
+
items: {
|
|
407
|
+
type: 'object',
|
|
408
|
+
properties: {
|
|
409
|
+
name: {
|
|
410
|
+
type: 'string'
|
|
411
|
+
},
|
|
412
|
+
code: {
|
|
413
|
+
type: ['string', 'number']
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
required: ['name', 'code']
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
mergePolicy: {
|
|
420
|
+
type: 'string'
|
|
421
|
+
},
|
|
422
|
+
splitPolicy: {
|
|
423
|
+
type: 'string'
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
required: ['type', 'name']
|
|
427
|
+
},
|
|
428
|
+
FieldInfo: {
|
|
429
|
+
type: 'object',
|
|
430
|
+
properties: {
|
|
431
|
+
fieldName: {
|
|
432
|
+
type: 'string'
|
|
433
|
+
},
|
|
434
|
+
visible: {
|
|
435
|
+
type: 'boolean'
|
|
436
|
+
},
|
|
437
|
+
isEditable: {
|
|
438
|
+
type: 'boolean'
|
|
439
|
+
},
|
|
440
|
+
label: {
|
|
441
|
+
type: 'string'
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
required: ['fieldName', 'visible', 'isEditable', 'label']
|
|
445
|
+
},
|
|
446
|
+
I3SMaterialTexture: {
|
|
447
|
+
type: 'object',
|
|
448
|
+
properties: {
|
|
449
|
+
textureSetDefinitionId: {
|
|
450
|
+
type: 'number'
|
|
451
|
+
},
|
|
452
|
+
texCoord: {
|
|
453
|
+
type: 'number'
|
|
454
|
+
},
|
|
455
|
+
factor: {
|
|
456
|
+
type: 'number'
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
required: ['textureSetDefinitionId']
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
};
|
|
463
|
+
//# sourceMappingURL=conversion-dump-json-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversion-dump-json-schema.js","names":["dumpJsonSchema","type","properties","options","inputUrl","outputPath","tilesetName","maxDepth","slpk","egmFilePath","token","draco","mergeMaterials","generateTextures","generateBoundingVolumes","metadataClass","analyze","required","tilesConverted","patternProperties","nodes","items","nodeId","done","progress","dumpMetadata","boundingVolumes","mbs","minItems","maxItems","obb","center","halfSize","quaternion","attributesCount","featureCount","geometry","hasUvRegions","materialId","texelCountHint","vertexCount","textureSetDefinitions","formats","name","format","enum","atlas","attributeMetadataInfo","attributeStorageInfo","key","header","property","valueType","ordering","attributeValues","$ref","attributeByteCounts","objectIds","fields","alias","domain","popupInfo","title","description","expressionInfos","fieldInfos","mediaInfos","popupElements","text","materialDefinitions","pbrMetallicRoughness","baseColorFactor","baseColorTexture","metallicFactor","roughnessFactor","metallicRoughnessTexture","normalTexture","occlusionTexture","emissiveTexture","emissiveFactor","alphaMode","alphaCutoff","doubleSided","cullFace","$defs","AttributeValue","encoding","valuesPerElement","ESRIField","Domain","fieldType","range","codedValues","code","mergePolicy","splitPolicy","FieldInfo","fieldName","visible","isEditable","label","I3SMaterialTexture","textureSetDefinitionId","texCoord","factor"],"sources":["../../../src/lib/json-schemas/conversion-dump-json-schema.ts"],"sourcesContent":["export const dumpJsonSchema = {\n type: 'object',\n properties: {\n options: {\n type: 'object',\n properties: {\n inputUrl: {type: 'string'},\n outputPath: {type: 'string'},\n tilesetName: {type: 'string'},\n maxDepth: {type: 'number'},\n slpk: {type: 'boolean'},\n egmFilePath: {type: 'string'},\n token: {type: 'string'},\n draco: {type: 'boolean'},\n mergeMaterials: {type: 'boolean'},\n generateTextures: {type: 'boolean'},\n generateBoundingVolumes: {type: 'boolean'},\n metadataClass: {type: 'string'},\n analyze: {type: 'boolean'}\n },\n required: ['inputUrl', 'outputPath', 'tilesetName']\n },\n tilesConverted: {\n type: 'object',\n patternProperties: {\n '.*': {\n type: 'object',\n properties: {\n nodes: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n nodeId: {type: ['number', 'string']},\n done: {type: 'boolean'},\n progress: {type: 'object', patternProperties: {'.*': {type: 'boolean'}}},\n dumpMetadata: {\n type: 'object',\n properties: {\n boundingVolumes: {\n type: ['object', 'null'],\n properties: {\n mbs: {\n type: 'array',\n minItems: 4,\n maxItems: 4,\n items: {type: 'number'}\n },\n obb: {\n type: 'object',\n properties: {\n center: {\n type: 'array',\n minItems: 3,\n maxItems: 3,\n items: {type: 'number'}\n },\n halfSize: {\n type: 'array',\n minItems: 3,\n maxItems: 3,\n items: {type: 'number'}\n },\n quaternion: {\n type: 'array',\n minItems: 4,\n maxItems: 4,\n items: {type: 'number'}\n }\n },\n required: ['center', 'halfSize', 'quaternion']\n }\n },\n required: ['mbs', 'obb']\n },\n attributesCount: {type: 'number'},\n featureCount: {type: 'number'},\n geometry: {type: 'boolean'},\n hasUvRegions: {type: 'boolean'},\n materialId: {type: 'number'},\n texelCountHint: {type: 'number'},\n vertexCount: {type: 'number'}\n },\n required: [\n 'boundingVolumes',\n 'featureCount',\n 'geometry',\n 'hasUvRegions',\n 'materialId',\n 'vertexCount'\n ]\n }\n },\n required: ['nodeId', 'done']\n }\n }\n },\n required: ['nodes']\n }\n }\n },\n textureSetDefinitions: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n formats: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n name: {type: 'string'},\n format: {enum: ['jpg', 'png', 'ktx-etc2', 'dds', 'ktx2']}\n },\n required: ['name', 'format']\n }\n },\n atlas: {type: 'boolean'}\n },\n required: ['formats']\n }\n },\n attributeMetadataInfo: {\n type: 'object',\n properties: {\n attributeStorageInfo: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n key: {type: 'string'},\n name: {type: 'string'},\n header: {\n type: 'array',\n items: {\n type: 'object',\n properties: {property: {type: 'string'}, valueType: {type: 'string'}},\n required: ['property', 'valueType']\n }\n },\n ordering: {type: 'array', items: {type: 'string'}},\n attributeValues: {$ref: '#/$defs/AttributeValue'},\n attributeByteCounts: {$ref: '#/$defs/AttributeValue'},\n objectIds: {$ref: '#/$defs/AttributeValue'}\n },\n required: ['key', 'name', 'header']\n }\n },\n fields: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n name: {type: 'string'},\n type: {$ref: '#/$defs/ESRIField'},\n alias: {type: 'string'},\n domain: {$ref: '#/$defs/Domain'}\n },\n required: ['name', 'type']\n }\n },\n popupInfo: {\n type: 'object',\n properties: {\n title: {type: 'string'},\n description: {type: 'string'},\n expressionInfos: {type: 'array', items: {}},\n fieldInfos: {type: 'array', items: {$ref: '#/$defs/FieldInfo'}},\n mediaInfos: {type: 'array', items: {}},\n popupElements: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n text: {type: 'string'},\n type: {type: 'string'},\n fieldInfos: {type: 'array', items: {$ref: '#/$defs/FieldInfo'}}\n }\n }\n }\n }\n }\n },\n required: ['attributeStorageInfo', 'fields']\n },\n materialDefinitions: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n pbrMetallicRoughness: {\n type: 'object',\n properties: {\n baseColorFactor: {\n type: 'array',\n minItems: 4,\n maxItems: 4,\n items: {type: 'number'}\n },\n baseColorTexture: {$ref: '#/$defs/I3SMaterialTexture'},\n metallicFactor: {type: 'number'},\n roughnessFactor: {type: 'number'},\n metallicRoughnessTexture: {$ref: '#/$defs/I3SMaterialTexture'}\n },\n required: ['metallicFactor', 'roughnessFactor']\n },\n normalTexture: {$ref: '#/$defs/I3SMaterialTexture'},\n occlusionTexture: {$ref: '#/$defs/I3SMaterialTexture'},\n emissiveTexture: {$ref: '#/$defs/I3SMaterialTexture'},\n emissiveFactor: {type: 'array', minItems: 3, maxItems: 3, items: {type: 'number'}},\n alphaMode: {enum: ['opaque', 'mask', 'blend']},\n alphaCutoff: {type: 'number'},\n doubleSided: {type: 'boolean'},\n cullFace: {enum: ['none', 'front', 'back']}\n },\n required: ['pbrMetallicRoughness', 'alphaMode']\n }\n }\n },\n required: ['options', 'tilesConverted'],\n $defs: {\n AttributeValue: {\n type: 'object',\n properties: {\n valueType: {type: 'string'},\n encoding: {type: 'string'},\n valuesPerElement: {type: 'number'}\n },\n required: ['valueType']\n },\n ESRIField: {\n enum: [\n 'esriFieldTypeDate',\n 'esriFieldTypeSingle',\n 'esriFieldTypeDouble',\n 'esriFieldTypeGUID',\n 'esriFieldTypeGlobalID',\n 'esriFieldTypeInteger',\n 'esriFieldTypeOID',\n 'esriFieldTypeSmallInteger',\n 'esriFieldTypeString'\n ]\n },\n Domain: {\n type: 'object',\n properties: {\n type: {type: 'string'},\n name: {type: 'string'},\n description: {type: 'string'},\n fieldType: {type: 'string'},\n range: {type: 'array', items: {type: 'number'}},\n codedValues: {\n type: 'array',\n items: {\n type: 'object',\n properties: {name: {type: 'string'}, code: {type: ['string', 'number']}},\n required: ['name', 'code']\n }\n },\n mergePolicy: {type: 'string'},\n splitPolicy: {type: 'string'}\n },\n required: ['type', 'name']\n },\n FieldInfo: {\n type: 'object',\n properties: {\n fieldName: {type: 'string'},\n visible: {type: 'boolean'},\n isEditable: {type: 'boolean'},\n label: {type: 'string'}\n },\n required: ['fieldName', 'visible', 'isEditable', 'label']\n },\n I3SMaterialTexture: {\n type: 'object',\n properties: {\n textureSetDefinitionId: {type: 'number'},\n texCoord: {type: 'number'},\n factor: {type: 'number'}\n },\n required: ['textureSetDefinitionId']\n }\n }\n};\n"],"mappings":"AAAA,OAAO,MAAMA,cAAc,GAAG;EAC5BC,IAAI,EAAE,QAAQ;EACdC,UAA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S,CAAC;QAC1BkG,UAAU,EAAE;UAAClG,IAAI,EAAE;QAAS,CAAC;QAC7BmG,KAAK,EAAE;UAACnG,IAAI,EAAE;QAAQ;MACxB,CAAC;MACDgB,QAAQ,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO;IAC1D,CAAC;IACDoF,kBAAkB,EAAE;MAClBpG,IAAI,EAAE,QAAQ;MACdC,UAAU,EAAE;QACVoG,sBAAsB,EAAE;UAACrG,IAAI,EAAE;QAAQ,CAAC;QACxCsG,QAAQ,EAAE;UAACtG,IAAI,EAAE;QAAQ,CAAC;QAC1BuG,MAAM,EAAE;UAACvG,IAAI,EAAE;QAAQ;MACzB,CAAC;MACDgB,QAAQ,EAAE,CAAC,wBAAwB;IACrC;EACF;AACF,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { BoundingVolumes, I3SMaterialDefinition, TextureSetDefinitionFormats } from '@loaders.gl/i3s';
|
|
2
|
+
import { AttributeMetadataInfoObject } from '../../i3s-converter/helpers/attribute-metadata-info';
|
|
1
3
|
export type ConversionDumpOptions = {
|
|
2
4
|
inputUrl: string;
|
|
3
5
|
outputPath: string;
|
|
@@ -14,24 +16,51 @@ export type ConversionDumpOptions = {
|
|
|
14
16
|
analyze: boolean;
|
|
15
17
|
};
|
|
16
18
|
type NodeDoneStatus = {
|
|
17
|
-
nodeId: number;
|
|
19
|
+
nodeId: number | string;
|
|
18
20
|
done: boolean;
|
|
19
|
-
progress
|
|
21
|
+
progress?: Record<string, boolean>;
|
|
22
|
+
dumpMetadata?: DumpMetadata;
|
|
20
23
|
};
|
|
21
24
|
type TilesConverted = {
|
|
22
25
|
nodes: NodeDoneStatus[];
|
|
23
26
|
};
|
|
27
|
+
export type DumpMetadata = {
|
|
28
|
+
boundingVolumes: BoundingVolumes | null;
|
|
29
|
+
attributesCount?: number;
|
|
30
|
+
featureCount: number | null;
|
|
31
|
+
geometry: boolean;
|
|
32
|
+
hasUvRegions: boolean;
|
|
33
|
+
materialId: number | null;
|
|
34
|
+
texelCountHint?: number;
|
|
35
|
+
vertexCount: number | null;
|
|
36
|
+
};
|
|
37
|
+
export type TextureSetDefinition = {
|
|
38
|
+
formats: TextureSetDefinitionFormats;
|
|
39
|
+
atlas?: boolean;
|
|
40
|
+
};
|
|
24
41
|
export declare class ConversionDump {
|
|
42
|
+
/**Restored/resumed dump indicator */
|
|
43
|
+
restored: boolean;
|
|
25
44
|
/** Conversion options */
|
|
26
45
|
private options?;
|
|
27
46
|
/** Tiles conversion progress status map */
|
|
28
47
|
tilesConverted: Record<string, TilesConverted>;
|
|
48
|
+
/** Textures formats definitions */
|
|
49
|
+
textureSetDefinitions?: TextureSetDefinition[];
|
|
50
|
+
/** Attributes Metadata */
|
|
51
|
+
attributeMetadataInfo?: AttributeMetadataInfoObject;
|
|
52
|
+
/** Array of materials definitions */
|
|
53
|
+
materialDefinitions?: I3SMaterialDefinition[];
|
|
29
54
|
constructor();
|
|
30
55
|
/**
|
|
31
|
-
* Create a dump
|
|
32
|
-
* @param
|
|
56
|
+
* Create a dump with convertion options
|
|
57
|
+
* @param currentOptions - converter options
|
|
58
|
+
*/
|
|
59
|
+
createDump(currentOptions: ConversionDumpOptions): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Reset a dump
|
|
33
62
|
*/
|
|
34
|
-
|
|
63
|
+
reset(): void;
|
|
35
64
|
/**
|
|
36
65
|
* Update conversion status in the dump file
|
|
37
66
|
*/
|
|
@@ -57,7 +86,17 @@ export declare class ConversionDump {
|
|
|
57
86
|
* @param fileName - source filename
|
|
58
87
|
* @param nodeId - nodeId of the node
|
|
59
88
|
*/
|
|
60
|
-
addNode(filename: string, nodeId: number): Promise<void>;
|
|
89
|
+
addNode(filename: string, nodeId: number | string, dumpMetadata?: DumpMetadata): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Clear dump record got the source filename
|
|
92
|
+
* @param fileName - source filename
|
|
93
|
+
*/
|
|
94
|
+
clearDumpRecord(filename: string): void;
|
|
95
|
+
/**
|
|
96
|
+
* Add textures definitions into the dump file
|
|
97
|
+
* @param textureDefinitions - textures definitions array
|
|
98
|
+
*/
|
|
99
|
+
addTexturesDefinitions(textureDefinitions: TextureSetDefinition[]): void;
|
|
61
100
|
/**
|
|
62
101
|
* Update done status object for the writing resources
|
|
63
102
|
* @param fileName - key - source filename
|
|
@@ -65,17 +104,35 @@ export declare class ConversionDump {
|
|
|
65
104
|
* @param resourceType - resource type to update status
|
|
66
105
|
* @param value - value
|
|
67
106
|
*/
|
|
68
|
-
updateDoneStatus(filename: string, nodeId: number, resourceType: string, value: boolean): void;
|
|
107
|
+
updateDoneStatus(filename: string, nodeId: number | string, resourceType: string, value: boolean): void;
|
|
69
108
|
/**
|
|
70
109
|
* Update dump file according to writing results
|
|
71
110
|
* @param changedRecords - array of parameters ids for the written resources
|
|
72
111
|
* @param writeResults - array of writing resource files results
|
|
73
112
|
*/
|
|
74
113
|
updateConvertedTilesDump(changedRecords: {
|
|
75
|
-
outputId?: number;
|
|
114
|
+
outputId?: number | string;
|
|
76
115
|
sourceId?: string;
|
|
77
116
|
resourceType?: string;
|
|
78
117
|
}[], writeResults: PromiseSettledResult<string | null>[]): Promise<void>;
|
|
118
|
+
/**
|
|
119
|
+
* Update 3d-tiles-converter dump file
|
|
120
|
+
* @param filename - source filename
|
|
121
|
+
* @param nodeId - nodeId
|
|
122
|
+
* @param done - conversion status
|
|
123
|
+
*/
|
|
124
|
+
updateConvertedNodesDumpFile(filename: string, nodeId: number | string, done: boolean): Promise<void>;
|
|
125
|
+
/**
|
|
126
|
+
* Check is source file conversion complete
|
|
127
|
+
* @param filename - source filename
|
|
128
|
+
* @returns true if source file conversion complete
|
|
129
|
+
*/
|
|
130
|
+
isFileConversionComplete(filename: string): boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Set materialDefinitions into a dump
|
|
133
|
+
* @param materialDefinitions - Array materialDefinitions
|
|
134
|
+
*/
|
|
135
|
+
setMaterialsDefinitions(materialDefinitions: I3SMaterialDefinition[]): void;
|
|
79
136
|
}
|
|
80
137
|
export {};
|
|
81
138
|
//# sourceMappingURL=conversion-dump.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversion-dump.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/conversion-dump.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,uBAAuB,EAAE,OAAO,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"conversion-dump.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/conversion-dump.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,eAAe,EAAE,qBAAqB,EAAE,2BAA2B,EAAC,MAAM,iBAAiB,CAAC;AACpG,OAAO,EAAC,2BAA2B,EAAC,MAAM,qDAAqD,CAAC;AAKhG,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,c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