@loaders.gl/tile-converter 4.3.1 → 4.3.3
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/converter-cli.js +4 -3
- package/dist/converter.min.cjs +2 -2
- package/dist/deps-installer/deps-installer.js +1 -1
- package/dist/i3s-server/bin/i3s-server.min.cjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/pgm-loader.js +1 -1
- package/package.json +16 -16
- package/src/converter-cli.ts +10 -7
package/dist/pgm-loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Geoid, parsePGM } from '@math.gl/geoid';
|
|
2
2
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
3
3
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
4
|
-
const VERSION = typeof "4.3.
|
|
4
|
+
const VERSION = typeof "4.3.2" !== 'undefined' ? "4.3.2" : 'latest';
|
|
5
5
|
export { Geoid };
|
|
6
6
|
/**
|
|
7
7
|
* Loader for PGM - Netpbm grayscale image format
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/tile-converter",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.3",
|
|
4
4
|
"description": "Converter",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -51,20 +51,20 @@
|
|
|
51
51
|
"copy-certificates": "cp -R src/i3s-server/certs dist/i3s-server"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@loaders.gl/3d-tiles": "4.3.
|
|
55
|
-
"@loaders.gl/compression": "4.3.
|
|
56
|
-
"@loaders.gl/crypto": "4.3.
|
|
57
|
-
"@loaders.gl/draco": "4.3.
|
|
58
|
-
"@loaders.gl/gltf": "4.3.
|
|
59
|
-
"@loaders.gl/i3s": "4.3.
|
|
60
|
-
"@loaders.gl/images": "4.3.
|
|
61
|
-
"@loaders.gl/loader-utils": "4.3.
|
|
62
|
-
"@loaders.gl/math": "4.3.
|
|
63
|
-
"@loaders.gl/polyfills": "4.3.
|
|
64
|
-
"@loaders.gl/textures": "4.3.
|
|
65
|
-
"@loaders.gl/tiles": "4.3.
|
|
66
|
-
"@loaders.gl/worker-utils": "4.3.
|
|
67
|
-
"@loaders.gl/zip": "4.3.
|
|
54
|
+
"@loaders.gl/3d-tiles": "4.3.3",
|
|
55
|
+
"@loaders.gl/compression": "4.3.3",
|
|
56
|
+
"@loaders.gl/crypto": "4.3.3",
|
|
57
|
+
"@loaders.gl/draco": "4.3.3",
|
|
58
|
+
"@loaders.gl/gltf": "4.3.3",
|
|
59
|
+
"@loaders.gl/i3s": "4.3.3",
|
|
60
|
+
"@loaders.gl/images": "4.3.3",
|
|
61
|
+
"@loaders.gl/loader-utils": "4.3.3",
|
|
62
|
+
"@loaders.gl/math": "4.3.3",
|
|
63
|
+
"@loaders.gl/polyfills": "4.3.3",
|
|
64
|
+
"@loaders.gl/textures": "4.3.3",
|
|
65
|
+
"@loaders.gl/tiles": "4.3.3",
|
|
66
|
+
"@loaders.gl/worker-utils": "4.3.3",
|
|
67
|
+
"@loaders.gl/zip": "4.3.3",
|
|
68
68
|
"@math.gl/core": "^4.1.0",
|
|
69
69
|
"@math.gl/culling": "^4.1.0",
|
|
70
70
|
"@math.gl/geoid": "^4.1.0",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"@loaders.gl/core": "^4.3.0"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "65cb9a984f8aa95d11f50e92189d7fb32786dc41"
|
|
97
97
|
}
|
package/src/converter-cli.ts
CHANGED
|
@@ -26,10 +26,10 @@ type TileConversionOptions = {
|
|
|
26
26
|
/** Output folder. This folder will be created by converter if doesn't exist. It is relative to the converter path.
|
|
27
27
|
* Default: "data" folder */
|
|
28
28
|
output: string;
|
|
29
|
-
/**
|
|
29
|
+
/** 3DTiles version.
|
|
30
30
|
* Default: version "1.1" */
|
|
31
31
|
outputVersion?: string;
|
|
32
|
-
/** Keep created 3DNodeIndexDocument files on disk instead of memory. This option
|
|
32
|
+
/** Keep created 3DNodeIndexDocument files on disk instead of memory. This option reduces memory usage but decelerates conversion speed */
|
|
33
33
|
instantNodeWriting: boolean;
|
|
34
34
|
/** Try to merge similar materials to be able to merge meshes into one node (I3S to 3DTiles conversion only) */
|
|
35
35
|
mergeMaterials: boolean;
|
|
@@ -54,9 +54,9 @@ type TileConversionOptions = {
|
|
|
54
54
|
validate: boolean;
|
|
55
55
|
/** Maximal depth of the hierarchical tiles tree traversal, default: infinite */
|
|
56
56
|
maxDepth?: number;
|
|
57
|
-
/**
|
|
57
|
+
/** Adds a hash file to an .slpk without hash */
|
|
58
58
|
addHash: boolean;
|
|
59
|
-
/**
|
|
59
|
+
/** Set feature metadata class from EXT_FEATURE_METADATA or EXT_STRUCTURAL_METADATA extensions */
|
|
60
60
|
metadataClass?: string;
|
|
61
61
|
/** With this options the tileset content will be analyzed without conversion */
|
|
62
62
|
analyze?: boolean;
|
|
@@ -171,17 +171,20 @@ function printHelp(): void {
|
|
|
171
171
|
console.log('--name [Tileset name]');
|
|
172
172
|
console.log('--output [Output folder, default: "data" folder]');
|
|
173
173
|
console.log(
|
|
174
|
-
'--instant-node-writing [Keep created 3DNodeIndexDocument files on disk instead of memory. This option
|
|
174
|
+
'--instant-node-writing [Keep created 3DNodeIndexDocument files on disk instead of memory. This option reduces memory usage but decelerates conversion speed]'
|
|
175
175
|
);
|
|
176
176
|
console.log(
|
|
177
|
-
'--split-nodes [Prevent
|
|
177
|
+
'--split-nodes [Prevent merging similar materials that could lead to incorrect visualization (I3S to 3DTiles conversion only)]'
|
|
178
|
+
);
|
|
179
|
+
console.log(
|
|
180
|
+
'--slpk [(Deprecated since version 4.3.0) Whether the converter generates *.slpk (Scene Layer Package) I3S output files. Note: For versions 4.3.0 and up *.slpk is the default output without this option specified.]'
|
|
178
181
|
);
|
|
179
182
|
console.log(
|
|
180
183
|
'--tileset [tileset.json file (3DTiles) / http://..../SceneServer/layers/0 resource (I3S)]'
|
|
181
184
|
);
|
|
182
185
|
console.log('--input-type [tileset input type: I3S or 3DTILES]');
|
|
183
186
|
console.log(
|
|
184
|
-
'--output-version [
|
|
187
|
+
'--output-version [3DTiles version: 1.0 or 1.1, default: 1.1]. This option supports only 1.0/1.1 values for 3DTiles output. I3S output version setting is not supported yet.'
|
|
185
188
|
);
|
|
186
189
|
console.log(
|
|
187
190
|
'--egm [location of Earth Gravity Model *.pgm file to convert heights from ellipsoidal to gravity-related format or "None" to not use it. A model file can be loaded from GeographicLib https://geographiclib.sourceforge.io/html/geoid.html], default: "./deps/egm2008-5.zip"'
|