@loaders.gl/tile-converter 4.3.0-alpha.6 → 4.3.0-alpha.7
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.min.cjs +2 -2
- package/dist/deps-installer/deps-installer.d.ts.map +1 -1
- package/dist/deps-installer/deps-installer.js +4 -3
- package/dist/i3s-converter/i3s-converter.d.ts.map +1 -1
- package/dist/i3s-converter/i3s-converter.js +5 -1
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +2 -2
- package/dist/pgm-loader.js +1 -1
- package/package.json +16 -16
- package/src/deps-installer/deps-installer.ts +3 -2
- package/src/i3s-converter/i3s-converter.ts +5 -1
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.0-alpha.
|
|
4
|
+
const VERSION = typeof "4.3.0-alpha.6" !== 'undefined' ? "4.3.0-alpha.6" : '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.0-alpha.
|
|
3
|
+
"version": "4.3.0-alpha.7",
|
|
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.0-alpha.
|
|
55
|
-
"@loaders.gl/compression": "4.3.0-alpha.
|
|
56
|
-
"@loaders.gl/crypto": "4.3.0-alpha.
|
|
57
|
-
"@loaders.gl/draco": "4.3.0-alpha.
|
|
58
|
-
"@loaders.gl/gltf": "4.3.0-alpha.
|
|
59
|
-
"@loaders.gl/i3s": "4.3.0-alpha.
|
|
60
|
-
"@loaders.gl/images": "4.3.0-alpha.
|
|
61
|
-
"@loaders.gl/loader-utils": "4.3.0-alpha.
|
|
62
|
-
"@loaders.gl/math": "4.3.0-alpha.
|
|
63
|
-
"@loaders.gl/polyfills": "4.3.0-alpha.
|
|
64
|
-
"@loaders.gl/textures": "4.3.0-alpha.
|
|
65
|
-
"@loaders.gl/tiles": "4.3.0-alpha.
|
|
66
|
-
"@loaders.gl/worker-utils": "4.3.0-alpha.
|
|
67
|
-
"@loaders.gl/zip": "4.3.0-alpha.
|
|
54
|
+
"@loaders.gl/3d-tiles": "4.3.0-alpha.7",
|
|
55
|
+
"@loaders.gl/compression": "4.3.0-alpha.7",
|
|
56
|
+
"@loaders.gl/crypto": "4.3.0-alpha.7",
|
|
57
|
+
"@loaders.gl/draco": "4.3.0-alpha.7",
|
|
58
|
+
"@loaders.gl/gltf": "4.3.0-alpha.7",
|
|
59
|
+
"@loaders.gl/i3s": "4.3.0-alpha.7",
|
|
60
|
+
"@loaders.gl/images": "4.3.0-alpha.7",
|
|
61
|
+
"@loaders.gl/loader-utils": "4.3.0-alpha.7",
|
|
62
|
+
"@loaders.gl/math": "4.3.0-alpha.7",
|
|
63
|
+
"@loaders.gl/polyfills": "4.3.0-alpha.7",
|
|
64
|
+
"@loaders.gl/textures": "4.3.0-alpha.7",
|
|
65
|
+
"@loaders.gl/tiles": "4.3.0-alpha.7",
|
|
66
|
+
"@loaders.gl/worker-utils": "4.3.0-alpha.7",
|
|
67
|
+
"@loaders.gl/zip": "4.3.0-alpha.7",
|
|
68
68
|
"@math.gl/core": "^4.0.0",
|
|
69
69
|
"@math.gl/culling": "^4.0.0",
|
|
70
70
|
"@math.gl/geoid": "^4.0.0",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"@loaders.gl/core": "^4.0.0"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "73fb27872d89f3804dca37ebd568c6ba9609a98f"
|
|
97
97
|
}
|
|
@@ -88,13 +88,14 @@ export class DepsInstaller {
|
|
|
88
88
|
const childProcess = new ChildProcessProxy();
|
|
89
89
|
const nodeDir = dirname(process.execPath);
|
|
90
90
|
await childProcess.start({
|
|
91
|
-
command:
|
|
91
|
+
command: `"${nodeDir}/${process.platform === 'win32' ? 'npm.cmd' : 'npm'}"`,
|
|
92
92
|
// `npm install sharp join-images` works unstable. It fails because installed `sharp` version
|
|
93
93
|
// may be different from the version required by `join-images`. Pointing to specific versions
|
|
94
94
|
// resolve this issue
|
|
95
95
|
arguments: ['install', 'sharp@0.30.4', 'join-images@1.1.3'],
|
|
96
96
|
wait: 0,
|
|
97
|
-
ignoreStderr: true
|
|
97
|
+
ignoreStderr: true,
|
|
98
|
+
spawn: {shell: true}
|
|
98
99
|
});
|
|
99
100
|
|
|
100
101
|
console.log('All dependencies were installed succesfully.'); // eslint-disable-line no-console
|
|
@@ -1526,7 +1526,11 @@ export default class I3SConverter {
|
|
|
1526
1526
|
const addRefinementPercentage = tilesWithAddRefineCount
|
|
1527
1527
|
? (tilesWithAddRefineCount / tilesCount) * 100
|
|
1528
1528
|
: 0;
|
|
1529
|
-
const filesSize = await calculateDatasetSize(
|
|
1529
|
+
const filesSize = await calculateDatasetSize({
|
|
1530
|
+
outputPath: params.outputPath,
|
|
1531
|
+
tilesetName: params.tilesetName,
|
|
1532
|
+
slpk: true
|
|
1533
|
+
});
|
|
1530
1534
|
const diff = process.hrtime(this.conversionStartTime);
|
|
1531
1535
|
const conversionTime = timeConverter(diff);
|
|
1532
1536
|
console.log('------------------------------------------------'); // eslint-disable-line no-undef, no-console
|