@loaders.gl/geospatial 5.0.0-beta.4 → 5.0.0-beta.6
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/README.md +1 -1
- package/WKT-README.md +1 -1
- package/dist/dbf-loader-types.cjs +1 -1
- package/dist/dbf-worker.js +391 -104
- package/dist/flatgeobuf/flatgeobuf-loader-types.cjs +1 -1
- package/dist/flatgeobuf/flatgeobuf-loader-types.js +1 -1
- package/dist/flatgeobuf/flatgeobuf-source-loader.cjs +1 -1
- package/dist/flatgeobuf/flatgeobuf-source-loader.js +1 -1
- package/dist/flatgeobuf-loader-types.cjs +1 -1
- package/dist/flatgeobuf-source-loader.cjs +1 -1
- package/dist/flatgeobuf-worker.js +853 -535
- package/dist/geopackage/geopackage-source-loader.cjs +19 -1
- package/dist/geopackage/geopackage-source-loader.cjs.map +3 -3
- package/dist/geopackage/geopackage-source-loader.d.ts +9 -1
- package/dist/geopackage/geopackage-source-loader.d.ts.map +1 -1
- package/dist/geopackage/geopackage-source-loader.js +20 -1
- package/dist/geopackage/geopackage-source-loader.js.map +1 -1
- package/dist/geopackage-source-loader.cjs +19 -1
- package/dist/geopackage-source-loader.cjs.map +3 -3
- package/dist/gpx-loader-types.cjs +1 -1
- package/dist/kml/gpx-loader-types.cjs +1 -1
- package/dist/kml/gpx-loader-types.js +1 -1
- package/dist/kml/kml-loader-types.cjs +1 -1
- package/dist/kml/kml-loader-types.js +1 -1
- package/dist/kml/kml-writer.cjs +1 -1
- package/dist/kml/kml-writer.js +1 -1
- package/dist/kml/kmz-loader-types.cjs +1 -1
- package/dist/kml/kmz-loader-types.js +1 -1
- package/dist/kml/kmz-source.cjs +1 -1
- package/dist/kml/kmz-source.js +1 -1
- package/dist/kml/tcx-loader-types.cjs +1 -1
- package/dist/kml/tcx-loader-types.js +1 -1
- package/dist/kml-loader-types.cjs +1 -1
- package/dist/kml-writer.cjs +1 -1
- package/dist/kmz-loader-types.cjs +1 -1
- package/dist/kmz-source.cjs +1 -1
- package/dist/shapefile/dbf-loader-types.cjs +1 -1
- package/dist/shapefile/dbf-loader-types.js +1 -1
- package/dist/shapefile/lib/shapefile-worker-transport.cjs +3 -3
- package/dist/shapefile/lib/shapefile-worker-transport.cjs.map +2 -2
- package/dist/shapefile/lib/shapefile-worker-transport.js +1 -1
- package/dist/shapefile/lib/shapefile-worker-transport.js.map +1 -1
- package/dist/shapefile/shapefile-loader-types.cjs +1 -1
- package/dist/shapefile/shapefile-loader-types.js +1 -1
- package/dist/shapefile/shp-loader-types.cjs +1 -1
- package/dist/shapefile/shp-loader-types.js +1 -1
- package/dist/shapefile-loader-types.cjs +1 -1
- package/dist/shapefile-worker.js +2705 -2342
- package/dist/shp-loader-types.cjs +1 -1
- package/dist/shp-worker.js +2447 -2188
- package/dist/tcx-loader-types.cjs +1 -1
- package/dist/wkt/lib/version.cjs +1 -1
- package/dist/wkt/lib/version.js +1 -1
- package/dist/wkt/wkt-format.cjs +2 -2
- package/dist/wkt/wkt-format.cjs.map +2 -2
- package/dist/wkt/wkt-format.js +1 -1
- package/dist/wkt/wkt-format.js.map +1 -1
- package/dist/wkt-worker.js +251 -51
- package/package.json +6 -5
- package/src/geopackage/geopackage-source-loader.ts +25 -1
- package/src/shapefile/lib/shapefile-worker-transport.ts +1 -1
- package/src/wkt/wkt-format.ts +1 -1
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(tcx_loader_types_exports);
|
|
|
36
36
|
|
|
37
37
|
// src/kml/tcx-loader-types.ts
|
|
38
38
|
var import_kml_format = require("./kml-format.cjs");
|
|
39
|
-
var VERSION = true ? "5.0.0-beta.
|
|
39
|
+
var VERSION = true ? "5.0.0-beta.6" : "latest";
|
|
40
40
|
async function preloadTCXLoader() {
|
|
41
41
|
const { TCXLoaderWithParser } = await import("@loaders.gl/geospatial/tcx");
|
|
42
42
|
return TCXLoaderWithParser;
|
package/dist/wkt/lib/version.cjs
CHANGED
|
@@ -23,7 +23,7 @@ __export(version_exports, {
|
|
|
23
23
|
VERSION: () => VERSION
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(version_exports);
|
|
26
|
-
var VERSION = true ? "5.0.0-beta.
|
|
26
|
+
var VERSION = true ? "5.0.0-beta.6" : "latest";
|
|
27
27
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
28
|
0 && (module.exports = {
|
|
29
29
|
VERSION
|
package/dist/wkt/lib/version.js
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
// Version constant cannot be imported, it needs to correspond to the build version of **this** module.
|
|
5
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
6
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
7
|
-
export const VERSION = typeof "5.0.0-beta.
|
|
7
|
+
export const VERSION = typeof "5.0.0-beta.6" !== 'undefined' ? "5.0.0-beta.6" : 'latest';
|
|
8
8
|
//# sourceMappingURL=version.js.map
|
package/dist/wkt/wkt-format.cjs
CHANGED
|
@@ -27,7 +27,7 @@ __export(wkt_format_exports, {
|
|
|
27
27
|
WKTFormat: () => WKTFormat
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(wkt_format_exports);
|
|
30
|
-
var
|
|
30
|
+
var import_wkb = require("@math.gl/arrow/wkb");
|
|
31
31
|
var WKT_MAGIC_STRINGS = [
|
|
32
32
|
"POINT(",
|
|
33
33
|
"LINESTRING(",
|
|
@@ -44,7 +44,7 @@ function isWKT(input) {
|
|
|
44
44
|
}
|
|
45
45
|
function isWKB(input) {
|
|
46
46
|
try {
|
|
47
|
-
(0,
|
|
47
|
+
(0, import_wkb.inspectWKBHeader)(input);
|
|
48
48
|
return true;
|
|
49
49
|
} catch {
|
|
50
50
|
return false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/wkt/wkt-format.ts"],
|
|
4
|
-
"sourcesContent": ["// loaders.gl\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\n\nimport type {Format} from '@loaders.gl/core/loader-utils';\nimport {inspectWKBHeader} from '@math.gl/
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,
|
|
4
|
+
"sourcesContent": ["// loaders.gl\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\n\nimport type {Format} from '@loaders.gl/core/loader-utils';\nimport {inspectWKBHeader} from '@math.gl/arrow/wkb';\n\nconst WKT_MAGIC_STRINGS = [\n 'POINT(',\n 'LINESTRING(',\n 'POLYGON(',\n 'MULTIPOINT(',\n 'MULTILINESTRING(',\n 'MULTIPOLYGON(',\n 'GEOMETRYCOLLECTION('\n];\n\n/** Detects whether text begins with a supported WKT geometry type. */\nfunction isWKT(input: string): boolean {\n return /^\\s*(?:SRID=\\d+\\s*;\\s*)?(?:POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)(?:\\s+(?:ZM|Z|M))?(?:\\s|\\()/i.test(\n input\n );\n}\n\n/** Detects whether a value begins with a supported WKB header. */\nfunction isWKB(input: ArrayBufferLike): boolean {\n try {\n inspectWKBHeader(input);\n return true;\n } catch {\n return false;\n }\n}\n\n/** Well-Known Text geometry format. */\nexport const WKTFormat = {\n name: 'WKT (Well-Known Text)',\n id: 'wkt',\n module: 'geospatial',\n encoding: 'text',\n format: 'wkt',\n extensions: ['wkt'],\n mimeTypes: ['text/plain'],\n category: 'geometry',\n text: true,\n tests: WKT_MAGIC_STRINGS,\n testText: isWKT\n} as const satisfies Format & {testText: typeof isWKT};\n\n/** Well-Known Binary geometry format. */\nexport const WKBFormat = {\n name: 'WKB',\n id: 'wkb',\n module: 'geospatial',\n category: 'geometry',\n encoding: 'binary',\n format: 'wkb',\n extensions: ['wkb'],\n mimeTypes: [],\n binary: true,\n tests: [isWKB]\n} as const satisfies Format;\n\n/** Hex-encoded Well-Known Binary geometry format. */\nexport const HexWKBFormat = {\n name: 'Hexadecimal WKB',\n id: 'wkb',\n module: 'geospatial',\n category: 'geometry',\n encoding: 'text',\n format: 'hex-wkb',\n extensions: ['wkb'],\n mimeTypes: [],\n text: true\n} as const satisfies Format;\n\n/** Tiny Well-Known Binary geometry format. */\nexport const TWKBFormat = {\n name: 'TWKB (Tiny Well-Known Binary)',\n id: 'twkb',\n module: 'geospatial',\n encoding: 'binary',\n format: 'twkb',\n extensions: ['twkb'],\n mimeTypes: ['application/octet-stream'],\n category: 'geometry',\n binary: true\n} as const satisfies Format;\n\n/** Well-Known Text coordinate reference system format. */\nexport const WKTCRSFormat = {\n name: 'WKT CRS',\n id: 'wkt-crs',\n module: 'geospatial',\n encoding: 'text',\n format: 'wkt-crs',\n extensions: ['wkt'],\n mimeTypes: ['text/plain'],\n category: 'metadata',\n text: true\n} as const satisfies Format;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,iBAA+B;AAE/B,IAAM,oBAAoB;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGA,SAAS,MAAM,OAAwB;AACrC,SAAO,8IAA8I;AAAA,IACnJ;AAAA,EACF;AACF;AAGA,SAAS,MAAM,OAAiC;AAC9C,MAAI;AACF,qCAAiB,KAAK;AACtB,WAAO;AAAA,EACT,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAGO,IAAM,YAAY;AAAA,EACvB,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,YAAY,CAAC,KAAK;AAAA,EAClB,WAAW,CAAC,YAAY;AAAA,EACxB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,OAAO;AAAA,EACP,UAAU;AACZ;AAGO,IAAM,YAAY;AAAA,EACvB,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,YAAY,CAAC,KAAK;AAAA,EAClB,WAAW,CAAC;AAAA,EACZ,QAAQ;AAAA,EACR,OAAO,CAAC,KAAK;AACf;AAGO,IAAM,eAAe;AAAA,EAC1B,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,YAAY,CAAC,KAAK;AAAA,EAClB,WAAW,CAAC;AAAA,EACZ,MAAM;AACR;AAGO,IAAM,aAAa;AAAA,EACxB,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,YAAY,CAAC,MAAM;AAAA,EACnB,WAAW,CAAC,0BAA0B;AAAA,EACtC,UAAU;AAAA,EACV,QAAQ;AACV;AAGO,IAAM,eAAe;AAAA,EAC1B,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,YAAY,CAAC,KAAK;AAAA,EAClB,WAAW,CAAC,YAAY;AAAA,EACxB,UAAU;AAAA,EACV,MAAM;AACR;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/wkt/wkt-format.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wkt-format.js","sourceRoot":"","sources":["../../src/wkt/wkt-format.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAGpC,OAAO,EAAC,gBAAgB,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"wkt-format.js","sourceRoot":"","sources":["../../src/wkt/wkt-format.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAGpC,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAEpD,MAAM,iBAAiB,GAAG;IACxB,QAAQ;IACR,aAAa;IACb,UAAU;IACV,aAAa;IACb,kBAAkB;IAClB,eAAe;IACf,qBAAqB;CACtB,CAAC;AAEF,sEAAsE;AACtE,SAAS,KAAK,CAAC,KAAa;IAC1B,OAAO,6IAA6I,CAAC,IAAI,CACvJ,KAAK,CACN,CAAC;AACJ,CAAC;AAED,kEAAkE;AAClE,SAAS,KAAK,CAAC,KAAsB;IACnC,IAAI,CAAC;QACH,gBAAgB,CAAC,KAAK,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,uCAAuC;AACvC,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,uBAAuB;IAC7B,EAAE,EAAE,KAAK;IACT,MAAM,EAAE,YAAY;IACpB,QAAQ,EAAE,MAAM;IAChB,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,KAAK,CAAC;IACnB,SAAS,EAAE,CAAC,YAAY,CAAC;IACzB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,iBAAiB;IACxB,QAAQ,EAAE,KAAK;CACqC,CAAC;AAEvD,yCAAyC;AACzC,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,KAAK;IACX,EAAE,EAAE,KAAK;IACT,MAAM,EAAE,YAAY;IACpB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,QAAQ;IAClB,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,KAAK,CAAC;IACnB,SAAS,EAAE,EAAE;IACb,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,CAAC,KAAK,CAAC;CACW,CAAC;AAE5B,qDAAqD;AACrD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,iBAAiB;IACvB,EAAE,EAAE,KAAK;IACT,MAAM,EAAE,YAAY;IACpB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,MAAM;IAChB,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,CAAC,KAAK,CAAC;IACnB,SAAS,EAAE,EAAE;IACb,IAAI,EAAE,IAAI;CACe,CAAC;AAE5B,8CAA8C;AAC9C,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,+BAA+B;IACrC,EAAE,EAAE,MAAM;IACV,MAAM,EAAE,YAAY;IACpB,QAAQ,EAAE,QAAQ;IAClB,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,CAAC,MAAM,CAAC;IACpB,SAAS,EAAE,CAAC,0BAA0B,CAAC;IACvC,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,IAAI;CACa,CAAC;AAE5B,0DAA0D;AAC1D,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,SAAS;IACf,EAAE,EAAE,SAAS;IACb,MAAM,EAAE,YAAY;IACpB,QAAQ,EAAE,MAAM;IAChB,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,CAAC,KAAK,CAAC;IACnB,SAAS,EAAE,CAAC,YAAY,CAAC;IACzB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,IAAI;CACe,CAAC"}
|
package/dist/wkt-worker.js
CHANGED
|
@@ -42,25 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
// ../../node_modules/@math.gl/
|
|
46
|
-
var init_ellipsoid = __esm({
|
|
47
|
-
"../../node_modules/@math.gl/geospatial/dist/entries/ellipsoid.js"() {
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
// ../../node_modules/@math.gl/geospatial/dist/globe.js
|
|
52
|
-
var init_globe = __esm({
|
|
53
|
-
"../../node_modules/@math.gl/geospatial/dist/globe.js"() {
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
// ../../node_modules/@math.gl/geospatial/dist/tiles.js
|
|
58
|
-
var init_tiles = __esm({
|
|
59
|
-
"../../node_modules/@math.gl/geospatial/dist/tiles.js"() {
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
// ../../node_modules/@math.gl/geospatial/dist/wkb/types.js
|
|
45
|
+
// ../../node_modules/@math.gl/arrow/dist/wkb/types.js
|
|
64
46
|
function getWellKnownDimensionSize(dimension) {
|
|
65
47
|
switch (dimension) {
|
|
66
48
|
case "xy":
|
|
@@ -73,11 +55,11 @@
|
|
|
73
55
|
}
|
|
74
56
|
}
|
|
75
57
|
var init_types = __esm({
|
|
76
|
-
"../../node_modules/@math.gl/
|
|
58
|
+
"../../node_modules/@math.gl/arrow/dist/wkb/types.js"() {
|
|
77
59
|
}
|
|
78
60
|
});
|
|
79
61
|
|
|
80
|
-
// ../../node_modules/@math.gl/
|
|
62
|
+
// ../../node_modules/@math.gl/arrow/dist/wkb/wkb-reader.js
|
|
81
63
|
function inspectWKBHeader(input, byteOffset = 0) {
|
|
82
64
|
return inspectWKBHeaderView(getDataView(input), byteOffset);
|
|
83
65
|
}
|
|
@@ -138,7 +120,7 @@
|
|
|
138
120
|
}
|
|
139
121
|
var GEOMETRY_TYPES;
|
|
140
122
|
var init_wkb_reader = __esm({
|
|
141
|
-
"../../node_modules/@math.gl/
|
|
123
|
+
"../../node_modules/@math.gl/arrow/dist/wkb/wkb-reader.js"() {
|
|
142
124
|
GEOMETRY_TYPES = [
|
|
143
125
|
"Point",
|
|
144
126
|
"LineString",
|
|
@@ -151,7 +133,7 @@
|
|
|
151
133
|
}
|
|
152
134
|
});
|
|
153
135
|
|
|
154
|
-
// ../../node_modules/@math.gl/
|
|
136
|
+
// ../../node_modules/@math.gl/arrow/dist/wkb/wkb.js
|
|
155
137
|
function parseWKB(bytes, options = {}) {
|
|
156
138
|
const state = {
|
|
157
139
|
maximumDepth: validateLimit(options.maximumDepth, 64, "maximumDepth"),
|
|
@@ -271,13 +253,13 @@
|
|
|
271
253
|
return limit;
|
|
272
254
|
}
|
|
273
255
|
var init_wkb = __esm({
|
|
274
|
-
"../../node_modules/@math.gl/
|
|
256
|
+
"../../node_modules/@math.gl/arrow/dist/wkb/wkb.js"() {
|
|
275
257
|
init_types();
|
|
276
258
|
init_wkb_reader();
|
|
277
259
|
}
|
|
278
260
|
});
|
|
279
261
|
|
|
280
|
-
// ../../node_modules/@math.gl/
|
|
262
|
+
// ../../node_modules/@math.gl/arrow/dist/wkb/wkt.js
|
|
281
263
|
function parseWKTWithMetadata(text, options = {}) {
|
|
282
264
|
const parser = new WKTParser(text);
|
|
283
265
|
const result = parser.parseGeometry("xy", options, true);
|
|
@@ -396,7 +378,7 @@
|
|
|
396
378
|
}
|
|
397
379
|
var WKTParser;
|
|
398
380
|
var init_wkt = __esm({
|
|
399
|
-
"../../node_modules/@math.gl/
|
|
381
|
+
"../../node_modules/@math.gl/arrow/dist/wkb/wkt.js"() {
|
|
400
382
|
init_types();
|
|
401
383
|
WKTParser = class {
|
|
402
384
|
constructor(text) {
|
|
@@ -511,25 +493,15 @@
|
|
|
511
493
|
}
|
|
512
494
|
});
|
|
513
495
|
|
|
514
|
-
// ../../node_modules/@math.gl/
|
|
496
|
+
// ../../node_modules/@math.gl/arrow/dist/wkb/index.js
|
|
515
497
|
var init_wkb2 = __esm({
|
|
516
|
-
"../../node_modules/@math.gl/
|
|
498
|
+
"../../node_modules/@math.gl/arrow/dist/wkb/index.js"() {
|
|
517
499
|
init_wkb();
|
|
518
500
|
init_wkb_reader();
|
|
519
501
|
init_wkt();
|
|
520
502
|
}
|
|
521
503
|
});
|
|
522
504
|
|
|
523
|
-
// ../../node_modules/@math.gl/geospatial/dist/index.js
|
|
524
|
-
var init_dist = __esm({
|
|
525
|
-
"../../node_modules/@math.gl/geospatial/dist/index.js"() {
|
|
526
|
-
init_ellipsoid();
|
|
527
|
-
init_globe();
|
|
528
|
-
init_tiles();
|
|
529
|
-
init_wkb2();
|
|
530
|
-
}
|
|
531
|
-
});
|
|
532
|
-
|
|
533
505
|
// ../core/src/arrow-geometry/geometry-utils.ts
|
|
534
506
|
function normalizeEmptyPoints(geometry) {
|
|
535
507
|
if (geometry.type === "Point") {
|
|
@@ -616,7 +588,7 @@
|
|
|
616
588
|
var init_geometry_codecs = __esm({
|
|
617
589
|
"../core/src/arrow-geometry/geometry-codecs.ts"() {
|
|
618
590
|
"use strict";
|
|
619
|
-
|
|
591
|
+
init_wkb2();
|
|
620
592
|
init_geometry_utils();
|
|
621
593
|
}
|
|
622
594
|
});
|
|
@@ -626,7 +598,7 @@
|
|
|
626
598
|
var init_version = __esm({
|
|
627
599
|
"src/wkt/lib/version.ts"() {
|
|
628
600
|
"use strict";
|
|
629
|
-
VERSION = true ? "5.0.0-beta.
|
|
601
|
+
VERSION = true ? "5.0.0-beta.6" : "latest";
|
|
630
602
|
}
|
|
631
603
|
});
|
|
632
604
|
|
|
@@ -648,7 +620,7 @@
|
|
|
648
620
|
var init_wkt_format = __esm({
|
|
649
621
|
"src/wkt/wkt-format.ts"() {
|
|
650
622
|
"use strict";
|
|
651
|
-
|
|
623
|
+
init_wkb2();
|
|
652
624
|
WKT_MAGIC_STRINGS = [
|
|
653
625
|
"POINT(",
|
|
654
626
|
"LINESTRING(",
|
|
@@ -804,10 +776,10 @@
|
|
|
804
776
|
}
|
|
805
777
|
});
|
|
806
778
|
|
|
807
|
-
// ../../node_modules/@math.gl/
|
|
779
|
+
// ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/node/worker_threads-browser.js
|
|
808
780
|
var parentPort = globalThis.process?.getBuiltinModule?.("node:worker_threads")?.parentPort ?? null;
|
|
809
781
|
|
|
810
|
-
// ../../node_modules/@math.gl/
|
|
782
|
+
// ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-utils/get-transfer-list.js
|
|
811
783
|
function getTransferList(object, recursive = true, transfers) {
|
|
812
784
|
const transfersSet = transfers || /* @__PURE__ */ new Set();
|
|
813
785
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -858,7 +830,7 @@
|
|
|
858
830
|
return false;
|
|
859
831
|
}
|
|
860
832
|
|
|
861
|
-
// ../../node_modules/@math.gl/
|
|
833
|
+
// ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-farm/worker-body.js
|
|
862
834
|
async function getParentPort() {
|
|
863
835
|
return parentPort;
|
|
864
836
|
}
|
|
@@ -945,7 +917,7 @@
|
|
|
945
917
|
return messageData && typeof messageData.source === "string" && messageData.source.startsWith("loaders.gl") ? messageData : null;
|
|
946
918
|
}
|
|
947
919
|
|
|
948
|
-
// ../../node_modules/@math.gl/
|
|
920
|
+
// ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/async-queue/async-queue.js
|
|
949
921
|
var AsyncQueue = class {
|
|
950
922
|
constructor() {
|
|
951
923
|
this._values = [];
|
|
@@ -1012,7 +984,7 @@
|
|
|
1012
984
|
}
|
|
1013
985
|
};
|
|
1014
986
|
|
|
1015
|
-
// ../../node_modules/@math.gl/
|
|
987
|
+
// ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-api/shared-state.js
|
|
1016
988
|
var SharedWorkerState = class {
|
|
1017
989
|
constructor(buffer) {
|
|
1018
990
|
if (typeof SharedArrayBuffer === "undefined" || !(buffer instanceof SharedArrayBuffer) || buffer.byteLength !== 16)
|
|
@@ -1051,14 +1023,14 @@
|
|
|
1051
1023
|
}
|
|
1052
1024
|
};
|
|
1053
1025
|
|
|
1054
|
-
// ../../node_modules/@math.gl/
|
|
1026
|
+
// ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-api/validate-output-ownership.js
|
|
1055
1027
|
function validateOutputOwnership(ownership) {
|
|
1056
1028
|
if (ownership !== void 0 && ownership !== "copy" && ownership !== "transfer") {
|
|
1057
1029
|
throw new Error("Invalid worker output ownership");
|
|
1058
1030
|
}
|
|
1059
1031
|
}
|
|
1060
1032
|
|
|
1061
|
-
// ../../node_modules/@math.gl/
|
|
1033
|
+
// ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/worker-api/create-worker.js
|
|
1062
1034
|
var requestId = 0;
|
|
1063
1035
|
var activeController = null;
|
|
1064
1036
|
var activeInputBatches = null;
|
|
@@ -1266,12 +1238,12 @@
|
|
|
1266
1238
|
};
|
|
1267
1239
|
}
|
|
1268
1240
|
|
|
1269
|
-
// ../../node_modules/@math.gl/
|
|
1241
|
+
// ../../node_modules/@math.gl/tasks/dist/worker-utils/index.js
|
|
1270
1242
|
var import_meta = {};
|
|
1271
1243
|
var path = typeof __filename === "string" ? __filename.replace(/\\/g, "/") : "";
|
|
1272
1244
|
var moduleUrl = path ? `file://${path.startsWith("/") ? "" : "/"}${encodeURI(path).replace(/#/g, "%23").replace(/\?/g, "%3F")}` : import_meta.url;
|
|
1273
1245
|
|
|
1274
|
-
// ../../node_modules/@math.gl/
|
|
1246
|
+
// ../../node_modules/@math.gl/tasks/dist/tasks/task-preload.js
|
|
1275
1247
|
var pending = /* @__PURE__ */ new WeakMap();
|
|
1276
1248
|
var loaded = /* @__PURE__ */ new WeakSet();
|
|
1277
1249
|
function preloadTaskCode(task, signal) {
|
|
@@ -1308,17 +1280,182 @@
|
|
|
1308
1280
|
});
|
|
1309
1281
|
}
|
|
1310
1282
|
|
|
1311
|
-
// ../../node_modules/@math.gl/
|
|
1283
|
+
// ../../node_modules/@math.gl/tasks/dist/tasks/task-channel.js
|
|
1284
|
+
var TaskRequestError = class extends Error {
|
|
1285
|
+
};
|
|
1286
|
+
var TaskChannel = class {
|
|
1287
|
+
constructor(options) {
|
|
1288
|
+
this.options = options;
|
|
1289
|
+
this.nextId = 1;
|
|
1290
|
+
this.pending = /* @__PURE__ */ new Map();
|
|
1291
|
+
this.incoming = /* @__PURE__ */ new Map();
|
|
1292
|
+
}
|
|
1293
|
+
/** Send a request without serializing other in-flight requests. */
|
|
1294
|
+
request(operation, value, signal, transfer = []) {
|
|
1295
|
+
if (this.failure)
|
|
1296
|
+
return Promise.reject(this.failure.reason);
|
|
1297
|
+
if (signal?.aborted)
|
|
1298
|
+
return Promise.reject(signal.reason);
|
|
1299
|
+
const id = this.nextId++;
|
|
1300
|
+
return new Promise((resolve, reject) => {
|
|
1301
|
+
const abort = () => {
|
|
1302
|
+
const pending2 = this.pending.get(id);
|
|
1303
|
+
if (!pending2)
|
|
1304
|
+
return;
|
|
1305
|
+
this.pending.delete(id);
|
|
1306
|
+
pending2.cleanup();
|
|
1307
|
+
reject(signal?.reason);
|
|
1308
|
+
this.send({ source: "math.gl/tasks", kind: "cancel", id });
|
|
1309
|
+
};
|
|
1310
|
+
this.pending.set(id, {
|
|
1311
|
+
resolve,
|
|
1312
|
+
reject,
|
|
1313
|
+
cleanup: () => signal?.removeEventListener("abort", abort)
|
|
1314
|
+
});
|
|
1315
|
+
signal?.addEventListener("abort", abort, { once: true });
|
|
1316
|
+
this.send({ source: "math.gl/tasks", kind: "request", id, operation, value }, transfer);
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
1319
|
+
/** Send a one-way notification. */
|
|
1320
|
+
emit(operation, value, transfer = []) {
|
|
1321
|
+
if (this.failure)
|
|
1322
|
+
throw this.failure.reason;
|
|
1323
|
+
this.send({ source: "math.gl/tasks", kind: "event", id: 0, operation, value }, transfer);
|
|
1324
|
+
}
|
|
1325
|
+
/** Dispatch a transport message; unrelated protocols are ignored. */
|
|
1326
|
+
receive(message) {
|
|
1327
|
+
if (this.failure || message?.source !== "math.gl/tasks")
|
|
1328
|
+
return;
|
|
1329
|
+
if (message.kind === "failure") {
|
|
1330
|
+
const reason = new Error(message.error?.message ?? "Task channel failed");
|
|
1331
|
+
this.close(reason);
|
|
1332
|
+
this.options.onFailure?.(reason);
|
|
1333
|
+
} else if (message.kind === "result" || message.kind === "error") {
|
|
1334
|
+
const pending2 = this.pending.get(message.id);
|
|
1335
|
+
if (!pending2)
|
|
1336
|
+
return;
|
|
1337
|
+
this.pending.delete(message.id);
|
|
1338
|
+
pending2.cleanup();
|
|
1339
|
+
if (message.kind === "result")
|
|
1340
|
+
pending2.resolve(message.value);
|
|
1341
|
+
else {
|
|
1342
|
+
const error = new TaskRequestError(message.error?.message ?? "Task request failed");
|
|
1343
|
+
error.name = message.error?.name ?? "Error";
|
|
1344
|
+
pending2.reject(error);
|
|
1345
|
+
}
|
|
1346
|
+
} else if (message.kind === "cancel") {
|
|
1347
|
+
this.incoming.get(message.id)?.abort(new DOMException("Task request cancelled", "AbortError"));
|
|
1348
|
+
} else if (message.kind === "event") {
|
|
1349
|
+
try {
|
|
1350
|
+
this.options.handleEvent?.(message.operation, message.value);
|
|
1351
|
+
} catch (error) {
|
|
1352
|
+
this.fail(error);
|
|
1353
|
+
}
|
|
1354
|
+
} else if (message.kind === "request") {
|
|
1355
|
+
if (this.incoming.has(message.id)) {
|
|
1356
|
+
this.fail(new Error("Duplicate task request identifier"));
|
|
1357
|
+
return;
|
|
1358
|
+
}
|
|
1359
|
+
const controller = new AbortController();
|
|
1360
|
+
this.incoming.set(message.id, controller);
|
|
1361
|
+
void Promise.resolve().then(() => {
|
|
1362
|
+
controller.signal.throwIfAborted();
|
|
1363
|
+
return this.options.handleRequest(message.operation, message.value, controller.signal);
|
|
1364
|
+
}).then((value) => {
|
|
1365
|
+
if (!controller.signal.aborted && !this.failure) {
|
|
1366
|
+
this.send({ source: "math.gl/tasks", kind: "result", id: message.id, value }, this.options.getResultTransferList?.(value, message.value));
|
|
1367
|
+
}
|
|
1368
|
+
}).catch((reason) => {
|
|
1369
|
+
if (!controller.signal.aborted && !this.failure) {
|
|
1370
|
+
this.send({
|
|
1371
|
+
source: "math.gl/tasks",
|
|
1372
|
+
kind: "error",
|
|
1373
|
+
id: message.id,
|
|
1374
|
+
error: {
|
|
1375
|
+
name: reason instanceof Error ? reason.name : "Error",
|
|
1376
|
+
message: reason instanceof Error ? reason.message : String(reason)
|
|
1377
|
+
}
|
|
1378
|
+
});
|
|
1379
|
+
}
|
|
1380
|
+
}).finally(() => this.incoming.delete(message.id));
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
/** Reject all outstanding calls with a common cause and abort incoming callbacks. */
|
|
1384
|
+
close(reason = new Error("Task channel closed")) {
|
|
1385
|
+
if (this.failure)
|
|
1386
|
+
return;
|
|
1387
|
+
this.failure = { reason };
|
|
1388
|
+
for (const pending2 of this.pending.values()) {
|
|
1389
|
+
pending2.cleanup();
|
|
1390
|
+
pending2.reject(reason);
|
|
1391
|
+
}
|
|
1392
|
+
this.pending.clear();
|
|
1393
|
+
for (const controller of this.incoming.values())
|
|
1394
|
+
controller.abort(reason);
|
|
1395
|
+
this.incoming.clear();
|
|
1396
|
+
}
|
|
1397
|
+
send(message, transfer = []) {
|
|
1398
|
+
if (this.failure)
|
|
1399
|
+
return;
|
|
1400
|
+
try {
|
|
1401
|
+
this.options.send(message, transfer);
|
|
1402
|
+
} catch (error) {
|
|
1403
|
+
this.fail(error);
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
/** Invalidate the channel and notify the peer when the transport still works. */
|
|
1407
|
+
fail(reason) {
|
|
1408
|
+
if (this.failure)
|
|
1409
|
+
return;
|
|
1410
|
+
this.close(reason);
|
|
1411
|
+
try {
|
|
1412
|
+
this.options.send({
|
|
1413
|
+
source: "math.gl/tasks",
|
|
1414
|
+
kind: "failure",
|
|
1415
|
+
id: 0,
|
|
1416
|
+
error: {
|
|
1417
|
+
name: reason instanceof Error ? reason.name : "Error",
|
|
1418
|
+
message: reason instanceof Error ? reason.message : String(reason)
|
|
1419
|
+
}
|
|
1420
|
+
}, []);
|
|
1421
|
+
} catch {
|
|
1422
|
+
}
|
|
1423
|
+
this.options.onFailure?.(reason);
|
|
1424
|
+
}
|
|
1425
|
+
};
|
|
1426
|
+
|
|
1427
|
+
// ../../node_modules/@math.gl/tasks/dist/tasks/task-runtime.js
|
|
1312
1428
|
function assertPayload(value) {
|
|
1313
1429
|
if (!value || typeof value !== "object" || Object.getPrototypeOf(value) !== Object.prototype) {
|
|
1314
1430
|
throw new TypeError("Task payloads must be plain objects with named fields");
|
|
1315
1431
|
}
|
|
1316
1432
|
}
|
|
1433
|
+
function clonePayload(value, ownership = "copy") {
|
|
1434
|
+
assertPayload(value);
|
|
1435
|
+
if (!["copy", "transfer", "share"].includes(ownership))
|
|
1436
|
+
throw new TypeError("Invalid input ownership");
|
|
1437
|
+
const transfer = getTransferList(value);
|
|
1438
|
+
if (ownership === "share" && transfer.length)
|
|
1439
|
+
throw new TypeError("Share requires shared storage");
|
|
1440
|
+
return structuredClone(value, {
|
|
1441
|
+
transfer: ownership === "transfer" ? transfer : []
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1317
1444
|
function taskContext(state, context = {}) {
|
|
1318
1445
|
const signal = context.signal ?? new AbortController().signal;
|
|
1319
1446
|
return {
|
|
1320
1447
|
state,
|
|
1321
1448
|
signal,
|
|
1449
|
+
requestHost: async (operation, payload, controls) => {
|
|
1450
|
+
signal.throwIfAborted();
|
|
1451
|
+
if (!context.requestHost)
|
|
1452
|
+
throw new Error("No host request handler configured");
|
|
1453
|
+
return context.requestHost(operation, payload, controls);
|
|
1454
|
+
},
|
|
1455
|
+
emitHost: (operation, payload) => {
|
|
1456
|
+
signal.throwIfAborted();
|
|
1457
|
+
context.emitHost?.(operation, payload);
|
|
1458
|
+
},
|
|
1322
1459
|
throwIfAborted: () => {
|
|
1323
1460
|
signal.throwIfAborted();
|
|
1324
1461
|
context.throwIfAborted?.();
|
|
@@ -1383,6 +1520,69 @@
|
|
|
1383
1520
|
throw new Error("A task is already installed in this worker");
|
|
1384
1521
|
installed = true;
|
|
1385
1522
|
const runtime = new TaskRuntime(task);
|
|
1523
|
+
let channelStream;
|
|
1524
|
+
const channel = new TaskChannel({
|
|
1525
|
+
getResultTransferList: (value, request) => request.outputOwnership === "transfer" ? getTransferList(value) : [],
|
|
1526
|
+
send: (message, transfer) => {
|
|
1527
|
+
const snapshot = structuredClone(message, { transfer });
|
|
1528
|
+
void WorkerBody.postMessage("task-channel", snapshot).catch((reason) => channel.fail(reason));
|
|
1529
|
+
},
|
|
1530
|
+
handleRequest: async (operation, value, signal) => {
|
|
1531
|
+
const request = value;
|
|
1532
|
+
const context = {
|
|
1533
|
+
signal,
|
|
1534
|
+
reportProgress: (progress) => channel.emit("task:progress", { id: request.progressId, progress }),
|
|
1535
|
+
requestHost: (operation2, payload, controls = {}) => {
|
|
1536
|
+
const request2 = {
|
|
1537
|
+
operation: operation2,
|
|
1538
|
+
payload: clonePayload(payload, controls.inputOwnership),
|
|
1539
|
+
outputOwnership: controls.outputOwnership ?? "copy"
|
|
1540
|
+
};
|
|
1541
|
+
return channel.request("task:host-request", request2, signal, getTransferList(request2));
|
|
1542
|
+
},
|
|
1543
|
+
emitHost: (operation2, payload) => channel.emit("task:host-event", { operation: operation2, payload, id: request.progressId })
|
|
1544
|
+
};
|
|
1545
|
+
switch (operation) {
|
|
1546
|
+
case "initialize":
|
|
1547
|
+
return runtime.initialize(request.input, context);
|
|
1548
|
+
case "process":
|
|
1549
|
+
return runtime.process(request.input, request.options, context);
|
|
1550
|
+
case "stream-open": {
|
|
1551
|
+
if (channelStream)
|
|
1552
|
+
throw new Error("A task stream is already open");
|
|
1553
|
+
async function* inputs() {
|
|
1554
|
+
while (true) {
|
|
1555
|
+
const result = await channel.request("task:next-input", { outputOwnership: "transfer" }, signal);
|
|
1556
|
+
if (result.done)
|
|
1557
|
+
return;
|
|
1558
|
+
yield result.value;
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
channelStream = runtime.stream(inputs(), request.options, context)[Symbol.asyncIterator]();
|
|
1562
|
+
return {};
|
|
1563
|
+
}
|
|
1564
|
+
case "stream-next":
|
|
1565
|
+
if (!channelStream)
|
|
1566
|
+
throw new Error("No active task stream");
|
|
1567
|
+
return channelStream.next();
|
|
1568
|
+
case "stream-close":
|
|
1569
|
+
try {
|
|
1570
|
+
await channelStream?.return?.();
|
|
1571
|
+
} finally {
|
|
1572
|
+
channelStream = void 0;
|
|
1573
|
+
}
|
|
1574
|
+
return {};
|
|
1575
|
+
case "destroy":
|
|
1576
|
+
return runtime.destroy();
|
|
1577
|
+
default:
|
|
1578
|
+
throw new Error("Unknown task channel operation");
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
});
|
|
1582
|
+
await WorkerBody.addEventListener((type, payload) => {
|
|
1583
|
+
if (type === "task-channel")
|
|
1584
|
+
channel.receive(payload);
|
|
1585
|
+
});
|
|
1386
1586
|
let streamOptions = {};
|
|
1387
1587
|
return createWorker(async (request, _options, context) => {
|
|
1388
1588
|
switch (request.operation) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/geospatial",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.6",
|
|
4
4
|
"description": "Geospatial loaders and writers for vector files and geometry encodings",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -375,9 +375,10 @@
|
|
|
375
375
|
"build-worker-shapefile": "node ../../scripts/build-codec-worker.mjs src/workers/shapefile-worker.ts --bundle --outfile=dist/shapefile-worker.js --define:__VERSION__=\\\"$npm_package_version\\\""
|
|
376
376
|
},
|
|
377
377
|
"dependencies": {
|
|
378
|
-
"@loaders.gl/archives": "5.0.0-beta.
|
|
379
|
-
"@loaders.gl/documents": "5.0.0-beta.
|
|
380
|
-
"@math.gl/
|
|
378
|
+
"@loaders.gl/archives": "5.0.0-beta.6",
|
|
379
|
+
"@loaders.gl/documents": "5.0.0-beta.6",
|
|
380
|
+
"@math.gl/arrow": "5.0.0-beta.6",
|
|
381
|
+
"@math.gl/geospatial": "5.0.0-beta.6",
|
|
381
382
|
"@types/sql.js": "^1.4.5",
|
|
382
383
|
"apache-arrow": ">= 17.0.0"
|
|
383
384
|
},
|
|
@@ -418,5 +419,5 @@
|
|
|
418
419
|
"fgb",
|
|
419
420
|
"gpkg"
|
|
420
421
|
],
|
|
421
|
-
"gitHead": "
|
|
422
|
+
"gitHead": "9f51365702efd62aa5bae5f9c2880260503d76bd"
|
|
422
423
|
}
|
|
@@ -10,7 +10,8 @@ import type {
|
|
|
10
10
|
ScanQueryMetadataOptions,
|
|
11
11
|
SourceLoader,
|
|
12
12
|
TableScanReadOptions,
|
|
13
|
-
TableScanSource
|
|
13
|
+
TableScanSource,
|
|
14
|
+
TableMetadata
|
|
14
15
|
} from '@loaders.gl/core/loader-utils';
|
|
15
16
|
import {
|
|
16
17
|
getRequestedTileMatrix,
|
|
@@ -138,6 +139,29 @@ export class GeoPackageDataSource
|
|
|
138
139
|
return this.metadataPromise;
|
|
139
140
|
}
|
|
140
141
|
|
|
142
|
+
/** Lists vector table names and available schemas without reading feature rows. */
|
|
143
|
+
async getTablesMetadata(options: {signal?: AbortSignal} = {}): Promise<readonly TableMetadata[]> {
|
|
144
|
+
options.signal?.throwIfAborted();
|
|
145
|
+
const metadata = await this.getMetadata();
|
|
146
|
+
options.signal?.throwIfAborted();
|
|
147
|
+
return metadata.tables.map(table => ({
|
|
148
|
+
name: table.name,
|
|
149
|
+
schema: table.schema,
|
|
150
|
+
queryable: true
|
|
151
|
+
}));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/** Returns a named vector table schema without materializing its features. */
|
|
155
|
+
async getTableMetadata(
|
|
156
|
+
name: string,
|
|
157
|
+
options: {signal?: AbortSignal} = {}
|
|
158
|
+
): Promise<TableMetadata> {
|
|
159
|
+
const tables = await this.getTablesMetadata(options);
|
|
160
|
+
const table = tables.find(table => table.name === name);
|
|
161
|
+
if (!table) throw new Error(`Unknown GeoPackage table: ${name}`);
|
|
162
|
+
return table;
|
|
163
|
+
}
|
|
164
|
+
|
|
141
165
|
/** Discovers the selected feature table schema and spatial bounds for the shared scan panel. */
|
|
142
166
|
async getQueryMetadata(options: ScanQueryMetadataOptions = {}): Promise<ScanQueryMetadata> {
|
|
143
167
|
throwIfAborted(options.signal);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import {
|
|
6
6
|
serializeArrowWorkerTable,
|
|
7
7
|
deserializeArrowWorkerTable
|
|
8
|
-
} from '@loaders.gl/core/
|
|
8
|
+
} from '@loaders.gl/core/arrow-worker-transport';
|
|
9
9
|
|
|
10
10
|
/** Transfers owned Arrow columns or WKB buffers, with small SHP/DBF header envelopes. */
|
|
11
11
|
export function serializeShapefileWorkerResult(result: any): unknown {
|
package/src/wkt/wkt-format.ts
CHANGED