@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
package/dist/dist.dev.js
CHANGED
|
@@ -58,52 +58,6 @@ var __exports__ = (() => {
|
|
|
58
58
|
});
|
|
59
59
|
__reExport(bundle_exports, __toESM(require_core(), 1));
|
|
60
60
|
|
|
61
|
-
// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
62
|
-
function _typeof(obj) {
|
|
63
|
-
"@babel/helpers - typeof";
|
|
64
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
65
|
-
return typeof obj2;
|
|
66
|
-
} : function(obj2) {
|
|
67
|
-
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
68
|
-
}, _typeof(obj);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
72
|
-
function _toPrimitive(input, hint) {
|
|
73
|
-
if (_typeof(input) !== "object" || input === null)
|
|
74
|
-
return input;
|
|
75
|
-
var prim = input[Symbol.toPrimitive];
|
|
76
|
-
if (prim !== void 0) {
|
|
77
|
-
var res = prim.call(input, hint || "default");
|
|
78
|
-
if (_typeof(res) !== "object")
|
|
79
|
-
return res;
|
|
80
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
81
|
-
}
|
|
82
|
-
return (hint === "string" ? String : Number)(input);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
86
|
-
function _toPropertyKey(arg) {
|
|
87
|
-
var key = _toPrimitive(arg, "string");
|
|
88
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
92
|
-
function _defineProperty(obj, key, value) {
|
|
93
|
-
key = _toPropertyKey(key);
|
|
94
|
-
if (key in obj) {
|
|
95
|
-
Object.defineProperty(obj, key, {
|
|
96
|
-
value,
|
|
97
|
-
enumerable: true,
|
|
98
|
-
configurable: true,
|
|
99
|
-
writable: true
|
|
100
|
-
});
|
|
101
|
-
} else {
|
|
102
|
-
obj[key] = value;
|
|
103
|
-
}
|
|
104
|
-
return obj;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
61
|
// ../../node_modules/proj4/lib/global.js
|
|
108
62
|
function global_default(defs2) {
|
|
109
63
|
defs2("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees");
|
|
@@ -756,6 +710,9 @@ var __exports__ = (() => {
|
|
|
756
710
|
if (!wkt.lat_ts && wkt.lat1 && (wkt.projName === "Stereographic_South_Pole" || wkt.projName === "Polar Stereographic (variant B)")) {
|
|
757
711
|
wkt.lat0 = d2r(wkt.lat1 > 0 ? 90 : -90);
|
|
758
712
|
wkt.lat_ts = wkt.lat1;
|
|
713
|
+
} else if (!wkt.lat_ts && wkt.lat0 && wkt.projName === "Polar_Stereographic") {
|
|
714
|
+
wkt.lat_ts = wkt.lat0;
|
|
715
|
+
wkt.lat0 = d2r(wkt.lat0 > 0 ? 90 : -90);
|
|
759
716
|
}
|
|
760
717
|
}
|
|
761
718
|
function wkt_parser_default(wkt) {
|
|
@@ -5428,6 +5385,7 @@ var __exports__ = (() => {
|
|
|
5428
5385
|
|
|
5429
5386
|
// ../../node_modules/@math.gl/proj4/dist/lib/proj4-projection.js
|
|
5430
5387
|
var Proj4Projection = class {
|
|
5388
|
+
/** Define aliases for one or more projections */
|
|
5431
5389
|
static defineProjectionAliases(aliases) {
|
|
5432
5390
|
const aliasArray = [];
|
|
5433
5391
|
for (const alias in aliases) {
|
|
@@ -5435,11 +5393,7 @@ var __exports__ = (() => {
|
|
|
5435
5393
|
}
|
|
5436
5394
|
lib_default.defs(aliasArray);
|
|
5437
5395
|
}
|
|
5438
|
-
constructor({
|
|
5439
|
-
from = "WGS84",
|
|
5440
|
-
to = "WGS84"
|
|
5441
|
-
}) {
|
|
5442
|
-
_defineProperty(this, "_projection", void 0);
|
|
5396
|
+
constructor({ from = "WGS84", to = "WGS84" }) {
|
|
5443
5397
|
this._projection = lib_default(from, to);
|
|
5444
5398
|
if (!this._projection) {
|
|
5445
5399
|
throw new Error("Invalid projection");
|
|
@@ -5447,9 +5401,11 @@ var __exports__ = (() => {
|
|
|
5447
5401
|
this.project = this.project.bind(this);
|
|
5448
5402
|
this.unproject = this.unproject.bind(this);
|
|
5449
5403
|
}
|
|
5404
|
+
/** Project a coordinate project from first to second coordinate system */
|
|
5450
5405
|
project(coord) {
|
|
5451
5406
|
return this._projection.forward(coord);
|
|
5452
5407
|
}
|
|
5408
|
+
/** Project a coordinate project from second to first coordinate system */
|
|
5453
5409
|
unproject(coord) {
|
|
5454
5410
|
return this._projection.inverse(coord);
|
|
5455
5411
|
}
|