@loaders.gl/tile-converter 4.2.0 → 4.3.0-alpha.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/dist/converter.min.cjs +2 -2
- package/dist/deps-installer/deps-installer.js +1 -1
- package/dist/i3s-server/certs/cert.pem +19 -0
- package/dist/i3s-server/certs/key.pem +27 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/pgm-loader.js +1 -1
- package/package.json +19 -18
- package/src/i3s-server/README.md +6 -0
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.2.0
|
|
4
|
+
const VERSION = typeof "4.2.0" !== 'undefined' ? "4.2.0" : '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
|
+
"version": "4.3.0-alpha.1",
|
|
4
4
|
"description": "Converter",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -46,26 +46,27 @@
|
|
|
46
46
|
"process": false
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
|
-
"pre-build": "npm run build-converter-bundle && npm run build-slpk-extractor-bundle && npm run build-i3s-server-bundle",
|
|
49
|
+
"pre-build": "npm run build-converter-bundle && npm run build-slpk-extractor-bundle && npm run build-i3s-server-bundle && npm run copy-certificates",
|
|
50
50
|
"build-converter-bundle": "esbuild src/converter-cli.ts --outfile=dist/converter.min.cjs --platform=node --target=esnext,node14 --external:join-images --minify --bundle --define:__VERSION__=\\\"$npm_package_version\\\"",
|
|
51
51
|
"build-slpk-extractor-bundle": "esbuild src/slpk-extractor-cli.ts --outfile=dist/slpk-extractor.min.cjs --platform=node --target=esnext,node14 --minify --bundle --define:__VERSION__=\\\"$npm_package_version\\\"",
|
|
52
|
-
"build-i3s-server-bundle": "esbuild src/i3s-server/bin/www.ts --outfile=dist/i3s-server/bin/i3s-server.min.cjs --platform=node --target=esnext,node14 --minify --bundle --define:__VERSION__=\\\"$npm_package_version\\\""
|
|
52
|
+
"build-i3s-server-bundle": "esbuild src/i3s-server/bin/www.ts --outfile=dist/i3s-server/bin/i3s-server.min.cjs --platform=node --target=esnext,node14 --minify --bundle --define:__VERSION__=\\\"$npm_package_version\\\"",
|
|
53
|
+
"copy-certificates": "cp -R src/i3s-server/certs dist/i3s-server"
|
|
53
54
|
},
|
|
54
55
|
"dependencies": {
|
|
55
|
-
"@loaders.gl/3d-tiles": "4.
|
|
56
|
-
"@loaders.gl/compression": "4.
|
|
57
|
-
"@loaders.gl/crypto": "4.
|
|
58
|
-
"@loaders.gl/draco": "4.
|
|
59
|
-
"@loaders.gl/gltf": "4.
|
|
60
|
-
"@loaders.gl/i3s": "4.
|
|
61
|
-
"@loaders.gl/images": "4.
|
|
62
|
-
"@loaders.gl/loader-utils": "4.
|
|
63
|
-
"@loaders.gl/math": "4.
|
|
64
|
-
"@loaders.gl/polyfills": "4.
|
|
65
|
-
"@loaders.gl/textures": "4.
|
|
66
|
-
"@loaders.gl/tiles": "4.
|
|
67
|
-
"@loaders.gl/worker-utils": "4.
|
|
68
|
-
"@loaders.gl/zip": "4.
|
|
56
|
+
"@loaders.gl/3d-tiles": "4.3.0-alpha.1",
|
|
57
|
+
"@loaders.gl/compression": "4.3.0-alpha.1",
|
|
58
|
+
"@loaders.gl/crypto": "4.3.0-alpha.1",
|
|
59
|
+
"@loaders.gl/draco": "4.3.0-alpha.1",
|
|
60
|
+
"@loaders.gl/gltf": "4.3.0-alpha.1",
|
|
61
|
+
"@loaders.gl/i3s": "4.3.0-alpha.1",
|
|
62
|
+
"@loaders.gl/images": "4.3.0-alpha.1",
|
|
63
|
+
"@loaders.gl/loader-utils": "4.3.0-alpha.1",
|
|
64
|
+
"@loaders.gl/math": "4.3.0-alpha.1",
|
|
65
|
+
"@loaders.gl/polyfills": "4.3.0-alpha.1",
|
|
66
|
+
"@loaders.gl/textures": "4.3.0-alpha.1",
|
|
67
|
+
"@loaders.gl/tiles": "4.3.0-alpha.1",
|
|
68
|
+
"@loaders.gl/worker-utils": "4.3.0-alpha.1",
|
|
69
|
+
"@loaders.gl/zip": "4.3.0-alpha.1",
|
|
69
70
|
"@math.gl/core": "^4.0.0",
|
|
70
71
|
"@math.gl/culling": "^4.0.0",
|
|
71
72
|
"@math.gl/geoid": "^4.0.0",
|
|
@@ -93,5 +94,5 @@
|
|
|
93
94
|
"peerDependencies": {
|
|
94
95
|
"@loaders.gl/core": "^4.0.0"
|
|
95
96
|
},
|
|
96
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "568446ea69eb590f0c42d965459b636216cda74e"
|
|
97
98
|
}
|
package/src/i3s-server/README.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
The http server run on NodeJS ExpressJS framework.
|
|
4
4
|
The server provides I3S Rest endpoints per specification https://github.com/Esri/i3s-spec/blob/master/docs/1.7/3Dobject_ReadMe.md#http-api-overview-17
|
|
5
5
|
|
|
6
|
+
## Development
|
|
7
|
+
|
|
8
|
+
- install tsx globally `yarn global add tsx`
|
|
9
|
+
- uncomment "local debug" lines in `modules/tile-converter/src/i3s-server/app.ts` and `modules/tile-converter/src/i3s-server/bin/www.ts` (see comments);
|
|
10
|
+
- run `PORT=8080 HTTPS_PORT=4443 I3sLayerPath="./path/to/dataset" DEBUG=i3s-server:* npx tsx ./src/i3s-server/bin/www.ts`
|
|
11
|
+
|
|
6
12
|
## Usage
|
|
7
13
|
|
|
8
14
|
### Serve 3DTiles to I3S converted dataset
|