@loaders.gl/arrow 4.2.0-alpha.6 → 4.2.0-beta.2
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/arrow-loader.d.ts +48 -4
- package/dist/arrow-loader.d.ts.map +1 -1
- package/dist/arrow-loader.js +3 -1
- package/dist/arrow-worker.js +3 -1
- package/dist/arrow-writer.d.ts +13 -2
- package/dist/arrow-writer.d.ts.map +1 -1
- package/dist/arrow-writer.js +1 -1
- package/dist/dist.dev.js +12 -11
- package/dist/dist.min.js +5 -5
- package/dist/geoarrow-loader.d.ts +44 -9
- package/dist/geoarrow-loader.d.ts.map +1 -1
- package/dist/geoarrow-loader.js +1 -6
- package/dist/geoarrow-writer.d.ts +13 -2
- package/dist/geoarrow-writer.d.ts.map +1 -1
- package/dist/geoarrow-writer.js +1 -1
- package/dist/index.cjs +6 -9
- package/dist/index.cjs.map +2 -2
- package/dist/triangulate-on-worker.js +1 -1
- package/package.json +7 -7
- package/src/arrow-loader.ts +17 -8
- package/src/arrow-writer.ts +2 -2
- package/src/geoarrow/convert-geoarrow-to-geojson-geometry.ts +2 -2
- package/src/geoarrow-loader.ts +11 -19
- package/src/geoarrow-writer.ts +2 -6
package/dist/arrow-loader.d.ts
CHANGED
|
@@ -1,14 +1,58 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ArrayRowTable,
|
|
1
|
+
import type { LoaderOptions } from '@loaders.gl/loader-utils';
|
|
2
|
+
import type { ArrayRowTable, ColumnarTable, ObjectRowTable } from '@loaders.gl/schema';
|
|
3
3
|
import type { ArrowTable } from "./lib/arrow-table.js";
|
|
4
|
+
import { parseArrowInBatches } from "./parsers/parse-arrow-in-batches.js";
|
|
5
|
+
/** ArrowLoader options */
|
|
4
6
|
export type ArrowLoaderOptions = LoaderOptions & {
|
|
7
|
+
/** ArrowLoader options */
|
|
5
8
|
arrow?: {
|
|
9
|
+
/** Shape of returned data */
|
|
6
10
|
shape: 'arrow-table' | 'columnar-table' | 'array-row-table' | 'object-row-table';
|
|
11
|
+
/** Debounce time between batches (prevent excessive numbers of small batches) */
|
|
7
12
|
batchDebounceMs?: number;
|
|
13
|
+
/** Override the URL to the worker bundle (by default loads from unpkg.com) */
|
|
14
|
+
workerUrl?: string;
|
|
8
15
|
};
|
|
9
16
|
};
|
|
10
17
|
/** ArrowJS table loader */
|
|
11
|
-
export declare const ArrowWorkerLoader:
|
|
18
|
+
export declare const ArrowWorkerLoader: {
|
|
19
|
+
readonly dataType: ArrowTable;
|
|
20
|
+
readonly batchType: never;
|
|
21
|
+
readonly name: "Apache Arrow";
|
|
22
|
+
readonly id: "arrow";
|
|
23
|
+
readonly module: "arrow";
|
|
24
|
+
readonly version: any;
|
|
25
|
+
readonly category: "table";
|
|
26
|
+
readonly extensions: ["arrow", "feather"];
|
|
27
|
+
readonly mimeTypes: ["application/vnd.apache.arrow.file", "application/vnd.apache.arrow.stream", "application/octet-stream"];
|
|
28
|
+
readonly binary: true;
|
|
29
|
+
readonly tests: ["ARROW"];
|
|
30
|
+
readonly options: {
|
|
31
|
+
readonly arrow: {
|
|
32
|
+
readonly shape: "columnar-table";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
12
36
|
/** ArrowJS table loader */
|
|
13
|
-
export declare const ArrowLoader:
|
|
37
|
+
export declare const ArrowLoader: {
|
|
38
|
+
readonly parse: (arraybuffer: ArrayBuffer, options?: ArrowLoaderOptions) => Promise<ArrowTable | ColumnarTable | ObjectRowTable | ArrayRowTable>;
|
|
39
|
+
readonly parseSync: (arraybuffer: ArrayBuffer, options?: ArrowLoaderOptions) => ArrowTable | ColumnarTable | ObjectRowTable | ArrayRowTable;
|
|
40
|
+
readonly parseInBatches: typeof parseArrowInBatches;
|
|
41
|
+
readonly dataType: ArrowTable;
|
|
42
|
+
readonly batchType: never;
|
|
43
|
+
readonly name: "Apache Arrow";
|
|
44
|
+
readonly id: "arrow";
|
|
45
|
+
readonly module: "arrow";
|
|
46
|
+
readonly version: any;
|
|
47
|
+
readonly category: "table";
|
|
48
|
+
readonly extensions: ["arrow", "feather"];
|
|
49
|
+
readonly mimeTypes: ["application/vnd.apache.arrow.file", "application/vnd.apache.arrow.stream", "application/octet-stream"];
|
|
50
|
+
readonly binary: true;
|
|
51
|
+
readonly tests: ["ARROW"];
|
|
52
|
+
readonly options: {
|
|
53
|
+
readonly arrow: {
|
|
54
|
+
readonly shape: "columnar-table";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
14
58
|
//# sourceMappingURL=arrow-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow-loader.d.ts","sourceRoot":"","sources":["../src/arrow-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"arrow-loader.d.ts","sourceRoot":"","sources":["../src/arrow-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAA2B,aAAa,EAAC,MAAM,0BAA0B,CAAC;AACtF,OAAO,KAAK,EACV,aAAa,EAEb,aAAa,EACb,cAAc,EACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAC,UAAU,EAAC,6BAA0B;AAElD,OAAO,EAAC,mBAAmB,EAAC,4CAAyC;AAMrE,0BAA0B;AAC1B,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAC/C,0BAA0B;IAC1B,KAAK,CAAC,EAAE;QACN,6BAA6B;QAC7B,KAAK,EAAE,aAAa,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,kBAAkB,CAAC;QACjF,iFAAiF;QACjF,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,8EAA8E;QAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,2BAA2B;AAC3B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAuBoC,CAAC;AAEnE,2BAA2B;AAC3B,eAAO,MAAM,WAAW;kCAEK,WAAW,YAAY,kBAAkB;sCAE3C,WAAW,YAAY,kBAAkB;;;;;;;;;;;;;;;;;;CAOnE,CAAC"}
|
package/dist/arrow-loader.js
CHANGED
|
@@ -5,9 +5,11 @@ import { parseArrowSync } from "./parsers/parse-arrow-sync.js";
|
|
|
5
5
|
import { parseArrowInBatches } from "./parsers/parse-arrow-in-batches.js";
|
|
6
6
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
7
7
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
8
|
-
const VERSION = typeof "4.2.0-
|
|
8
|
+
const VERSION = typeof "4.2.0-beta.1" !== 'undefined' ? "4.2.0-beta.1" : 'latest';
|
|
9
9
|
/** ArrowJS table loader */
|
|
10
10
|
export const ArrowWorkerLoader = {
|
|
11
|
+
dataType: null,
|
|
12
|
+
batchType: null,
|
|
11
13
|
name: 'Apache Arrow',
|
|
12
14
|
id: 'arrow',
|
|
13
15
|
module: 'arrow',
|
package/dist/arrow-worker.js
CHANGED
|
@@ -12499,8 +12499,10 @@ return true;`);
|
|
|
12499
12499
|
}
|
|
12500
12500
|
|
|
12501
12501
|
// src/arrow-loader.ts
|
|
12502
|
-
var VERSION = true ? "4.2.0-
|
|
12502
|
+
var VERSION = true ? "4.2.0-beta.1" : "latest";
|
|
12503
12503
|
var ArrowWorkerLoader = {
|
|
12504
|
+
dataType: null,
|
|
12505
|
+
batchType: null,
|
|
12504
12506
|
name: "Apache Arrow",
|
|
12505
12507
|
id: "arrow",
|
|
12506
12508
|
module: "arrow",
|
package/dist/arrow-writer.d.ts
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { WriterOptions } from '@loaders.gl/loader-utils';
|
|
2
2
|
import { ColumnarTable } from "./lib/encode-arrow.js";
|
|
3
3
|
type ArrowWriterOptions = WriterOptions & {
|
|
4
4
|
arrow?: {};
|
|
5
5
|
};
|
|
6
6
|
/** Apache Arrow writer */
|
|
7
|
-
export declare const ArrowWriter:
|
|
7
|
+
export declare const ArrowWriter: {
|
|
8
|
+
readonly name: "Apache Arrow";
|
|
9
|
+
readonly id: "arrow";
|
|
10
|
+
readonly module: "arrow";
|
|
11
|
+
readonly version: any;
|
|
12
|
+
readonly extensions: ["arrow", "feather"];
|
|
13
|
+
readonly mimeTypes: ["application/vnd.apache.arrow.file", "application/vnd.apache.arrow.stream", "application/octet-stream"];
|
|
14
|
+
readonly binary: true;
|
|
15
|
+
readonly options: {};
|
|
16
|
+
readonly encode: (data: ColumnarTable, options?: ArrowWriterOptions | undefined) => Promise<ArrayBuffer>;
|
|
17
|
+
readonly encodeSync: (data: ColumnarTable, options?: ArrowWriterOptions | undefined) => ArrayBuffer;
|
|
18
|
+
};
|
|
8
19
|
export {};
|
|
9
20
|
//# sourceMappingURL=arrow-writer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow-writer.d.ts","sourceRoot":"","sources":["../src/arrow-writer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"arrow-writer.d.ts","sourceRoot":"","sources":["../src/arrow-writer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAoB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAC,aAAa,EAAC,8BAA2B;AAOjD,KAAK,kBAAkB,GAAG,aAAa,GAAG;IACxC,KAAK,CAAC,EAAE,EAAE,CAAC;CACZ,CAAC;AAEF,0BAA0B;AAC1B,eAAO,MAAM,WAAW;;;;;;;;;wFAa8B,QAAQ,WAAW,CAAC;;CAMM,CAAC"}
|
package/dist/arrow-writer.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { encodeArrowSync } from "./lib/encode-arrow.js";
|
|
3
3
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
4
4
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
5
|
-
const VERSION = typeof "4.2.0-
|
|
5
|
+
const VERSION = typeof "4.2.0-beta.1" !== 'undefined' ? "4.2.0-beta.1" : 'latest';
|
|
6
6
|
/** Apache Arrow writer */
|
|
7
7
|
export const ArrowWriter = {
|
|
8
8
|
name: 'Apache Arrow',
|
package/dist/dist.dev.js
CHANGED
|
@@ -13122,6 +13122,8 @@ return true;`);
|
|
|
13122
13122
|
// src/arrow-loader.ts
|
|
13123
13123
|
var VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
13124
13124
|
var ArrowWorkerLoader = {
|
|
13125
|
+
dataType: null,
|
|
13126
|
+
batchType: null,
|
|
13125
13127
|
name: "Apache Arrow",
|
|
13126
13128
|
id: "arrow",
|
|
13127
13129
|
module: "arrow",
|
|
@@ -13938,12 +13940,7 @@ return true;`);
|
|
|
13938
13940
|
}
|
|
13939
13941
|
};
|
|
13940
13942
|
var GeoArrowLoader = {
|
|
13941
|
-
...
|
|
13942
|
-
options: {
|
|
13943
|
-
arrow: {
|
|
13944
|
-
shape: "arrow-table"
|
|
13945
|
-
}
|
|
13946
|
-
},
|
|
13943
|
+
...GeoArrowWorkerLoader,
|
|
13947
13944
|
parse: async (arraybuffer, options) => parseGeoArrowSync(arraybuffer, options?.arrow),
|
|
13948
13945
|
parseSync: (arraybuffer, options) => parseGeoArrowSync(arraybuffer, options?.arrow),
|
|
13949
13946
|
parseInBatches: parseGeoArrowInBatches
|
|
@@ -14510,6 +14507,8 @@ return true;`);
|
|
|
14510
14507
|
|
|
14511
14508
|
// ../wkt/src/wkt-loader.ts
|
|
14512
14509
|
var WKTWorkerLoader = {
|
|
14510
|
+
dataType: null,
|
|
14511
|
+
batchType: null,
|
|
14513
14512
|
name: "WKT (Well-Known Text)",
|
|
14514
14513
|
id: "wkt",
|
|
14515
14514
|
module: "wkt",
|
|
@@ -14531,7 +14530,7 @@ return true;`);
|
|
|
14531
14530
|
var WKTLoader = {
|
|
14532
14531
|
...WKTWorkerLoader,
|
|
14533
14532
|
parse: async (arrayBuffer, options) => parseWKT(new TextDecoder().decode(arrayBuffer), options),
|
|
14534
|
-
parseTextSync: parseWKT
|
|
14533
|
+
parseTextSync: (string, options) => parseWKT(string, options)
|
|
14535
14534
|
};
|
|
14536
14535
|
|
|
14537
14536
|
// ../wkt/src/lib/parse-wkb-header.ts
|
|
@@ -14704,7 +14703,7 @@ return true;`);
|
|
|
14704
14703
|
geometry: {
|
|
14705
14704
|
type: "LineString",
|
|
14706
14705
|
positions: { value: positions, size: dimension },
|
|
14707
|
-
pathIndices: { value: new
|
|
14706
|
+
pathIndices: { value: new Uint32Array(pathIndices), size: 1 }
|
|
14708
14707
|
},
|
|
14709
14708
|
offset
|
|
14710
14709
|
};
|
|
@@ -14732,10 +14731,10 @@ return true;`);
|
|
|
14732
14731
|
type: "Polygon",
|
|
14733
14732
|
positions: { value: concatenatedPositions, size: dimension },
|
|
14734
14733
|
polygonIndices: {
|
|
14735
|
-
value: new
|
|
14734
|
+
value: new Uint32Array(polygonIndices),
|
|
14736
14735
|
size: 1
|
|
14737
14736
|
},
|
|
14738
|
-
primitivePolygonIndices: { value: new
|
|
14737
|
+
primitivePolygonIndices: { value: new Uint32Array(primitivePolygonIndices), size: 1 }
|
|
14739
14738
|
},
|
|
14740
14739
|
offset
|
|
14741
14740
|
};
|
|
@@ -14807,7 +14806,7 @@ return true;`);
|
|
|
14807
14806
|
return {
|
|
14808
14807
|
type: "LineString",
|
|
14809
14808
|
positions: { value: concatenatedPositions, size: dimension },
|
|
14810
|
-
pathIndices: { value: new
|
|
14809
|
+
pathIndices: { value: new Uint32Array(pathIndices), size: 1 }
|
|
14811
14810
|
};
|
|
14812
14811
|
}
|
|
14813
14812
|
function concatenateBinaryPolygonGeometries(binaryPolygonGeometries, dimension) {
|
|
@@ -14853,6 +14852,8 @@ return true;`);
|
|
|
14853
14852
|
|
|
14854
14853
|
// ../wkt/src/wkb-loader.ts
|
|
14855
14854
|
var WKBWorkerLoader = {
|
|
14855
|
+
dataType: null,
|
|
14856
|
+
batchType: null,
|
|
14856
14857
|
name: "WKB",
|
|
14857
14858
|
id: "wkb",
|
|
14858
14859
|
module: "wkt",
|