@loaders.gl/flatgeobuf 4.3.0-alpha.7 → 4.3.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/dist/dist.dev.js +7 -51
- package/dist/dist.min.js +2 -2
- package/dist/flatgeobuf/3.27.2/streams/utils.d.ts +0 -1
- package/dist/flatgeobuf/3.27.2/streams/utils.d.ts.map +1 -1
- package/dist/flatgeobuf-loader.d.ts +1 -1
- package/dist/flatgeobuf-loader.d.ts.map +1 -1
- package/dist/flatgeobuf-loader.js +1 -1
- package/dist/flatgeobuf-worker.js +8 -52
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/lib/binary-geometries.d.ts.map +1 -1
- package/dist/lib/parse-flatgeobuf.d.ts +1 -1
- package/dist/lib/parse-flatgeobuf.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/flatgeobuf/3.27.2/streams/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/flatgeobuf/3.27.2/streams/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAC,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAEhC,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,cAAc,CAYhE;AAED,wBAAsB,SAAS,CAC7B,aAAa,EAAE,aAAa,CAAC,GAAG,CAAC,EACjC,KAAK,SAAW,GACf,OAAO,CAAC,GAAG,EAAE,CAAC,CAShB;AAED,wBAAgB,SAAS,CAAC,UAAU,EAAE,QAAQ,GAAG,cAAc,CA+C9D"}
|
|
@@ -59,6 +59,6 @@ export declare const FlatGeobufLoader: {
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
declare function parseSync(arrayBuffer: ArrayBuffer, options?: FlatGeobufLoaderOptions): import("@loaders.gl/schema").Table;
|
|
62
|
-
declare function parseInBatchesFromStream(stream: any, options: FlatGeobufLoaderOptions): any[] | AsyncGenerator<import("
|
|
62
|
+
declare function parseInBatchesFromStream(stream: any, options: FlatGeobufLoaderOptions): any[] | AsyncGenerator<import("./flatgeobuf/3.27.2").IFeature, any, any> | AsyncGenerator<any, void, unknown>;
|
|
63
63
|
export {};
|
|
64
64
|
//# sourceMappingURL=flatgeobuf-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flatgeobuf-loader.d.ts","sourceRoot":"","sources":["../src/flatgeobuf-loader.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAA2B,aAAa,EAAC,MAAM,0BAA0B,CAAC;AActF,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG;IACpD,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,eAAe,GAAG,gBAAgB,GAAG,QAAQ,CAAC;QACtD,8EAA8E;QAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;KACpD,CAAC;IACF,GAAG,CAAC,EAAE;QACJ,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AAEF,kCAAkC;AAClC,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"flatgeobuf-loader.d.ts","sourceRoot":"","sources":["../src/flatgeobuf-loader.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAA2B,aAAa,EAAC,MAAM,0BAA0B,CAAC;AActF,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG;IACpD,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,eAAe,GAAG,gBAAgB,GAAG,QAAQ,CAAC;QACtD,8EAA8E;QAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;KACpD,CAAC;IACF,GAAG,CAAC,EAAE;QACJ,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AAEF,kCAAkC;AAClC,eAAO,MAAM,sBAAsB;uBACf,GAAG;wBACF,GAAG;;;;;;;;;;;;;;;;;;CAmByE,CAAC;AAElG,eAAO,MAAM,gBAAgB;kCAEA,WAAW,YAAW,uBAAuB;;;;uBAxBtD,GAAG;wBACF,GAAG;;;;;;;;;;;;;;;;;;CA6BgD,CAAC;AAEzE,iBAAS,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,GAAE,uBAA4B,sCAEjF;AAED,iBAAS,wBAAwB,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,uBAAuB,iHAE9E"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { parseFlatGeobuf, parseFlatGeobufInBatches } from "./lib/parse-flatgeobuf.js";
|
|
5
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
6
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
7
|
-
const VERSION = typeof "4.3.0-alpha.
|
|
7
|
+
const VERSION = typeof "4.3.0-alpha.8" !== 'undefined' ? "4.3.0-alpha.8" : 'latest';
|
|
8
8
|
// FGB\3FGB\1
|
|
9
9
|
const FGB_MAGIC_NUMBER = [0x66, 0x67, 0x62, 0x03, 0x66, 0x67, 0x62, 0x01];
|
|
10
10
|
/** Load flatgeobuf on a worker */
|
|
@@ -7,52 +7,6 @@
|
|
|
7
7
|
return value;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
11
|
-
function _typeof(obj) {
|
|
12
|
-
"@babel/helpers - typeof";
|
|
13
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
14
|
-
return typeof obj2;
|
|
15
|
-
} : function(obj2) {
|
|
16
|
-
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
17
|
-
}, _typeof(obj);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
21
|
-
function _toPrimitive(input, hint) {
|
|
22
|
-
if (_typeof(input) !== "object" || input === null)
|
|
23
|
-
return input;
|
|
24
|
-
var prim = input[Symbol.toPrimitive];
|
|
25
|
-
if (prim !== void 0) {
|
|
26
|
-
var res = prim.call(input, hint || "default");
|
|
27
|
-
if (_typeof(res) !== "object")
|
|
28
|
-
return res;
|
|
29
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
30
|
-
}
|
|
31
|
-
return (hint === "string" ? String : Number)(input);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
35
|
-
function _toPropertyKey(arg) {
|
|
36
|
-
var key = _toPrimitive(arg, "string");
|
|
37
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
41
|
-
function _defineProperty(obj, key, value) {
|
|
42
|
-
key = _toPropertyKey(key);
|
|
43
|
-
if (key in obj) {
|
|
44
|
-
Object.defineProperty(obj, key, {
|
|
45
|
-
value,
|
|
46
|
-
enumerable: true,
|
|
47
|
-
configurable: true,
|
|
48
|
-
writable: true
|
|
49
|
-
});
|
|
50
|
-
} else {
|
|
51
|
-
obj[key] = value;
|
|
52
|
-
}
|
|
53
|
-
return obj;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
10
|
// ../worker-utils/src/lib/node/worker_threads-browser.ts
|
|
57
11
|
var parentPort = null;
|
|
58
12
|
|
|
@@ -904,6 +858,9 @@
|
|
|
904
858
|
if (!wkt.lat_ts && wkt.lat1 && (wkt.projName === "Stereographic_South_Pole" || wkt.projName === "Polar Stereographic (variant B)")) {
|
|
905
859
|
wkt.lat0 = d2r(wkt.lat1 > 0 ? 90 : -90);
|
|
906
860
|
wkt.lat_ts = wkt.lat1;
|
|
861
|
+
} else if (!wkt.lat_ts && wkt.lat0 && wkt.projName === "Polar_Stereographic") {
|
|
862
|
+
wkt.lat_ts = wkt.lat0;
|
|
863
|
+
wkt.lat0 = d2r(wkt.lat0 > 0 ? 90 : -90);
|
|
907
864
|
}
|
|
908
865
|
}
|
|
909
866
|
function wkt_parser_default(wkt) {
|
|
@@ -5576,6 +5533,7 @@
|
|
|
5576
5533
|
|
|
5577
5534
|
// ../../node_modules/@math.gl/proj4/dist/lib/proj4-projection.js
|
|
5578
5535
|
var Proj4Projection = class {
|
|
5536
|
+
/** Define aliases for one or more projections */
|
|
5579
5537
|
static defineProjectionAliases(aliases) {
|
|
5580
5538
|
const aliasArray = [];
|
|
5581
5539
|
for (const alias in aliases) {
|
|
@@ -5583,11 +5541,7 @@
|
|
|
5583
5541
|
}
|
|
5584
5542
|
lib_default.defs(aliasArray);
|
|
5585
5543
|
}
|
|
5586
|
-
constructor({
|
|
5587
|
-
from = "WGS84",
|
|
5588
|
-
to = "WGS84"
|
|
5589
|
-
}) {
|
|
5590
|
-
_defineProperty(this, "_projection", void 0);
|
|
5544
|
+
constructor({ from = "WGS84", to = "WGS84" }) {
|
|
5591
5545
|
this._projection = lib_default(from, to);
|
|
5592
5546
|
if (!this._projection) {
|
|
5593
5547
|
throw new Error("Invalid projection");
|
|
@@ -5595,9 +5549,11 @@
|
|
|
5595
5549
|
this.project = this.project.bind(this);
|
|
5596
5550
|
this.unproject = this.unproject.bind(this);
|
|
5597
5551
|
}
|
|
5552
|
+
/** Project a coordinate project from first to second coordinate system */
|
|
5598
5553
|
project(coord) {
|
|
5599
5554
|
return this._projection.forward(coord);
|
|
5600
5555
|
}
|
|
5556
|
+
/** Project a coordinate project from second to first coordinate system */
|
|
5601
5557
|
unproject(coord) {
|
|
5602
5558
|
return this._projection.inverse(coord);
|
|
5603
5559
|
}
|
|
@@ -8870,7 +8826,7 @@
|
|
|
8870
8826
|
}
|
|
8871
8827
|
|
|
8872
8828
|
// src/flatgeobuf-loader.ts
|
|
8873
|
-
var VERSION = true ? "4.3.0-alpha.
|
|
8829
|
+
var VERSION = true ? "4.3.0-alpha.8" : "latest";
|
|
8874
8830
|
var FGB_MAGIC_NUMBER = [102, 103, 98, 3, 102, 103, 98, 1];
|
|
8875
8831
|
var FlatGeobufWorkerLoader = {
|
|
8876
8832
|
dataType: null,
|
package/dist/index.cjs
CHANGED
|
@@ -1847,7 +1847,7 @@ function binaryFromFeature(feature, header) {
|
|
|
1847
1847
|
}
|
|
1848
1848
|
|
|
1849
1849
|
// dist/flatgeobuf-loader.js
|
|
1850
|
-
var VERSION = true ? "4.3.0-alpha.
|
|
1850
|
+
var VERSION = true ? "4.3.0-alpha.8" : "latest";
|
|
1851
1851
|
var FGB_MAGIC_NUMBER = [102, 103, 98, 3, 102, 103, 98, 1];
|
|
1852
1852
|
var FlatGeobufWorkerLoader = {
|
|
1853
1853
|
dataType: null,
|