@loaders.gl/raster 5.0.0-alpha.14 → 5.0.0-beta.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 +2 -30
- package/README.md +5 -0
- package/THIRD-PARTY-NOTICES.md +21 -0
- package/dist/geotiff/advanced.cjs +4 -4
- package/dist/geotiff/advanced.cjs.map +1 -1
- package/dist/geotiff/geotiff-loader-types.js +1 -1
- package/dist/geotiff/geotiff-loader-types.js.map +1 -1
- package/dist/geotiff/geotiff-raster-loader-types.js +1 -1
- package/dist/geotiff/geotiff-raster-loader-types.js.map +1 -1
- package/dist/geotiff/geotiff-source-loader.js +1 -1
- package/dist/geotiff/geotiff-source-loader.js.map +1 -1
- package/dist/geotiff/loaders.js +1 -1
- package/dist/geotiff/loaders.js.map +1 -1
- package/dist/geotiff/ometiff-source-loader.js +1 -1
- package/dist/geotiff/ometiff-source-loader.js.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/lerc/lerc-loader-types.js +1 -1
- package/dist/lerc/lerc-loader-types.js.map +1 -1
- package/dist/quantized-mesh-worker.js +141 -32
- package/dist/terrain/index.cjs +1 -1
- package/dist/terrain/index.cjs.map +1 -1
- package/dist/terrain/lib/utils/version.js +1 -1
- package/dist/terrain/lib/utils/version.js.map +1 -1
- package/dist/terrain-worker.js +142 -33
- package/package.json +8 -5
- package/third-party-licenses/delatin-LICENSE +15 -0
package/dist/terrain-worker.js
CHANGED
|
@@ -611,6 +611,134 @@
|
|
|
611
611
|
}
|
|
612
612
|
});
|
|
613
613
|
|
|
614
|
+
// ../../node_modules/@math.gl/core/dist/lib/math-utils.js
|
|
615
|
+
var PI_OVER_TWO, PI_OVER_FOUR, PI_OVER_SIX, TWO_PI;
|
|
616
|
+
var init_math_utils = __esm({
|
|
617
|
+
"../../node_modules/@math.gl/core/dist/lib/math-utils.js"() {
|
|
618
|
+
PI_OVER_TWO = Math.PI / 2;
|
|
619
|
+
PI_OVER_FOUR = Math.PI / 4;
|
|
620
|
+
PI_OVER_SIX = Math.PI / 6;
|
|
621
|
+
TWO_PI = Math.PI * 2;
|
|
622
|
+
}
|
|
623
|
+
});
|
|
624
|
+
|
|
625
|
+
// ../../node_modules/@math.gl/core/dist/gl-matrix/vec2.js
|
|
626
|
+
var init_vec2 = __esm({
|
|
627
|
+
"../../node_modules/@math.gl/core/dist/gl-matrix/vec2.js"() {
|
|
628
|
+
}
|
|
629
|
+
});
|
|
630
|
+
|
|
631
|
+
// ../../node_modules/@math.gl/core/dist/gl-matrix/vec3.js
|
|
632
|
+
var init_vec3 = __esm({
|
|
633
|
+
"../../node_modules/@math.gl/core/dist/gl-matrix/vec3.js"() {
|
|
634
|
+
}
|
|
635
|
+
});
|
|
636
|
+
|
|
637
|
+
// ../../node_modules/@math.gl/core/dist/gl-matrix/mat3.js
|
|
638
|
+
var init_mat3 = __esm({
|
|
639
|
+
"../../node_modules/@math.gl/core/dist/gl-matrix/mat3.js"() {
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
|
|
643
|
+
// ../../node_modules/@math.gl/core/dist/gl-matrix/mat4.js
|
|
644
|
+
var init_mat4 = __esm({
|
|
645
|
+
"../../node_modules/@math.gl/core/dist/gl-matrix/mat4.js"() {
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
|
|
649
|
+
// ../../node_modules/@math.gl/core/dist/gl-matrix/vec4.js
|
|
650
|
+
var init_vec4 = __esm({
|
|
651
|
+
"../../node_modules/@math.gl/core/dist/gl-matrix/vec4.js"() {
|
|
652
|
+
}
|
|
653
|
+
});
|
|
654
|
+
|
|
655
|
+
// ../../node_modules/@math.gl/core/dist/gl-matrix/quat.js
|
|
656
|
+
var init_quat = __esm({
|
|
657
|
+
"../../node_modules/@math.gl/core/dist/gl-matrix/quat.js"() {
|
|
658
|
+
}
|
|
659
|
+
});
|
|
660
|
+
|
|
661
|
+
// ../../node_modules/@math.gl/core/dist/types/float16.js
|
|
662
|
+
function getFloat16ArrayConstructor() {
|
|
663
|
+
return NativeFloat16ArrayConstructor ?? Uint16Array;
|
|
664
|
+
}
|
|
665
|
+
var NativeFloat16ArrayConstructor;
|
|
666
|
+
var init_float16 = __esm({
|
|
667
|
+
"../../node_modules/@math.gl/core/dist/types/float16.js"() {
|
|
668
|
+
NativeFloat16ArrayConstructor = globalThis.Float16Array;
|
|
669
|
+
}
|
|
670
|
+
});
|
|
671
|
+
|
|
672
|
+
// ../../node_modules/@math.gl/core/dist/types/index.js
|
|
673
|
+
var init_types = __esm({
|
|
674
|
+
"../../node_modules/@math.gl/core/dist/types/index.js"() {
|
|
675
|
+
init_float16();
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
|
|
679
|
+
// ../../node_modules/@math.gl/core/dist/types.js
|
|
680
|
+
var init_types2 = __esm({
|
|
681
|
+
"../../node_modules/@math.gl/core/dist/types.js"() {
|
|
682
|
+
init_types();
|
|
683
|
+
}
|
|
684
|
+
});
|
|
685
|
+
|
|
686
|
+
// ../../node_modules/@math.gl/core/dist/mat3.js
|
|
687
|
+
var init_mat32 = __esm({
|
|
688
|
+
"../../node_modules/@math.gl/core/dist/mat3.js"() {
|
|
689
|
+
init_mat3();
|
|
690
|
+
}
|
|
691
|
+
});
|
|
692
|
+
|
|
693
|
+
// ../../node_modules/@math.gl/core/dist/mat4.js
|
|
694
|
+
var init_mat42 = __esm({
|
|
695
|
+
"../../node_modules/@math.gl/core/dist/mat4.js"() {
|
|
696
|
+
init_mat4();
|
|
697
|
+
}
|
|
698
|
+
});
|
|
699
|
+
|
|
700
|
+
// ../../node_modules/@math.gl/core/dist/quat.js
|
|
701
|
+
var init_quat2 = __esm({
|
|
702
|
+
"../../node_modules/@math.gl/core/dist/quat.js"() {
|
|
703
|
+
init_quat();
|
|
704
|
+
}
|
|
705
|
+
});
|
|
706
|
+
|
|
707
|
+
// ../../node_modules/@math.gl/core/dist/vec2.js
|
|
708
|
+
var init_vec22 = __esm({
|
|
709
|
+
"../../node_modules/@math.gl/core/dist/vec2.js"() {
|
|
710
|
+
init_vec2();
|
|
711
|
+
}
|
|
712
|
+
});
|
|
713
|
+
|
|
714
|
+
// ../../node_modules/@math.gl/core/dist/vec3.js
|
|
715
|
+
var init_vec32 = __esm({
|
|
716
|
+
"../../node_modules/@math.gl/core/dist/vec3.js"() {
|
|
717
|
+
init_vec3();
|
|
718
|
+
}
|
|
719
|
+
});
|
|
720
|
+
|
|
721
|
+
// ../../node_modules/@math.gl/core/dist/vec4.js
|
|
722
|
+
var init_vec42 = __esm({
|
|
723
|
+
"../../node_modules/@math.gl/core/dist/vec4.js"() {
|
|
724
|
+
init_vec4();
|
|
725
|
+
}
|
|
726
|
+
});
|
|
727
|
+
|
|
728
|
+
// ../../node_modules/@math.gl/core/dist/index.js
|
|
729
|
+
var init_dist = __esm({
|
|
730
|
+
"../../node_modules/@math.gl/core/dist/index.js"() {
|
|
731
|
+
init_math_utils();
|
|
732
|
+
init_types2();
|
|
733
|
+
init_mat32();
|
|
734
|
+
init_mat42();
|
|
735
|
+
init_quat2();
|
|
736
|
+
init_vec22();
|
|
737
|
+
init_vec32();
|
|
738
|
+
init_vec42();
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
|
|
614
742
|
// ../core/src/loader-utils/index.ts
|
|
615
743
|
var init_loader_utils = __esm({
|
|
616
744
|
"../core/src/loader-utils/index.ts"() {
|
|
@@ -15960,16 +16088,17 @@ return true;`);
|
|
|
15960
16088
|
|
|
15961
16089
|
// ../core/src/schema-utils/lib/arrow/split-arrow-buffers.ts
|
|
15962
16090
|
function splitArrowBuffers(input, options = {}) {
|
|
16091
|
+
const context = { ...options, copies: /* @__PURE__ */ new WeakMap() };
|
|
15963
16092
|
if (isArrowTable2(input)) {
|
|
15964
|
-
return splitArrowTableBuffersInternal(input,
|
|
16093
|
+
return splitArrowTableBuffersInternal(input, context);
|
|
15965
16094
|
}
|
|
15966
16095
|
if (isArrowRecordBatch2(input)) {
|
|
15967
|
-
return splitArrowRecordBatchBuffers(input,
|
|
16096
|
+
return splitArrowRecordBatchBuffers(input, context);
|
|
15968
16097
|
}
|
|
15969
16098
|
if (isArrowVector2(input)) {
|
|
15970
|
-
return splitArrowVectorBuffers(input,
|
|
16099
|
+
return splitArrowVectorBuffers(input, context);
|
|
15971
16100
|
}
|
|
15972
|
-
return splitArrowDataBuffers(input,
|
|
16101
|
+
return splitArrowDataBuffers(input, context);
|
|
15973
16102
|
}
|
|
15974
16103
|
function isArrowTable2(input) {
|
|
15975
16104
|
return "batches" in input;
|
|
@@ -16025,7 +16154,12 @@ return true;`);
|
|
|
16025
16154
|
if (options.copy !== "all" && array.byteOffset === 0 && array.byteLength === array.buffer.byteLength) {
|
|
16026
16155
|
return array;
|
|
16027
16156
|
}
|
|
16028
|
-
|
|
16157
|
+
let copy = options.copies.get(array);
|
|
16158
|
+
if (!copy) {
|
|
16159
|
+
copy = array.slice();
|
|
16160
|
+
options.copies.set(array, copy);
|
|
16161
|
+
}
|
|
16162
|
+
return copy;
|
|
16029
16163
|
}
|
|
16030
16164
|
function isArrowTypedArray(value) {
|
|
16031
16165
|
return ArrayBuffer.isView(value) && !(value instanceof DataView);
|
|
@@ -16140,31 +16274,6 @@ return true;`);
|
|
|
16140
16274
|
}
|
|
16141
16275
|
});
|
|
16142
16276
|
|
|
16143
|
-
// ../../node_modules/@math.gl/core/dist/types/float16.js
|
|
16144
|
-
function getFloat16ArrayConstructor() {
|
|
16145
|
-
return NativeFloat16ArrayConstructor ?? Uint16Array;
|
|
16146
|
-
}
|
|
16147
|
-
var NativeFloat16ArrayConstructor;
|
|
16148
|
-
var init_float16 = __esm({
|
|
16149
|
-
"../../node_modules/@math.gl/core/dist/types/float16.js"() {
|
|
16150
|
-
NativeFloat16ArrayConstructor = globalThis.Float16Array;
|
|
16151
|
-
}
|
|
16152
|
-
});
|
|
16153
|
-
|
|
16154
|
-
// ../../node_modules/@math.gl/core/dist/types/index.js
|
|
16155
|
-
var init_types = __esm({
|
|
16156
|
-
"../../node_modules/@math.gl/core/dist/types/index.js"() {
|
|
16157
|
-
init_float16();
|
|
16158
|
-
}
|
|
16159
|
-
});
|
|
16160
|
-
|
|
16161
|
-
// ../../node_modules/@math.gl/core/dist/types.js
|
|
16162
|
-
var init_types2 = __esm({
|
|
16163
|
-
"../../node_modules/@math.gl/core/dist/types.js"() {
|
|
16164
|
-
init_types();
|
|
16165
|
-
}
|
|
16166
|
-
});
|
|
16167
|
-
|
|
16168
16277
|
// ../core/src/schema-utils/lib/schema/data-type.ts
|
|
16169
16278
|
function getDataTypeFromValue(value, defaultNumberType = "float32") {
|
|
16170
16279
|
if (value instanceof Date) {
|
|
@@ -16332,7 +16441,7 @@ return true;`);
|
|
|
16332
16441
|
var init_float162 = __esm({
|
|
16333
16442
|
"../core/src/schema/float16.ts"() {
|
|
16334
16443
|
"use strict";
|
|
16335
|
-
|
|
16444
|
+
init_dist();
|
|
16336
16445
|
}
|
|
16337
16446
|
});
|
|
16338
16447
|
|
|
@@ -17040,7 +17149,7 @@ return true;`);
|
|
|
17040
17149
|
var init_version = __esm({
|
|
17041
17150
|
"../images/src/lib/utils/version.ts"() {
|
|
17042
17151
|
"use strict";
|
|
17043
|
-
VERSION = true ? "5.0.0-
|
|
17152
|
+
VERSION = true ? "5.0.0-beta.1" : "latest";
|
|
17044
17153
|
}
|
|
17045
17154
|
});
|
|
17046
17155
|
|
|
@@ -18161,7 +18270,7 @@ return true;`);
|
|
|
18161
18270
|
var init_version2 = __esm({
|
|
18162
18271
|
"src/terrain/lib/utils/version.ts"() {
|
|
18163
18272
|
"use strict";
|
|
18164
|
-
VERSION2 = true ? "5.0.0-
|
|
18273
|
+
VERSION2 = true ? "5.0.0-beta.1" : "latest";
|
|
18165
18274
|
}
|
|
18166
18275
|
});
|
|
18167
18276
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/raster",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-beta.1",
|
|
4
4
|
"description": "GeoTIFF, LERC and terrain loaders with lazy format entry points",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -311,7 +311,10 @@
|
|
|
311
311
|
"files": [
|
|
312
312
|
"src",
|
|
313
313
|
"dist",
|
|
314
|
-
"README.md"
|
|
314
|
+
"README.md",
|
|
315
|
+
"LICENSE",
|
|
316
|
+
"THIRD-PARTY-NOTICES.md",
|
|
317
|
+
"third-party-licenses"
|
|
315
318
|
],
|
|
316
319
|
"scripts": {
|
|
317
320
|
"copy-libs": "mkdir -p dist/terrain/libs dist/lerc/libs && cp -R src/terrain/libs/. dist/terrain/libs/ && cp -R src/lerc/libs/. dist/lerc/libs/",
|
|
@@ -321,8 +324,8 @@
|
|
|
321
324
|
"pre-build": "npm run copy-libs && node ./build-cjs.mjs && npm run build-worker-terrain && npm run build-worker-quantized-mesh"
|
|
322
325
|
},
|
|
323
326
|
"dependencies": {
|
|
324
|
-
"@loaders.gl/images": "5.0.0-
|
|
325
|
-
"@math.gl/geospatial": "5.0.0-
|
|
327
|
+
"@loaders.gl/images": "5.0.0-beta.1",
|
|
328
|
+
"@math.gl/geospatial": "5.0.0-beta.1",
|
|
326
329
|
"fast-xml-parser": "^5.3.6"
|
|
327
330
|
},
|
|
328
331
|
"peerDependencies": {
|
|
@@ -343,5 +346,5 @@
|
|
|
343
346
|
"geotiff": "^2.1.0",
|
|
344
347
|
"lerc": "^4.2.0"
|
|
345
348
|
},
|
|
346
|
-
"gitHead": "
|
|
349
|
+
"gitHead": "89312301ed9e8ec89a58501c052a38284d1570c1"
|
|
347
350
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019, Michael Fogleman, Vladimir Agafonkin
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
6
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
7
|
+
and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
11
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
13
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
14
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
15
|
+
THIS SOFTWARE.
|