zywlgis 0.5.39 → 0.5.40
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/ZYWLGIS.es.js +641 -637
- package/dist/ZYWLGIS.umd.js +15 -15
- package/package.json +1 -1
package/dist/ZYWLGIS.es.js
CHANGED
|
@@ -97488,7 +97488,7 @@ class zZ extends b5 {
|
|
|
97488
97488
|
}
|
|
97489
97489
|
}
|
|
97490
97490
|
Tf.registerRenderer("gl", zZ), Tf.registerRenderer("gpu", zZ), Tf.registerRenderer("canvas", null), xQ.setLayerClass(ug, Qg, OQ);
|
|
97491
|
-
const { PackUtil:
|
|
97491
|
+
const { PackUtil: fie, FilterUtil: die, SYMBOLS_NEED_REBUILD_IN_VT: vie, SYMBOLS_NEED_REBUILD_IN_VECTOR: Cie } = js();
|
|
97492
97492
|
Be.ShaderLib.register("vt_position_vert", `#ifdef HAS_TERRAIN_ALTITUDE
|
|
97493
97493
|
attribute float aTerrainAltitude;
|
|
97494
97494
|
#endif
|
|
@@ -100949,7 +100949,7 @@ var Wl;
|
|
|
100949
100949
|
zC.mergeOptions(IjA), zC.registerRenderer("gl", oK), zC.registerRenderer("gpu", oK), zC.registerJSONType("Geo3DTilesLayer"), (function(n) {
|
|
100950
100950
|
n[n.OUT_OF_FRUSTUM = 0] = "OUT_OF_FRUSTUM", n[n.SCREEN_ERROR_TOO_SMALL = 1] = "SCREEN_ERROR_TOO_SMALL", n[n.VISIBLE = 2] = "VISIBLE";
|
|
100951
100951
|
})(Wl || (Wl = {}));
|
|
100952
|
-
const { Ajax:
|
|
100952
|
+
const { Ajax: Bie, GLTFLoader: pie } = a0(), { Ajax: mie, GLTFLoader: Iie } = a0(), { Ajax: Mie } = a0(), { Ajax: Tie, GLTFLoader: yie } = a0();
|
|
100953
100953
|
if (Al) {
|
|
100954
100954
|
const n = qi.VERSION;
|
|
100955
100955
|
if (n.indexOf("1.0.0-beta") >= 0 || n.indexOf("1.0.0-alpha") >= 0) {
|
|
@@ -133401,6 +133401,11 @@ class k {
|
|
|
133401
133401
|
];
|
|
133402
133402
|
return z6A(P, "EPSG:3857", "EPSG:4326");
|
|
133403
133403
|
};
|
|
133404
|
+
/**根据camera高度近似计算当前层级*/
|
|
133405
|
+
static heightToZoom = (A) => {
|
|
133406
|
+
const t = 7096758e-11, i = 91610.74, r = -40467.74;
|
|
133407
|
+
return Math.round(r + (40487.57 - r) / (1 + Math.pow(A / i, t)));
|
|
133408
|
+
};
|
|
133404
133409
|
/**通过层级和维度来计算对应的高程*/
|
|
133405
133410
|
static getMapHeightByZoom = (A, e, t) => {
|
|
133406
133411
|
let i = this.getMapEngineID(A), r = this.getMapEngineInstance(i.openlayersID), s = this.getMapEngineInstance(i.cesiumID);
|
|
@@ -161014,11 +161019,13 @@ function MoA(...n) {
|
|
|
161014
161019
|
return new IoA(...n);
|
|
161015
161020
|
}
|
|
161016
161021
|
MoA.localizePositions = IoA.localizePositions;
|
|
161017
|
-
const
|
|
161022
|
+
const WqA = "0.5.40", XqA = {
|
|
161023
|
+
version: WqA
|
|
161024
|
+
}, hU = {
|
|
161018
161025
|
POINTERMOVE: "pointermove",
|
|
161019
161026
|
POINTERDOWN: "pointerdown"
|
|
161020
161027
|
};
|
|
161021
|
-
class
|
|
161028
|
+
class _qA extends HI {
|
|
161022
161029
|
/**
|
|
161023
161030
|
* @param {import("./Map.js").default} map The map with the viewport to listen to events on.
|
|
161024
161031
|
* @param {number} [moveTolerance] The minimal distance the pointer must travel to trigger a move.
|
|
@@ -161307,7 +161314,7 @@ class G6 extends Ph {
|
|
|
161307
161314
|
this.target_ = typeof A == "string" ? document.getElementById(A) : A;
|
|
161308
161315
|
}
|
|
161309
161316
|
}
|
|
161310
|
-
class
|
|
161317
|
+
class $qA extends G6 {
|
|
161311
161318
|
/**
|
|
161312
161319
|
* @param {Options} [options] Attribution options.
|
|
161313
161320
|
*/
|
|
@@ -161428,7 +161435,7 @@ class XqA extends G6 {
|
|
|
161428
161435
|
this.updateElement_(A.frameState);
|
|
161429
161436
|
}
|
|
161430
161437
|
}
|
|
161431
|
-
class
|
|
161438
|
+
class AWA extends G6 {
|
|
161432
161439
|
/**
|
|
161433
161440
|
* @param {Options} [options] Rotate options.
|
|
161434
161441
|
*/
|
|
@@ -161491,7 +161498,7 @@ class _qA extends G6 {
|
|
|
161491
161498
|
this.rotation_ = t;
|
|
161492
161499
|
}
|
|
161493
161500
|
}
|
|
161494
|
-
class
|
|
161501
|
+
class eWA extends G6 {
|
|
161495
161502
|
/**
|
|
161496
161503
|
* @param {Options} [options] Zoom options.
|
|
161497
161504
|
*/
|
|
@@ -161546,12 +161553,12 @@ class $qA extends G6 {
|
|
|
161546
161553
|
}
|
|
161547
161554
|
}
|
|
161548
161555
|
}
|
|
161549
|
-
function
|
|
161556
|
+
function tWA(n) {
|
|
161550
161557
|
n = n || {};
|
|
161551
161558
|
const A = new Ol();
|
|
161552
|
-
return (n.zoom === void 0 || n.zoom) && A.push(new
|
|
161559
|
+
return (n.zoom === void 0 || n.zoom) && A.push(new eWA(n.zoomOptions)), (n.rotate === void 0 || n.rotate) && A.push(new AWA(n.rotateOptions)), (n.attribution === void 0 || n.attribution) && A.push(new $qA(n.attributionOptions)), A;
|
|
161553
161560
|
}
|
|
161554
|
-
class
|
|
161561
|
+
class iWA extends YI {
|
|
161555
161562
|
/**
|
|
161556
161563
|
* @param {import("../Map.js").default} map Map.
|
|
161557
161564
|
*/
|
|
@@ -161684,13 +161691,13 @@ class eWA extends YI {
|
|
|
161684
161691
|
* @protected
|
|
161685
161692
|
*/
|
|
161686
161693
|
scheduleExpireIconCache(A) {
|
|
161687
|
-
XD.canExpireCache() && A.postRenderFunctions.push(
|
|
161694
|
+
XD.canExpireCache() && A.postRenderFunctions.push(nWA);
|
|
161688
161695
|
}
|
|
161689
161696
|
}
|
|
161690
|
-
function
|
|
161697
|
+
function nWA(n, A) {
|
|
161691
161698
|
XD.expire();
|
|
161692
161699
|
}
|
|
161693
|
-
class
|
|
161700
|
+
class rWA extends iWA {
|
|
161694
161701
|
/**
|
|
161695
161702
|
* @param {import("../Map.js").default} map Map.
|
|
161696
161703
|
*/
|
|
@@ -161816,14 +161823,14 @@ function yoA(n, A) {
|
|
|
161816
161823
|
yoA(e[t], A);
|
|
161817
161824
|
}
|
|
161818
161825
|
}
|
|
161819
|
-
let
|
|
161826
|
+
let sWA = class extends Ph {
|
|
161820
161827
|
/**
|
|
161821
161828
|
* @param {MapOptions} [options] Map options.
|
|
161822
161829
|
*/
|
|
161823
161830
|
constructor(A) {
|
|
161824
161831
|
super(), A = A || {}, this.on, this.once, this.un;
|
|
161825
|
-
const e =
|
|
161826
|
-
this.renderComplete_ = !1, this.loaded_ = !0, this.boundHandleBrowserEvent_ = this.handleBrowserEvent.bind(this), this.maxTilesLoading_ = A.maxTilesLoading !== void 0 ? A.maxTilesLoading : 16, this.pixelRatio_ = A.pixelRatio !== void 0 ? A.pixelRatio : hFA, this.postRenderTimeoutHandle_, this.animationDelayKey_, this.animationDelay_ = this.animationDelay_.bind(this), this.coordinateToPixelTransform_ = Bo(), this.pixelToCoordinateTransform_ = Bo(), this.frameIndex_ = 0, this.frameState_ = null, this.previousExtent_ = null, this.viewPropertyListenerKey_ = null, this.viewChangeListenerKey_ = null, this.layerGroupPropertyListenerKeys_ = null, WD || (this.viewport_ = document.createElement("div"), this.viewport_.className = "ol-viewport" + ("ontouchstart" in window ? " ol-touch" : ""), this.viewport_.style.position = "relative", this.viewport_.style.overflow = "hidden", this.viewport_.style.width = "100%", this.viewport_.style.height = "100%", this.overlayContainer_ = document.createElement("div"), this.overlayContainer_.style.position = "absolute", this.overlayContainer_.style.zIndex = "0", this.overlayContainer_.style.width = "100%", this.overlayContainer_.style.height = "100%", this.overlayContainer_.style.pointerEvents = "none", this.overlayContainer_.className = "ol-overlaycontainer", this.viewport_.appendChild(this.overlayContainer_), this.overlayContainerStopEvent_ = document.createElement("div"), this.overlayContainerStopEvent_.style.position = "absolute", this.overlayContainerStopEvent_.style.zIndex = "0", this.overlayContainerStopEvent_.style.width = "100%", this.overlayContainerStopEvent_.style.height = "100%", this.overlayContainerStopEvent_.style.pointerEvents = "none", this.overlayContainerStopEvent_.className = "ol-overlaycontainer-stopevent", this.viewport_.appendChild(this.overlayContainerStopEvent_)), this.mapBrowserEventHandler_ = null, this.moveTolerance_ = A.moveTolerance, this.keyboardEventTarget_ = e.keyboardEventTarget, this.targetChangeHandlerKeys_ = null, this.targetElement_ = null, WD || (this.resizeObserver_ = new ResizeObserver(() => this.updateSize())), this.controls = e.controls || (WD ? new Ol() :
|
|
161832
|
+
const e = oWA(A);
|
|
161833
|
+
this.renderComplete_ = !1, this.loaded_ = !0, this.boundHandleBrowserEvent_ = this.handleBrowserEvent.bind(this), this.maxTilesLoading_ = A.maxTilesLoading !== void 0 ? A.maxTilesLoading : 16, this.pixelRatio_ = A.pixelRatio !== void 0 ? A.pixelRatio : hFA, this.postRenderTimeoutHandle_, this.animationDelayKey_, this.animationDelay_ = this.animationDelay_.bind(this), this.coordinateToPixelTransform_ = Bo(), this.pixelToCoordinateTransform_ = Bo(), this.frameIndex_ = 0, this.frameState_ = null, this.previousExtent_ = null, this.viewPropertyListenerKey_ = null, this.viewChangeListenerKey_ = null, this.layerGroupPropertyListenerKeys_ = null, WD || (this.viewport_ = document.createElement("div"), this.viewport_.className = "ol-viewport" + ("ontouchstart" in window ? " ol-touch" : ""), this.viewport_.style.position = "relative", this.viewport_.style.overflow = "hidden", this.viewport_.style.width = "100%", this.viewport_.style.height = "100%", this.overlayContainer_ = document.createElement("div"), this.overlayContainer_.style.position = "absolute", this.overlayContainer_.style.zIndex = "0", this.overlayContainer_.style.width = "100%", this.overlayContainer_.style.height = "100%", this.overlayContainer_.style.pointerEvents = "none", this.overlayContainer_.className = "ol-overlaycontainer", this.viewport_.appendChild(this.overlayContainer_), this.overlayContainerStopEvent_ = document.createElement("div"), this.overlayContainerStopEvent_.style.position = "absolute", this.overlayContainerStopEvent_.style.zIndex = "0", this.overlayContainerStopEvent_.style.width = "100%", this.overlayContainerStopEvent_.style.height = "100%", this.overlayContainerStopEvent_.style.pointerEvents = "none", this.overlayContainerStopEvent_.className = "ol-overlaycontainer-stopevent", this.viewport_.appendChild(this.overlayContainerStopEvent_)), this.mapBrowserEventHandler_ = null, this.moveTolerance_ = A.moveTolerance, this.keyboardEventTarget_ = e.keyboardEventTarget, this.targetChangeHandlerKeys_ = null, this.targetElement_ = null, WD || (this.resizeObserver_ = new ResizeObserver(() => this.updateSize())), this.controls = e.controls || (WD ? new Ol() : tWA()), this.interactions = e.interactions || (WD ? new Ol() : CsA({
|
|
161827
161834
|
onFocusOnly: !0
|
|
161828
161835
|
})), this.overlays_ = e.overlays, this.overlayIdIndex_ = {}, this.renderer_ = null, this.postRenderFunctions_ = [], this.tileQueue_ = new THA(
|
|
161829
161836
|
this.getTilePriority.bind(this),
|
|
@@ -162454,8 +162461,8 @@ let nWA = class extends Ph {
|
|
|
162454
162461
|
if (this.targetElement_ = e, !e)
|
|
162455
162462
|
this.renderer_ && (clearTimeout(this.postRenderTimeoutHandle_), this.postRenderTimeoutHandle_ = void 0, this.postRenderFunctions_.length = 0, this.renderer_.dispose(), this.renderer_ = null), this.animationDelayKey_ && (cancelAnimationFrame(this.animationDelayKey_), this.animationDelayKey_ = void 0);
|
|
162456
162463
|
else {
|
|
162457
|
-
if (cQ(e) || e.appendChild(this.viewport_), this.renderer_ || (this.renderer_ = new
|
|
162458
|
-
this.mapBrowserEventHandler_ = new
|
|
162464
|
+
if (cQ(e) || e.appendChild(this.viewport_), this.renderer_ || (this.renderer_ = new rWA(this)), !cQ(e)) {
|
|
162465
|
+
this.mapBrowserEventHandler_ = new _qA(
|
|
162459
162466
|
this,
|
|
162460
162467
|
this.moveTolerance_
|
|
162461
162468
|
);
|
|
@@ -162771,7 +162778,7 @@ let nWA = class extends Ph {
|
|
|
162771
162778
|
e && e.setViewportSize(A);
|
|
162772
162779
|
}
|
|
162773
162780
|
};
|
|
162774
|
-
function
|
|
162781
|
+
function oWA(n) {
|
|
162775
162782
|
let A = null;
|
|
162776
162783
|
n.keyboardEventTarget !== void 0 && (A = typeof n.keyboardEventTarget == "string" ? document.getElementById(n.keyboardEventTarget) : n.keyboardEventTarget);
|
|
162777
162784
|
const e = {}, t = n.layers && typeof /** @type {?} */
|
|
@@ -162892,7 +162899,7 @@ class OoA {
|
|
|
162892
162899
|
)), this.context.globalAlpha = 1;
|
|
162893
162900
|
}
|
|
162894
162901
|
}
|
|
162895
|
-
class
|
|
162902
|
+
class aWA extends OoA {
|
|
162896
162903
|
constructor(A, e, t) {
|
|
162897
162904
|
super(A, e, t), this.vsyncValue = 0, this.SMALL_HEIGHT = 9 * this.PR, this.HEIGHT = this.SMALL_HEIGHT, this.WIDTH = 35 * this.PR, this.TEXT_Y = 0 * this.PR, this.canvas.height = this.HEIGHT, this.canvas.width = this.WIDTH, this.canvas.style.height = "9px", this.canvas.style.width = "35px", this.canvas.style.cssText = `
|
|
162898
162905
|
width: 35px;
|
|
@@ -162952,7 +162959,7 @@ const koA = class mC {
|
|
|
162952
162959
|
this.fpsPanel && this.resizePanel(this.fpsPanel), this.msPanel && this.resizePanel(this.msPanel), this.gpuPanel && this.resizePanel(this.gpuPanel), this.gpuPanelCompute && this.resizePanel(this.gpuPanelCompute);
|
|
162953
162960
|
}, this.mode = c, this.horizontal = P, this.minimal = D, this.trackGPU = A, this.trackCPT = e, this.trackHz = t, this.trackFPS = i, this.samplesLog = o, this.samplesGraph = a, this.precision = l, this.logsPerSecond = r, this.graphsPerSecond = s;
|
|
162954
162961
|
const h = performance.now();
|
|
162955
|
-
this.prevGraphTime = h, this.dom = document.createElement("div"), this.initializeDOM(), this.beginTime = performance.now(), this.prevTextTime = this.beginTime, this.prevCpuTime = this.beginTime, this._panelId = 0, this.trackFPS && (this.fpsPanel = this.addPanel(new mC.Panel("FPS", "#0ff", "#002")), this.msPanel = this.addPanel(new mC.Panel("CPU", "#0f0", "#020"))), this.trackHz === !0 && (this.vsyncPanel = new
|
|
162962
|
+
this.prevGraphTime = h, this.dom = document.createElement("div"), this.initializeDOM(), this.beginTime = performance.now(), this.prevTextTime = this.beginTime, this.prevCpuTime = this.beginTime, this._panelId = 0, this.trackFPS && (this.fpsPanel = this.addPanel(new mC.Panel("FPS", "#0ff", "#002")), this.msPanel = this.addPanel(new mC.Panel("CPU", "#0f0", "#020"))), this.trackHz === !0 && (this.vsyncPanel = new aWA("", "#f0f", "#202"), this.dom.appendChild(this.vsyncPanel.canvas), this.vsyncPanel.setOffset(56, 35)), this.setupEventListeners();
|
|
162956
162963
|
}
|
|
162957
162964
|
initializeDOM() {
|
|
162958
162965
|
this.dom.style.cssText = `
|
|
@@ -163156,7 +163163,7 @@ const koA = class mC {
|
|
|
163156
163163
|
}
|
|
163157
163164
|
};
|
|
163158
163165
|
koA.Panel = OoA;
|
|
163159
|
-
let
|
|
163166
|
+
let lWA = koA;
|
|
163160
163167
|
class boA {
|
|
163161
163168
|
containerID_ = void 0;
|
|
163162
163169
|
// 地图容器ID(关联地图实例)
|
|
@@ -163382,7 +163389,7 @@ class boA {
|
|
|
163382
163389
|
});
|
|
163383
163390
|
};
|
|
163384
163391
|
}
|
|
163385
|
-
class
|
|
163392
|
+
class DWA {
|
|
163386
163393
|
// 地图容器ID(DOM元素标识)
|
|
163387
163394
|
containerID_ = void 0;
|
|
163388
163395
|
// 数据类型校验类
|
|
@@ -163701,7 +163708,7 @@ class zoA {
|
|
|
163701
163708
|
this.modelInstance_ && A.scene.primitives.remove(this.modelInstance_), this.modelInstance_ = D, A.scene.primitives.add(this.modelInstance_);
|
|
163702
163709
|
});
|
|
163703
163710
|
}
|
|
163704
|
-
this.frustumInstance_ || (this.frustumInstance_ = new
|
|
163711
|
+
this.frustumInstance_ || (this.frustumInstance_ = new DWA(this.containerID_, "Models")), this.frustumInstance_.DataProcessing(this.data_, e);
|
|
163705
163712
|
};
|
|
163706
163713
|
/**
|
|
163707
163714
|
* 重新绘制中心点标签
|
|
@@ -163876,7 +163883,7 @@ class zoA {
|
|
|
163876
163883
|
this.customHTMLInstances_ = [];
|
|
163877
163884
|
};
|
|
163878
163885
|
}
|
|
163879
|
-
class
|
|
163886
|
+
class PWA {
|
|
163880
163887
|
// 成员变量声明
|
|
163881
163888
|
containerID_ = void 0;
|
|
163882
163889
|
// 地图容器ID
|
|
@@ -164060,7 +164067,7 @@ class lWA {
|
|
|
164060
164067
|
this.customHTMLInstances_ = [];
|
|
164061
164068
|
};
|
|
164062
164069
|
}
|
|
164063
|
-
class
|
|
164070
|
+
class cWA {
|
|
164064
164071
|
containerID_ = void 0;
|
|
164065
164072
|
// 地图容器ID(关联地图实例)
|
|
164066
164073
|
dataClass_ = void 0;
|
|
@@ -164322,7 +164329,7 @@ class DWA {
|
|
|
164322
164329
|
});
|
|
164323
164330
|
};
|
|
164324
164331
|
}
|
|
164325
|
-
class
|
|
164332
|
+
class hWA {
|
|
164326
164333
|
containerID_ = void 0;
|
|
164327
164334
|
// 地图容器ID(关联地图实例)
|
|
164328
164335
|
dataClass_ = void 0;
|
|
@@ -164625,7 +164632,7 @@ class PWA {
|
|
|
164625
164632
|
});
|
|
164626
164633
|
};
|
|
164627
164634
|
}
|
|
164628
|
-
class
|
|
164635
|
+
class gWA {
|
|
164629
164636
|
containerID_ = void 0;
|
|
164630
164637
|
// 地图容器ID(关联地图实例)
|
|
164631
164638
|
dataClass_ = void 0;
|
|
@@ -164870,7 +164877,7 @@ class cWA {
|
|
|
164870
164877
|
});
|
|
164871
164878
|
};
|
|
164872
164879
|
}
|
|
164873
|
-
class
|
|
164880
|
+
class uWA {
|
|
164874
164881
|
containerID_ = void 0;
|
|
164875
164882
|
// 地图容器ID(关联地图实例)
|
|
164876
164883
|
dataClass_ = void 0;
|
|
@@ -165112,7 +165119,7 @@ class hWA {
|
|
|
165112
165119
|
});
|
|
165113
165120
|
};
|
|
165114
165121
|
}
|
|
165115
|
-
class
|
|
165122
|
+
class QWA {
|
|
165116
165123
|
containerID_ = void 0;
|
|
165117
165124
|
// 地图容器ID(关联地图实例)
|
|
165118
165125
|
dataClass_ = void 0;
|
|
@@ -165602,7 +165609,7 @@ class NoA {
|
|
|
165602
165609
|
});
|
|
165603
165610
|
};
|
|
165604
165611
|
}
|
|
165605
|
-
class
|
|
165612
|
+
class wWA {
|
|
165606
165613
|
// 地图容器ID(DOM元素标识)
|
|
165607
165614
|
containerID_ = void 0;
|
|
165608
165615
|
// 数据类型校验类(用于类型约束)
|
|
@@ -166069,7 +166076,7 @@ class Pm {
|
|
|
166069
166076
|
return e;
|
|
166070
166077
|
};
|
|
166071
166078
|
}
|
|
166072
|
-
class
|
|
166079
|
+
class fWA {
|
|
166073
166080
|
// 地图容器ID(DOM元素标识)
|
|
166074
166081
|
containerID_ = void 0;
|
|
166075
166082
|
// 数据类型校验类(用于类型约束)
|
|
@@ -166559,7 +166566,7 @@ class QWA {
|
|
|
166559
166566
|
this.customHTMLInstances_ = [];
|
|
166560
166567
|
};
|
|
166561
166568
|
}
|
|
166562
|
-
class
|
|
166569
|
+
class dWA {
|
|
166563
166570
|
// 容器ID和数据类标识
|
|
166564
166571
|
containerID_ = void 0;
|
|
166565
166572
|
dataClass_ = void 0;
|
|
@@ -166811,7 +166818,7 @@ class wWA {
|
|
|
166811
166818
|
this.customHTMLInstances_ = [];
|
|
166812
166819
|
};
|
|
166813
166820
|
}
|
|
166814
|
-
class
|
|
166821
|
+
class vWA {
|
|
166815
166822
|
// 地图容器ID(DOM元素标识)
|
|
166816
166823
|
containerID_ = void 0;
|
|
166817
166824
|
// 数据类型校验类(用于类型约束)
|
|
@@ -167054,7 +167061,7 @@ class fWA {
|
|
|
167054
167061
|
this.customHTMLInstances_ = [];
|
|
167055
167062
|
};
|
|
167056
167063
|
}
|
|
167057
|
-
class
|
|
167064
|
+
class CWA {
|
|
167058
167065
|
// 地图容器ID(DOM元素标识)
|
|
167059
167066
|
containerID_ = void 0;
|
|
167060
167067
|
// 数据类型校验类(用于类型约束)
|
|
@@ -168368,7 +168375,7 @@ class Xq {
|
|
|
168368
168375
|
});
|
|
168369
168376
|
};
|
|
168370
168377
|
}
|
|
168371
|
-
class
|
|
168378
|
+
class EWA {
|
|
168372
168379
|
containerID_ = void 0;
|
|
168373
168380
|
// 地图容器ID(关联地图实例)
|
|
168374
168381
|
dataClass_ = void 0;
|
|
@@ -170823,7 +170830,7 @@ class LL {
|
|
|
170823
170830
|
});
|
|
170824
170831
|
};
|
|
170825
170832
|
}
|
|
170826
|
-
class
|
|
170833
|
+
class BWA {
|
|
170827
170834
|
containerID_ = void 0;
|
|
170828
170835
|
// 地图容器ID(关联Cesium Viewer实例)
|
|
170829
170836
|
dataClass_ = void 0;
|
|
@@ -171786,7 +171793,7 @@ class CWA {
|
|
|
171786
171793
|
))));
|
|
171787
171794
|
};
|
|
171788
171795
|
}
|
|
171789
|
-
class
|
|
171796
|
+
class pWA {
|
|
171790
171797
|
containerID_ = void 0;
|
|
171791
171798
|
// 地图容器ID(关联Cesium Viewer实例)
|
|
171792
171799
|
dataClass_ = void 0;
|
|
@@ -172555,7 +172562,7 @@ class AW {
|
|
|
172555
172562
|
this.customHTMLInstances_ = [];
|
|
172556
172563
|
};
|
|
172557
172564
|
}
|
|
172558
|
-
class
|
|
172565
|
+
class mWA {
|
|
172559
172566
|
containerID_ = void 0;
|
|
172560
172567
|
// 地图容器ID(关联Cesium Viewer实例)
|
|
172561
172568
|
dataClass_ = void 0;
|
|
@@ -174282,7 +174289,7 @@ var wE = {
|
|
|
174282
174289
|
defaultYField: "y",
|
|
174283
174290
|
defaultValueField: "value",
|
|
174284
174291
|
plugins: {}
|
|
174285
|
-
},
|
|
174292
|
+
}, IWA = (function() {
|
|
174286
174293
|
var A = function(i) {
|
|
174287
174294
|
this._coordinator = {}, this._data = [], this._radi = [], this._min = 10, this._max = 1, this._xField = i.xField || i.defaultXField, this._yField = i.yField || i.defaultYField, this._valueField = i.valueField || i.defaultValueField, i.radius && (this._cfgRadius = i.radius);
|
|
174288
174295
|
}, e = wE.defaultRadius;
|
|
@@ -174367,7 +174374,7 @@ var wE = {
|
|
|
174367
174374
|
return this._unOrganizeData();
|
|
174368
174375
|
}
|
|
174369
174376
|
}, A;
|
|
174370
|
-
})(),
|
|
174377
|
+
})(), MWA = (function() {
|
|
174371
174378
|
var A = function(r) {
|
|
174372
174379
|
var s = r.gradient || r.defaultGradient, o = document.createElement("canvas"), a = o.getContext("2d");
|
|
174373
174380
|
o.width = 256, o.height = 1;
|
|
@@ -174464,9 +174471,9 @@ var wE = {
|
|
|
174464
174471
|
return this.canvas.toDataURL();
|
|
174465
174472
|
}
|
|
174466
174473
|
}, i;
|
|
174467
|
-
})(),
|
|
174474
|
+
})(), TWA = (function() {
|
|
174468
174475
|
var A = !1;
|
|
174469
|
-
return wE.defaultRenderer === "canvas2d" && (A =
|
|
174476
|
+
return wE.defaultRenderer === "canvas2d" && (A = MWA), A;
|
|
174470
174477
|
})(), tW = {
|
|
174471
174478
|
merge: function() {
|
|
174472
174479
|
for (var n = {}, A = arguments.length, e = 0; e < A; e++) {
|
|
@@ -174476,7 +174483,7 @@ var wE = {
|
|
|
174476
174483
|
}
|
|
174477
174484
|
return n;
|
|
174478
174485
|
}
|
|
174479
|
-
},
|
|
174486
|
+
}, yWA = (function() {
|
|
174480
174487
|
var A = (function() {
|
|
174481
174488
|
function r() {
|
|
174482
174489
|
this.cStore = {};
|
|
@@ -174519,7 +174526,7 @@ var wE = {
|
|
|
174519
174526
|
"Plugin '" + r + "' not found. Maybe it was not registered."
|
|
174520
174527
|
);
|
|
174521
174528
|
} else
|
|
174522
|
-
this._renderer = new
|
|
174529
|
+
this._renderer = new TWA(i), this._store = new IWA(i);
|
|
174523
174530
|
e(this);
|
|
174524
174531
|
}
|
|
174525
174532
|
return t.prototype = {
|
|
@@ -174554,9 +174561,9 @@ var wE = {
|
|
|
174554
174561
|
return this._store.getValueAt ? this._store.getValueAt(i) : this._renderer.getValueAt ? this._renderer.getValueAt(i) : null;
|
|
174555
174562
|
}
|
|
174556
174563
|
}, t;
|
|
174557
|
-
})(),
|
|
174564
|
+
})(), OWA = {
|
|
174558
174565
|
create: function(n) {
|
|
174559
|
-
return new
|
|
174566
|
+
return new yWA(n);
|
|
174560
174567
|
},
|
|
174561
174568
|
register: function(n, A) {
|
|
174562
174569
|
wE.plugins[n] = A;
|
|
@@ -174599,7 +174606,7 @@ var xoA = { exports: {} };
|
|
|
174599
174606
|
return typeof document < "u" ? document.createElement("canvas") : new this._canvas.constructor();
|
|
174600
174607
|
} };
|
|
174601
174608
|
})();
|
|
174602
|
-
var
|
|
174609
|
+
var kWA = xoA.exports;
|
|
174603
174610
|
const LoA = { max: 1, gradient: { 0.4: "blue", 0.6: "cyan", 0.7: "lime", 0.8: "yellow", 1: "red" }, radius: 25, blur: 15, heatValueScale: 1, minOpacity: 0.05 };
|
|
174604
174611
|
class fE extends Co {
|
|
174605
174612
|
constructor(A, e, t) {
|
|
@@ -174656,7 +174663,7 @@ fE.mergeOptions(LoA), fE.registerJSONType("HeatLayer"), fE.registerRenderer("can
|
|
|
174656
174663
|
if (t = t.convertTo(((o) => n._pointToContainerPoint(o))), !t.intersects(e)) return void this.completeRender();
|
|
174657
174664
|
i = e.intersection(t);
|
|
174658
174665
|
}
|
|
174659
|
-
this._heater || (this._heater =
|
|
174666
|
+
this._heater || (this._heater = kWA(this.canvas)), this._heater.radius(A.options.radius || this._heater.defaultRadius, A.options.blur), A.options.gradient && this._heater.gradient(A.options.gradient), this._heater.max(A.options.max), this._heatViews || (this._heatViews = []);
|
|
174660
174667
|
const r = A.getData();
|
|
174661
174668
|
if (r.length === 0) return void this.completeRender();
|
|
174662
174669
|
const s = this._heatData(r, i);
|
|
@@ -174775,7 +174782,7 @@ class iW {
|
|
|
174775
174782
|
});
|
|
174776
174783
|
}
|
|
174777
174784
|
}).then((a) => {
|
|
174778
|
-
this.heatMapInstance_ || (this.heatMapInstance_ =
|
|
174785
|
+
this.heatMapInstance_ || (this.heatMapInstance_ = OWA.create(a.nuConfig)), this.heatMapInstance_.setData({
|
|
174779
174786
|
max: r,
|
|
174780
174787
|
min: i,
|
|
174781
174788
|
data: a.datas
|
|
@@ -174988,7 +174995,7 @@ class iW {
|
|
|
174988
174995
|
A && this.containerID_.includes("-cesium") ? e = A.container : A && this.containerID_.includes("-openlayers") ? e = A.getTargetElement() : A && this.containerID_.includes("-maptalks") && (e = A.getContainer()), e && this.colorLegendBGDiv && e.removeChild(this.colorLegendBGDiv), this.colorLegendMaxDiv && this.colorLegendBGDiv.removeChild(this.colorLegendMaxDiv), this.colorLegendMinDiv && this.colorLegendBGDiv.removeChild(this.colorLegendMinDiv), this.colorLegendDiv && this.colorLegendBGDiv.removeChild(this.colorLegendDiv), this.colorLegendBGDiv = void 0, this.colorLegendMaxDiv = void 0, this.colorLegendMinDiv = void 0, this.colorLegendDiv = void 0;
|
|
174989
174996
|
};
|
|
174990
174997
|
}
|
|
174991
|
-
class
|
|
174998
|
+
class bWA {
|
|
174992
174999
|
containerID_ = void 0;
|
|
174993
175000
|
// 地图容器ID(关联地图实例)
|
|
174994
175001
|
dataClass_ = void 0;
|
|
@@ -175552,7 +175559,7 @@ class OWA {
|
|
|
175552
175559
|
}
|
|
175553
175560
|
};
|
|
175554
175561
|
}
|
|
175555
|
-
class
|
|
175562
|
+
class zWA {
|
|
175556
175563
|
containerID_ = void 0;
|
|
175557
175564
|
// 地图容器ID(关联地图实例)
|
|
175558
175565
|
dataClass_ = void 0;
|
|
@@ -176134,7 +176141,7 @@ class kWA {
|
|
|
176134
176141
|
}
|
|
176135
176142
|
};
|
|
176136
176143
|
}
|
|
176137
|
-
class
|
|
176144
|
+
class NWA {
|
|
176138
176145
|
containerID_ = void 0;
|
|
176139
176146
|
// 地图容器ID(用于关联地图实例)
|
|
176140
176147
|
dataClass_ = void 0;
|
|
@@ -176198,7 +176205,7 @@ class bWA {
|
|
|
176198
176205
|
}
|
|
176199
176206
|
};
|
|
176200
176207
|
}
|
|
176201
|
-
class
|
|
176208
|
+
class xWA {
|
|
176202
176209
|
containerID_ = void 0;
|
|
176203
176210
|
// 地图容器ID(关联Cesium Viewer实例)
|
|
176204
176211
|
dataClass_ = void 0;
|
|
@@ -177074,7 +177081,7 @@ class zWA {
|
|
|
177074
177081
|
)));
|
|
177075
177082
|
};
|
|
177076
177083
|
}
|
|
177077
|
-
class
|
|
177084
|
+
class LWA {
|
|
177078
177085
|
containerID_ = void 0;
|
|
177079
177086
|
// 地图容器ID(关联Cesium Viewer实例)
|
|
177080
177087
|
dataClass_ = void 0;
|
|
@@ -177911,7 +177918,7 @@ class NWA {
|
|
|
177911
177918
|
)));
|
|
177912
177919
|
};
|
|
177913
177920
|
}
|
|
177914
|
-
class
|
|
177921
|
+
class UWA {
|
|
177915
177922
|
containerID_ = void 0;
|
|
177916
177923
|
// 地图容器ID(关联Cesium Viewer实例)
|
|
177917
177924
|
dataClass_ = void 0;
|
|
@@ -178640,7 +178647,7 @@ class xWA {
|
|
|
178640
178647
|
this.customHTMLInstances_ = [];
|
|
178641
178648
|
};
|
|
178642
178649
|
}
|
|
178643
|
-
class
|
|
178650
|
+
class jWA {
|
|
178644
178651
|
containerID_ = void 0;
|
|
178645
178652
|
dataClass_ = void 0;
|
|
178646
178653
|
data_ = void 0;
|
|
@@ -180383,7 +180390,7 @@ class Z6 {
|
|
|
180383
180390
|
this.translationPlane_ && (this.translationPlane_ = void 0), this.translationDirection_ && (this.translationDirection_ = void 0), this.rotationPlane_ && (this.rotationPlane_ = void 0), this.rotationDirection_ && (this.rotationDirection_ = void 0);
|
|
180384
180391
|
};
|
|
180385
180392
|
}
|
|
180386
|
-
class
|
|
180393
|
+
class SWA {
|
|
180387
180394
|
containerID_ = void 0;
|
|
180388
180395
|
dataClass_ = void 0;
|
|
180389
180396
|
data_ = void 0;
|
|
@@ -181305,7 +181312,7 @@ class UWA {
|
|
|
181305
181312
|
this.customHTMLInstances_ = [];
|
|
181306
181313
|
};
|
|
181307
181314
|
}
|
|
181308
|
-
class
|
|
181315
|
+
class FWA {
|
|
181309
181316
|
containerID_ = void 0;
|
|
181310
181317
|
dataClass_ = void 0;
|
|
181311
181318
|
data_ = void 0;
|
|
@@ -182405,7 +182412,7 @@ class jWA {
|
|
|
182405
182412
|
this.customHTMLInstances_ = [];
|
|
182406
182413
|
};
|
|
182407
182414
|
}
|
|
182408
|
-
class
|
|
182415
|
+
class RWA {
|
|
182409
182416
|
containerID_ = void 0;
|
|
182410
182417
|
dataClass_ = void 0;
|
|
182411
182418
|
data_ = void 0;
|
|
@@ -183290,7 +183297,7 @@ class SWA {
|
|
|
183290
183297
|
}), this.customHTMLInstances_ = [];
|
|
183291
183298
|
};
|
|
183292
183299
|
}
|
|
183293
|
-
class
|
|
183300
|
+
class YWA {
|
|
183294
183301
|
containerID_ = void 0;
|
|
183295
183302
|
dataClass_ = void 0;
|
|
183296
183303
|
data_ = void 0;
|
|
@@ -184169,7 +184176,7 @@ class FWA {
|
|
|
184169
184176
|
this.customHTMLInstances_ = [];
|
|
184170
184177
|
};
|
|
184171
184178
|
}
|
|
184172
|
-
class
|
|
184179
|
+
class HWA {
|
|
184173
184180
|
// 容器ID(地图容器DOM元素标识)
|
|
184174
184181
|
containerID_ = void 0;
|
|
184175
184182
|
// 数据类型类(可能用于类型校验或扩展)
|
|
@@ -184253,7 +184260,7 @@ class RWA {
|
|
|
184253
184260
|
this.geometryInstance_ && A && A?.scene && A?.scene?.primitives && A.scene.primitives.remove(this.geometryInstance_), this.geometryInstance_ = void 0;
|
|
184254
184261
|
};
|
|
184255
184262
|
}
|
|
184256
|
-
class
|
|
184263
|
+
class JWA {
|
|
184257
184264
|
containerID_ = void 0;
|
|
184258
184265
|
dataClass_ = void 0;
|
|
184259
184266
|
data_ = void 0;
|
|
@@ -184400,7 +184407,7 @@ class YWA {
|
|
|
184400
184407
|
this.radar_ && A && A?.entities && A.entities.remove(this.radar_), this.scan_ && A && A?.entities && A.entities.remove(this.scan_), this.radar_ = void 0, this.scan_ = void 0, this.scanAnimation_ && A && A?.clock && A.clock.onTick.removeEventListener(this.scanAnimation_), this.scanAnimation_ = void 0;
|
|
184401
184408
|
};
|
|
184402
184409
|
}
|
|
184403
|
-
class
|
|
184410
|
+
class GWA {
|
|
184404
184411
|
containerID_ = void 0;
|
|
184405
184412
|
dataClass_ = void 0;
|
|
184406
184413
|
data_ = void 0;
|
|
@@ -184461,7 +184468,7 @@ class HWA {
|
|
|
184461
184468
|
}), this.layers_ = [], this.S3MBPromise_ = void 0;
|
|
184462
184469
|
};
|
|
184463
184470
|
}
|
|
184464
|
-
class
|
|
184471
|
+
class ZWA {
|
|
184465
184472
|
// 定义并导出影像主题处理类
|
|
184466
184473
|
/**
|
|
184467
184474
|
* 构造函数,初始化参数和着色器代码
|
|
@@ -184638,7 +184645,7 @@ function dy(n) {
|
|
|
184638
184645
|
}
|
|
184639
184646
|
var UL = { exports: {} };
|
|
184640
184647
|
var nW;
|
|
184641
|
-
function
|
|
184648
|
+
function KWA() {
|
|
184642
184649
|
return nW || (nW = 1, (function(n, A) {
|
|
184643
184650
|
(function(e) {
|
|
184644
184651
|
n.exports = e();
|
|
@@ -186939,8 +186946,8 @@ function GWA() {
|
|
|
186939
186946
|
});
|
|
186940
186947
|
})(UL)), UL.exports;
|
|
186941
186948
|
}
|
|
186942
|
-
var
|
|
186943
|
-
const
|
|
186949
|
+
var VWA = KWA();
|
|
186950
|
+
const qWA = /* @__PURE__ */ YQ(VWA), WWA = /\s*/g, XWA = /^\s*|\s*$/g, _WA = /\s+/;
|
|
186944
186951
|
function rW(n) {
|
|
186945
186952
|
if (!n || !n.length)
|
|
186946
186953
|
return 0;
|
|
@@ -186958,7 +186965,7 @@ function fr(n, A) {
|
|
|
186958
186965
|
const e = ND(n, A);
|
|
186959
186966
|
return e.length ? e[0] : null;
|
|
186960
186967
|
}
|
|
186961
|
-
function
|
|
186968
|
+
function $WA(n) {
|
|
186962
186969
|
return n.normalize && n.normalize(), n;
|
|
186963
186970
|
}
|
|
186964
186971
|
function UoA(n) {
|
|
@@ -186967,18 +186974,18 @@ function UoA(n) {
|
|
|
186967
186974
|
return e;
|
|
186968
186975
|
}
|
|
186969
186976
|
function Gs(n) {
|
|
186970
|
-
return n &&
|
|
186977
|
+
return n && $WA(n), n && n.textContent || "";
|
|
186971
186978
|
}
|
|
186972
186979
|
function joA(n) {
|
|
186973
|
-
return UoA(n.replace(
|
|
186980
|
+
return UoA(n.replace(WWA, "").split(","));
|
|
186974
186981
|
}
|
|
186975
186982
|
function sW(n) {
|
|
186976
|
-
const A = n.replace(
|
|
186983
|
+
const A = n.replace(XWA, "").split(_WA), e = [];
|
|
186977
186984
|
for (let t = 0; t < A.length; t++)
|
|
186978
186985
|
e.push(joA(A[t]));
|
|
186979
186986
|
return e;
|
|
186980
186987
|
}
|
|
186981
|
-
function
|
|
186988
|
+
function AXA() {
|
|
186982
186989
|
return {
|
|
186983
186990
|
type: "FeatureCollection",
|
|
186984
186991
|
features: []
|
|
@@ -186990,7 +186997,7 @@ function oW(n) {
|
|
|
186990
186997
|
return n.xml !== void 0 ? n.xml : gU.serializeToString(n);
|
|
186991
186998
|
}
|
|
186992
186999
|
function Dp(n) {
|
|
186993
|
-
const A =
|
|
187000
|
+
const A = AXA(), e = {}, t = {}, i = {}, r = ["Polygon", "LineString", "Point", "Track", "gx:Track"], s = ND(n, "Placemark"), o = ND(n, "Style"), a = ND(n, "StyleMap");
|
|
186994
187001
|
for (let g = 0; g < o.length; g++) {
|
|
186995
187002
|
const u = rW(oW(o[g])).toString(16);
|
|
186996
187003
|
e["#" + lp(o[g], "id")] = u, t[u] = o[g];
|
|
@@ -187129,25 +187136,25 @@ function Dp(n) {
|
|
|
187129
187136
|
}
|
|
187130
187137
|
return A;
|
|
187131
187138
|
}
|
|
187132
|
-
const K6 = (n) => new DOMParser().parseFromString(n, "application/xml"), SoA = (n) => n.split(".").pop(), aW = (n) => new
|
|
187139
|
+
const K6 = (n) => new DOMParser().parseFromString(n, "application/xml"), SoA = (n) => n.split(".").pop(), aW = (n) => new qWA().loadAsync(n).then((e) => {
|
|
187133
187140
|
let t = null;
|
|
187134
187141
|
return e.forEach((i, r) => {
|
|
187135
187142
|
SoA(i) === "kml" && t === null && (t = r.async("string").then(K6));
|
|
187136
187143
|
}), t;
|
|
187137
187144
|
});
|
|
187138
|
-
function
|
|
187145
|
+
function eXA(n, A) {
|
|
187139
187146
|
if (!n) {
|
|
187140
187147
|
console.warn("toGeoJSON参数不能为空");
|
|
187141
187148
|
return;
|
|
187142
187149
|
}
|
|
187143
|
-
if (
|
|
187150
|
+
if (tXA(n)) {
|
|
187144
187151
|
const e = SoA(n);
|
|
187145
187152
|
if (e === "kml")
|
|
187146
|
-
return
|
|
187153
|
+
return iXA(n, A).then(function(t) {
|
|
187147
187154
|
return Dp(t);
|
|
187148
187155
|
});
|
|
187149
187156
|
if (e === "kmz")
|
|
187150
|
-
return
|
|
187157
|
+
return nXA(n, A).then(function(t) {
|
|
187151
187158
|
return aW(t);
|
|
187152
187159
|
}).then(function(t) {
|
|
187153
187160
|
return Dp(t);
|
|
@@ -187164,10 +187171,10 @@ function $WA(n, A) {
|
|
|
187164
187171
|
return Dp(e);
|
|
187165
187172
|
});
|
|
187166
187173
|
}
|
|
187167
|
-
function
|
|
187174
|
+
function tXA(n) {
|
|
187168
187175
|
return typeof n == "string" && n.constructor === String;
|
|
187169
187176
|
}
|
|
187170
|
-
function
|
|
187177
|
+
function iXA(n, A) {
|
|
187171
187178
|
const e = {
|
|
187172
187179
|
method: "GET",
|
|
187173
187180
|
// headers: { "Content-Type": "application/xml" },
|
|
@@ -187175,20 +187182,20 @@ function eXA(n, A) {
|
|
|
187175
187182
|
};
|
|
187176
187183
|
return fetch(n, e).then((t) => t.text()).then((t) => K6(t));
|
|
187177
187184
|
}
|
|
187178
|
-
function
|
|
187185
|
+
function nXA(n, A) {
|
|
187179
187186
|
const e = {
|
|
187180
187187
|
method: "GET",
|
|
187181
187188
|
...A
|
|
187182
187189
|
};
|
|
187183
187190
|
return fetch(n, e).then((t) => t.blob());
|
|
187184
187191
|
}
|
|
187185
|
-
function
|
|
187192
|
+
function rXA(n) {
|
|
187186
187193
|
n("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"), n("EPSG:4269", "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"), n("EPSG:3857", "+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");
|
|
187187
187194
|
for (var A = 1; A <= 60; ++A)
|
|
187188
187195
|
n("EPSG:" + (32600 + A), "+proj=utm +zone=" + A + " +datum=WGS84 +units=m"), n("EPSG:" + (32700 + A), "+proj=utm +zone=" + A + " +south +datum=WGS84 +units=m");
|
|
187189
187196
|
n("EPSG:5041", "+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"), n("EPSG:5042", "+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"), n.WGS84 = n["EPSG:4326"], n["EPSG:3785"] = n["EPSG:3857"], n.GOOGLE = n["EPSG:3857"], n["EPSG:900913"] = n["EPSG:3857"], n["EPSG:102113"] = n["EPSG:3857"];
|
|
187190
187197
|
}
|
|
187191
|
-
var Vf = 1, qf = 2, dE = 3,
|
|
187198
|
+
var Vf = 1, qf = 2, dE = 3, sXA = 4, uU = 5, lW = 6378137, oXA = 6356752314e-3, DW = 0.0066943799901413165, cm = 484813681109536e-20, Vt = Math.PI / 2, aXA = 0.16666666666666666, lXA = 0.04722222222222222, DXA = 0.022156084656084655, oi = 1e-10, ys = 0.017453292519943295, kl = 57.29577951308232, pr = Math.PI / 4, uI = Math.PI * 2, Zs = 3.14159265359, jl = {};
|
|
187192
187199
|
jl.greenwich = 0;
|
|
187193
187200
|
jl.lisbon = -9.131906111111;
|
|
187194
187201
|
jl.paris = 2.337229166667;
|
|
@@ -187202,7 +187209,7 @@ jl.brussels = 4.367975;
|
|
|
187202
187209
|
jl.stockholm = 18.058277777778;
|
|
187203
187210
|
jl.athens = 23.7163375;
|
|
187204
187211
|
jl.oslo = 10.722916666667;
|
|
187205
|
-
const
|
|
187212
|
+
const PXA = {
|
|
187206
187213
|
mm: { to_meter: 1e-3 },
|
|
187207
187214
|
cm: { to_meter: 0.01 },
|
|
187208
187215
|
ft: { to_meter: 0.3048 },
|
|
@@ -187316,7 +187323,7 @@ function QU(n) {
|
|
|
187316
187323
|
},
|
|
187317
187324
|
units: function(o) {
|
|
187318
187325
|
A.units = o;
|
|
187319
|
-
var a = SQ(
|
|
187326
|
+
var a = SQ(PXA, o);
|
|
187320
187327
|
a && (A.to_meter = a.to_meter);
|
|
187321
187328
|
},
|
|
187322
187329
|
from_greenwich: function(o) {
|
|
@@ -187512,12 +187519,12 @@ class FoA {
|
|
|
187512
187519
|
return e;
|
|
187513
187520
|
}
|
|
187514
187521
|
}
|
|
187515
|
-
class
|
|
187522
|
+
class cXA extends FoA {
|
|
187516
187523
|
static convert(A, e = {}) {
|
|
187517
187524
|
return super.convert(A, e), e.coordinate_system && e.coordinate_system.subtype === "Cartesian" && delete e.coordinate_system, e.usage && delete e.usage, e;
|
|
187518
187525
|
}
|
|
187519
187526
|
}
|
|
187520
|
-
class
|
|
187527
|
+
class hXA extends FoA {
|
|
187521
187528
|
static convert(A, e = {}) {
|
|
187522
187529
|
super.convert(A, e);
|
|
187523
187530
|
const t = A.find((r) => Array.isArray(r) && r[0] === "CS");
|
|
@@ -187533,17 +187540,17 @@ class PXA extends FoA {
|
|
|
187533
187540
|
return e;
|
|
187534
187541
|
}
|
|
187535
187542
|
}
|
|
187536
|
-
function
|
|
187543
|
+
function gXA(n) {
|
|
187537
187544
|
return n.find((A) => Array.isArray(A) && A[0] === "USAGE") ? "2019" : (n.find((A) => Array.isArray(A) && A[0] === "CS") || n[0] === "BOUNDCRS" || n[0] === "PROJCRS" || n[0] === "GEOGCRS", "2015");
|
|
187538
187545
|
}
|
|
187539
|
-
function
|
|
187540
|
-
return (
|
|
187546
|
+
function uXA(n) {
|
|
187547
|
+
return (gXA(n) === "2019" ? hXA : cXA).convert(n);
|
|
187541
187548
|
}
|
|
187542
|
-
function
|
|
187549
|
+
function QXA(n) {
|
|
187543
187550
|
const A = n.toUpperCase();
|
|
187544
187551
|
return A.includes("PROJCRS") || A.includes("GEOGCRS") || A.includes("BOUNDCRS") || A.includes("VERTCRS") || A.includes("LENGTHUNIT") || A.includes("ANGLEUNIT") || A.includes("SCALEUNIT") ? "WKT2" : (A.includes("PROJCS") || A.includes("GEOGCS") || A.includes("LOCAL_CS") || A.includes("VERT_CS") || A.includes("UNIT"), "WKT1");
|
|
187545
187552
|
}
|
|
187546
|
-
var QI = 1, RoA = 2, YoA = 3, YO = 4, HoA = 5, V6 = -1,
|
|
187553
|
+
var QI = 1, RoA = 2, YoA = 3, YO = 4, HoA = 5, V6 = -1, wXA = /\s/, fXA = /[A-Za-z]/, dXA = /[A-Za-z84_]/, hb = /[,\]]/, JoA = /[\d\.E\-\+]/;
|
|
187547
187554
|
function jg(n) {
|
|
187548
187555
|
if (typeof n != "string")
|
|
187549
187556
|
throw new Error("not a string");
|
|
@@ -187552,7 +187559,7 @@ function jg(n) {
|
|
|
187552
187559
|
jg.prototype.readCharicter = function() {
|
|
187553
187560
|
var n = this.text[this.place++];
|
|
187554
187561
|
if (this.state !== YO)
|
|
187555
|
-
for (;
|
|
187562
|
+
for (; wXA.test(n); ) {
|
|
187556
187563
|
if (this.place >= this.text.length)
|
|
187557
187564
|
return;
|
|
187558
187565
|
n = this.text[this.place++];
|
|
@@ -187612,7 +187619,7 @@ jg.prototype.quoted = function(n) {
|
|
|
187612
187619
|
this.word += n;
|
|
187613
187620
|
};
|
|
187614
187621
|
jg.prototype.keyword = function(n) {
|
|
187615
|
-
if (
|
|
187622
|
+
if (dXA.test(n)) {
|
|
187616
187623
|
this.word += n;
|
|
187617
187624
|
return;
|
|
187618
187625
|
}
|
|
@@ -187628,7 +187635,7 @@ jg.prototype.keyword = function(n) {
|
|
|
187628
187635
|
throw new Error(`havn't handled "` + n + '" in keyword yet, index ' + this.place);
|
|
187629
187636
|
};
|
|
187630
187637
|
jg.prototype.neutral = function(n) {
|
|
187631
|
-
if (
|
|
187638
|
+
if (fXA.test(n)) {
|
|
187632
187639
|
this.word = n, this.state = RoA;
|
|
187633
187640
|
return;
|
|
187634
187641
|
}
|
|
@@ -187653,7 +187660,7 @@ jg.prototype.output = function() {
|
|
|
187653
187660
|
return this.root;
|
|
187654
187661
|
throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
|
|
187655
187662
|
};
|
|
187656
|
-
function
|
|
187663
|
+
function vXA(n) {
|
|
187657
187664
|
var A = new jg(n);
|
|
187658
187665
|
return A.output();
|
|
187659
187666
|
}
|
|
@@ -187743,9 +187750,9 @@ function FC(n, A) {
|
|
|
187743
187750
|
return jL(A, e, n);
|
|
187744
187751
|
}
|
|
187745
187752
|
}
|
|
187746
|
-
var
|
|
187753
|
+
var CXA = 0.017453292519943295;
|
|
187747
187754
|
function yP(n) {
|
|
187748
|
-
return n *
|
|
187755
|
+
return n * CXA;
|
|
187749
187756
|
}
|
|
187750
187757
|
function GoA(n) {
|
|
187751
187758
|
const A = (n.projName || "").toLowerCase().replace(/_/g, " ");
|
|
@@ -187820,7 +187827,7 @@ function HO(n, A = {}) {
|
|
|
187820
187827
|
}
|
|
187821
187828
|
}), A.latitude_of_false_origin !== void 0 && (A.lat0 = A.latitude_of_false_origin), A.longitude_of_false_origin !== void 0 && (A.long0 = A.longitude_of_false_origin), A.latitude_of_standard_parallel !== void 0 && (A.lat0 = A.latitude_of_standard_parallel, A.lat1 = A.latitude_of_standard_parallel), A.latitude_of_1st_standard_parallel !== void 0 && (A.lat1 = A.latitude_of_1st_standard_parallel), A.latitude_of_2nd_standard_parallel !== void 0 && (A.lat2 = A.latitude_of_2nd_standard_parallel), A.latitude_of_projection_centre !== void 0 && (A.lat0 = A.latitude_of_projection_centre), A.longitude_of_projection_centre !== void 0 && (A.longc = A.longitude_of_projection_centre), A.easting_at_false_origin !== void 0 && (A.x0 = A.easting_at_false_origin), A.northing_at_false_origin !== void 0 && (A.y0 = A.northing_at_false_origin), A.latitude_of_natural_origin !== void 0 && (A.lat0 = A.latitude_of_natural_origin), A.longitude_of_natural_origin !== void 0 && (A.long0 = A.longitude_of_natural_origin), A.longitude_of_origin !== void 0 && (A.long0 = A.longitude_of_origin), A.false_easting !== void 0 && (A.x0 = A.false_easting), A.easting_at_projection_centre && (A.x0 = A.easting_at_projection_centre), A.false_northing !== void 0 && (A.y0 = A.false_northing), A.northing_at_projection_centre && (A.y0 = A.northing_at_projection_centre), A.standard_parallel_1 !== void 0 && (A.lat1 = A.standard_parallel_1), A.standard_parallel_2 !== void 0 && (A.lat2 = A.standard_parallel_2), A.scale_factor_at_natural_origin !== void 0 && (A.k0 = A.scale_factor_at_natural_origin), A.scale_factor_at_projection_centre !== void 0 && (A.k0 = A.scale_factor_at_projection_centre), A.scale_factor_on_pseudo_standard_parallel !== void 0 && (A.k0 = A.scale_factor_on_pseudo_standard_parallel), A.azimuth !== void 0 && (A.alpha = A.azimuth), A.azimuth_at_projection_centre !== void 0 && (A.alpha = A.azimuth_at_projection_centre), A.angle_from_rectified_to_skew_grid && (A.rectified_grid_angle = A.angle_from_rectified_to_skew_grid), GoA(A), A);
|
|
187822
187829
|
}
|
|
187823
|
-
var
|
|
187830
|
+
var EXA = [
|
|
187824
187831
|
"PROJECTEDCRS",
|
|
187825
187832
|
"PROJCRS",
|
|
187826
187833
|
"GEOGCS",
|
|
@@ -187833,17 +187840,17 @@ var vXA = [
|
|
|
187833
187840
|
"ENGCRS",
|
|
187834
187841
|
"ENGINEERINGCRS"
|
|
187835
187842
|
];
|
|
187836
|
-
function
|
|
187843
|
+
function BXA(n, A) {
|
|
187837
187844
|
var e = A[0], t = A[1];
|
|
187838
187845
|
!(e in n) && t in n && (n[e] = n[t], A.length === 3 && (n[e] = A[2](n[e])));
|
|
187839
187846
|
}
|
|
187840
187847
|
function ZoA(n) {
|
|
187841
187848
|
for (var A = Object.keys(n), e = 0, t = A.length; e < t; ++e) {
|
|
187842
187849
|
var i = A[e];
|
|
187843
|
-
|
|
187850
|
+
EXA.indexOf(i) !== -1 && pXA(n[i]), typeof n[i] == "object" && ZoA(n[i]);
|
|
187844
187851
|
}
|
|
187845
187852
|
}
|
|
187846
|
-
function
|
|
187853
|
+
function pXA(n) {
|
|
187847
187854
|
if (n.AUTHORITY) {
|
|
187848
187855
|
var A = Object.keys(n.AUTHORITY)[0];
|
|
187849
187856
|
A && A in n.AUTHORITY && (n.title = A + ":" + n.AUTHORITY[A]);
|
|
@@ -187863,7 +187870,7 @@ function EXA(n) {
|
|
|
187863
187870
|
return D * P;
|
|
187864
187871
|
}
|
|
187865
187872
|
var a = function(D) {
|
|
187866
|
-
return
|
|
187873
|
+
return BXA(n, D);
|
|
187867
187874
|
}, l = [
|
|
187868
187875
|
["standard_parallel_1", "Standard_Parallel_1"],
|
|
187869
187876
|
["standard_parallel_1", "Latitude of 1st standard parallel"],
|
|
@@ -187906,10 +187913,10 @@ function EXA(n) {
|
|
|
187906
187913
|
function JO(n) {
|
|
187907
187914
|
if (typeof n == "object")
|
|
187908
187915
|
return HO(n);
|
|
187909
|
-
const A =
|
|
187910
|
-
var e =
|
|
187916
|
+
const A = QXA(n);
|
|
187917
|
+
var e = vXA(n);
|
|
187911
187918
|
if (A === "WKT2") {
|
|
187912
|
-
const r =
|
|
187919
|
+
const r = uXA(e);
|
|
187913
187920
|
return HO(r);
|
|
187914
187921
|
}
|
|
187915
187922
|
var t = e[0], i = {};
|
|
@@ -187947,44 +187954,44 @@ function ta(n) {
|
|
|
187947
187954
|
return;
|
|
187948
187955
|
}
|
|
187949
187956
|
}
|
|
187950
|
-
|
|
187951
|
-
function
|
|
187957
|
+
rXA(ta);
|
|
187958
|
+
function mXA(n) {
|
|
187952
187959
|
return typeof n == "string";
|
|
187953
187960
|
}
|
|
187954
|
-
function
|
|
187961
|
+
function IXA(n) {
|
|
187955
187962
|
return n in ta;
|
|
187956
187963
|
}
|
|
187957
|
-
function
|
|
187964
|
+
function MXA(n) {
|
|
187958
187965
|
return n.indexOf("+") !== 0 && n.indexOf("[") !== -1 || typeof n == "object" && !("srsCode" in n);
|
|
187959
187966
|
}
|
|
187960
|
-
var
|
|
187961
|
-
function
|
|
187967
|
+
var TXA = ["3857", "900913", "3785", "102113"];
|
|
187968
|
+
function yXA(n) {
|
|
187962
187969
|
var A = SQ(n, "authority");
|
|
187963
187970
|
if (A) {
|
|
187964
187971
|
var e = SQ(A, "epsg");
|
|
187965
|
-
return e &&
|
|
187972
|
+
return e && TXA.indexOf(e) > -1;
|
|
187966
187973
|
}
|
|
187967
187974
|
}
|
|
187968
|
-
function
|
|
187975
|
+
function OXA(n) {
|
|
187969
187976
|
var A = SQ(n, "extension");
|
|
187970
187977
|
if (A)
|
|
187971
187978
|
return SQ(A, "proj4");
|
|
187972
187979
|
}
|
|
187973
|
-
function
|
|
187980
|
+
function kXA(n) {
|
|
187974
187981
|
return n[0] === "+";
|
|
187975
187982
|
}
|
|
187976
|
-
function
|
|
187977
|
-
if (
|
|
187978
|
-
if (
|
|
187983
|
+
function bXA(n) {
|
|
187984
|
+
if (mXA(n)) {
|
|
187985
|
+
if (IXA(n))
|
|
187979
187986
|
return ta[n];
|
|
187980
|
-
if (
|
|
187987
|
+
if (MXA(n)) {
|
|
187981
187988
|
var A = JO(n);
|
|
187982
|
-
if (
|
|
187989
|
+
if (yXA(A))
|
|
187983
187990
|
return ta["EPSG:3857"];
|
|
187984
|
-
var e =
|
|
187991
|
+
var e = OXA(A);
|
|
187985
187992
|
return e ? QU(e) : A;
|
|
187986
187993
|
}
|
|
187987
|
-
if (
|
|
187994
|
+
if (kXA(n))
|
|
187988
187995
|
return QU(n);
|
|
187989
187996
|
} else return "projName" in n ? n : JO(n);
|
|
187990
187997
|
}
|
|
@@ -188017,11 +188024,11 @@ function wI(n, A) {
|
|
|
188017
188024
|
return r;
|
|
188018
188025
|
return -9999;
|
|
188019
188026
|
}
|
|
188020
|
-
function
|
|
188027
|
+
function zXA() {
|
|
188021
188028
|
var n = this.b / this.a;
|
|
188022
188029
|
this.es = 1 - n * n, "x0" in this || (this.x0 = 0), "y0" in this || (this.y0 = 0), this.e = Math.sqrt(this.es), this.lat_ts ? this.sphere ? this.k0 = Math.cos(this.lat_ts) : this.k0 = rh(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) : this.k0 || (this.k ? this.k0 = this.k : this.k0 = 1);
|
|
188023
188030
|
}
|
|
188024
|
-
function
|
|
188031
|
+
function NXA(n) {
|
|
188025
188032
|
var A = n.x, e = n.y;
|
|
188026
188033
|
if (e * kl > 90 && e * kl < -90 && A * kl > 180 && A * kl < -180)
|
|
188027
188034
|
return null;
|
|
@@ -188036,7 +188043,7 @@ function bXA(n) {
|
|
|
188036
188043
|
}
|
|
188037
188044
|
return n.x = t, n.y = i, n;
|
|
188038
188045
|
}
|
|
188039
|
-
function
|
|
188046
|
+
function xXA(n) {
|
|
188040
188047
|
var A = n.x - this.x0, e = n.y - this.y0, t, i;
|
|
188041
188048
|
if (this.sphere)
|
|
188042
188049
|
i = Vt - 2 * Math.atan(Math.exp(-e / (this.a * this.k0)));
|
|
@@ -188047,26 +188054,26 @@ function zXA(n) {
|
|
|
188047
188054
|
}
|
|
188048
188055
|
return t = Qi(this.long0 + A / (this.a * this.k0), this.over), n.x = t, n.y = i, n;
|
|
188049
188056
|
}
|
|
188050
|
-
var
|
|
188051
|
-
const
|
|
188052
|
-
init:
|
|
188053
|
-
forward:
|
|
188054
|
-
inverse:
|
|
188055
|
-
names:
|
|
188057
|
+
var LXA = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "Mercator_Variant_A", "merc"];
|
|
188058
|
+
const UXA = {
|
|
188059
|
+
init: zXA,
|
|
188060
|
+
forward: NXA,
|
|
188061
|
+
inverse: xXA,
|
|
188062
|
+
names: LXA
|
|
188056
188063
|
};
|
|
188057
|
-
function
|
|
188064
|
+
function jXA() {
|
|
188058
188065
|
}
|
|
188059
188066
|
function QW(n) {
|
|
188060
188067
|
return n;
|
|
188061
188068
|
}
|
|
188062
188069
|
var KoA = ["longlat", "identity"];
|
|
188063
|
-
const
|
|
188064
|
-
init:
|
|
188070
|
+
const SXA = {
|
|
188071
|
+
init: jXA,
|
|
188065
188072
|
forward: QW,
|
|
188066
188073
|
inverse: QW,
|
|
188067
188074
|
names: KoA
|
|
188068
188075
|
};
|
|
188069
|
-
var
|
|
188076
|
+
var FXA = [UXA, SXA], $w = {}, RC = [];
|
|
188070
188077
|
function VoA(n, A) {
|
|
188071
188078
|
var e = RC.length;
|
|
188072
188079
|
return n.names ? (RC[e] = n, n.names.forEach(function(t) {
|
|
@@ -188076,20 +188083,20 @@ function VoA(n, A) {
|
|
|
188076
188083
|
function qoA(n) {
|
|
188077
188084
|
return n.replace(/[-\(\)\s]+/g, " ").trim().replace(/ /g, "_");
|
|
188078
188085
|
}
|
|
188079
|
-
function
|
|
188086
|
+
function RXA(n) {
|
|
188080
188087
|
if (!n)
|
|
188081
188088
|
return !1;
|
|
188082
188089
|
var A = n.toLowerCase();
|
|
188083
188090
|
if (typeof $w[A] < "u" && RC[$w[A]] || (A = qoA(A), A in $w && RC[$w[A]]))
|
|
188084
188091
|
return RC[$w[A]];
|
|
188085
188092
|
}
|
|
188086
|
-
function
|
|
188087
|
-
|
|
188093
|
+
function YXA() {
|
|
188094
|
+
FXA.forEach(VoA);
|
|
188088
188095
|
}
|
|
188089
|
-
const
|
|
188090
|
-
start:
|
|
188096
|
+
const HXA = {
|
|
188097
|
+
start: YXA,
|
|
188091
188098
|
add: VoA,
|
|
188092
|
-
get:
|
|
188099
|
+
get: RXA
|
|
188093
188100
|
};
|
|
188094
188101
|
var WoA = {
|
|
188095
188102
|
MERIT: {
|
|
@@ -188314,10 +188321,10 @@ var WoA = {
|
|
|
188314
188321
|
ellipseName: "Normal Sphere (r=6370997)"
|
|
188315
188322
|
}
|
|
188316
188323
|
};
|
|
188317
|
-
const
|
|
188318
|
-
function
|
|
188324
|
+
const JXA = WoA.WGS84;
|
|
188325
|
+
function GXA(n, A, e, t) {
|
|
188319
188326
|
var i = n * n, r = A * A, s = (i - r) / i, o = 0;
|
|
188320
|
-
t ? (n *= 1 - s * (
|
|
188327
|
+
t ? (n *= 1 - s * (aXA + s * (lXA + s * DXA)), i = n * n, s = 0) : o = Math.sqrt(s);
|
|
188321
188328
|
var a = (i - r) / r;
|
|
188322
188329
|
return {
|
|
188323
188330
|
es: s,
|
|
@@ -188325,10 +188332,10 @@ function HXA(n, A, e, t) {
|
|
|
188325
188332
|
ep2: a
|
|
188326
188333
|
};
|
|
188327
188334
|
}
|
|
188328
|
-
function
|
|
188335
|
+
function ZXA(n, A, e, t, i) {
|
|
188329
188336
|
if (!n) {
|
|
188330
188337
|
var r = SQ(WoA, t);
|
|
188331
|
-
r || (r =
|
|
188338
|
+
r || (r = JXA), n = r.a, A = r.b, e = r.rf;
|
|
188332
188339
|
}
|
|
188333
188340
|
return e && !A && (A = (1 - 1 / e) * n), (e === 0 || Math.abs(n - A) < oi) && (i = !0, A = n), {
|
|
188334
188341
|
a: n,
|
|
@@ -189608,25 +189615,25 @@ var e1 = {
|
|
|
189608
189615
|
towgs84: "589,76,480"
|
|
189609
189616
|
}
|
|
189610
189617
|
};
|
|
189611
|
-
for (var
|
|
189612
|
-
var SL = e1[
|
|
189618
|
+
for (var KXA in e1) {
|
|
189619
|
+
var SL = e1[KXA];
|
|
189613
189620
|
SL.datumName && (e1[SL.datumName] = SL);
|
|
189614
189621
|
}
|
|
189615
|
-
function
|
|
189622
|
+
function VXA(n, A, e, t, i, r, s) {
|
|
189616
189623
|
var o = {};
|
|
189617
|
-
return n === void 0 || n === "none" ? o.datum_type = uU : o.datum_type =
|
|
189624
|
+
return n === void 0 || n === "none" ? o.datum_type = uU : o.datum_type = sXA, A && (o.datum_params = A.map(parseFloat), (o.datum_params[0] !== 0 || o.datum_params[1] !== 0 || o.datum_params[2] !== 0) && (o.datum_type = Vf), o.datum_params.length > 3 && (o.datum_params[3] !== 0 || o.datum_params[4] !== 0 || o.datum_params[5] !== 0 || o.datum_params[6] !== 0) && (o.datum_type = qf, o.datum_params[3] *= cm, o.datum_params[4] *= cm, o.datum_params[5] *= cm, o.datum_params[6] = o.datum_params[6] / 1e6 + 1)), s && (o.datum_type = dE, o.grids = s), o.a = e, o.b = t, o.es = i, o.ep2 = r, o;
|
|
189618
189625
|
}
|
|
189619
189626
|
var q6 = {};
|
|
189620
|
-
function
|
|
189621
|
-
return A instanceof ArrayBuffer ?
|
|
189627
|
+
function qXA(n, A, e) {
|
|
189628
|
+
return A instanceof ArrayBuffer ? WXA(n, A, e) : { ready: XXA(n, A) };
|
|
189622
189629
|
}
|
|
189623
|
-
function
|
|
189630
|
+
function WXA(n, A, e) {
|
|
189624
189631
|
var t = !0;
|
|
189625
189632
|
e !== void 0 && e.includeErrorFields === !1 && (t = !1);
|
|
189626
|
-
var i = new DataView(A), r =
|
|
189633
|
+
var i = new DataView(A), r = A_A(i), s = e_A(i, r), o = t_A(i, s, r, t), a = { header: s, subgrids: o };
|
|
189627
189634
|
return q6[n] = a, a;
|
|
189628
189635
|
}
|
|
189629
|
-
async function
|
|
189636
|
+
async function XXA(n, A) {
|
|
189630
189637
|
for (var e = [], t = await A.getImageCount(), i = t - 1; i >= 0; i--) {
|
|
189631
189638
|
var r = await A.getImage(i), s = await r.readRasters(), o = s, a = [r.getWidth(), r.getHeight()], l = r.getBoundingBox().map(wW), D = [r.fileDirectory.ModelPixelScale[0], r.fileDirectory.ModelPixelScale[1]].map(wW), P = l[0] + (a[0] - 1) * D[0], c = l[3] - (a[1] - 1) * D[1], h = o[0], g = o[1], u = [];
|
|
189632
189639
|
for (let C = a[1] - 1; C >= 0; C--)
|
|
@@ -189649,13 +189656,13 @@ async function qXA(n, A) {
|
|
|
189649
189656
|
};
|
|
189650
189657
|
return q6[n] = w, w;
|
|
189651
189658
|
}
|
|
189652
|
-
function
|
|
189659
|
+
function _XA(n) {
|
|
189653
189660
|
if (n === void 0)
|
|
189654
189661
|
return null;
|
|
189655
189662
|
var A = n.split(",");
|
|
189656
|
-
return A.map(
|
|
189663
|
+
return A.map($XA);
|
|
189657
189664
|
}
|
|
189658
|
-
function
|
|
189665
|
+
function $XA(n) {
|
|
189659
189666
|
if (n.length === 0)
|
|
189660
189667
|
return null;
|
|
189661
189668
|
var A = n[0] === "@";
|
|
@@ -189672,11 +189679,11 @@ function wW(n) {
|
|
|
189672
189679
|
function wQ(n) {
|
|
189673
189680
|
return n / 3600 * Math.PI / 180;
|
|
189674
189681
|
}
|
|
189675
|
-
function
|
|
189682
|
+
function A_A(n) {
|
|
189676
189683
|
var A = n.getInt32(8, !1);
|
|
189677
189684
|
return A === 11 ? !1 : (A = n.getInt32(8, !0), A !== 11 && console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"), !0);
|
|
189678
189685
|
}
|
|
189679
|
-
function
|
|
189686
|
+
function e_A(n, A) {
|
|
189680
189687
|
return {
|
|
189681
189688
|
nFields: n.getInt32(8, A),
|
|
189682
189689
|
nSubgridFields: n.getInt32(24, A),
|
|
@@ -189691,9 +189698,9 @@ function $XA(n, A) {
|
|
|
189691
189698
|
function wU(n, A, e) {
|
|
189692
189699
|
return String.fromCharCode.apply(null, new Uint8Array(n.buffer.slice(A, e)));
|
|
189693
189700
|
}
|
|
189694
|
-
function
|
|
189701
|
+
function t_A(n, A, e, t) {
|
|
189695
189702
|
for (var i = 176, r = [], s = 0; s < A.nSubgrids; s++) {
|
|
189696
|
-
var o =
|
|
189703
|
+
var o = n_A(n, i, e), a = r_A(n, i, o, e, t), l = Math.round(
|
|
189697
189704
|
1 + (o.upperLongitude - o.lowerLongitude) / o.longitudeInterval
|
|
189698
189705
|
), D = Math.round(
|
|
189699
189706
|
1 + (o.upperLatitude - o.lowerLatitude) / o.latitudeInterval
|
|
@@ -189703,19 +189710,19 @@ function A_A(n, A, e, t) {
|
|
|
189703
189710
|
del: [wQ(o.longitudeInterval), wQ(o.latitudeInterval)],
|
|
189704
189711
|
lim: [l, D],
|
|
189705
189712
|
count: o.gridNodeCount,
|
|
189706
|
-
cvs:
|
|
189713
|
+
cvs: i_A(a)
|
|
189707
189714
|
});
|
|
189708
189715
|
var P = 16;
|
|
189709
189716
|
t === !1 && (P = 8), i += 176 + o.gridNodeCount * P;
|
|
189710
189717
|
}
|
|
189711
189718
|
return r;
|
|
189712
189719
|
}
|
|
189713
|
-
function
|
|
189720
|
+
function i_A(n) {
|
|
189714
189721
|
return n.map(function(A) {
|
|
189715
189722
|
return [wQ(A.longitudeShift), wQ(A.latitudeShift)];
|
|
189716
189723
|
});
|
|
189717
189724
|
}
|
|
189718
|
-
function
|
|
189725
|
+
function n_A(n, A, e) {
|
|
189719
189726
|
return {
|
|
189720
189727
|
name: wU(n, A + 8, A + 16).trim(),
|
|
189721
189728
|
parent: wU(n, A + 24, A + 24 + 8).trim(),
|
|
@@ -189728,7 +189735,7 @@ function t_A(n, A, e) {
|
|
|
189728
189735
|
gridNodeCount: n.getInt32(A + 168, e)
|
|
189729
189736
|
};
|
|
189730
189737
|
}
|
|
189731
|
-
function
|
|
189738
|
+
function r_A(n, A, e, t, i) {
|
|
189732
189739
|
var r = A + 176, s = 16;
|
|
189733
189740
|
i === !1 && (s = 8);
|
|
189734
189741
|
for (var o = [], a = 0; a < e.gridNodeCount; a++) {
|
|
@@ -189747,7 +189754,7 @@ function tP(n, A) {
|
|
|
189747
189754
|
if (l)
|
|
189748
189755
|
throw l;
|
|
189749
189756
|
};
|
|
189750
|
-
var e =
|
|
189757
|
+
var e = bXA(n);
|
|
189751
189758
|
if (typeof e != "object") {
|
|
189752
189759
|
A("Could not parse to valid json: " + n);
|
|
189753
189760
|
return;
|
|
@@ -189762,7 +189769,7 @@ function tP(n, A) {
|
|
|
189762
189769
|
i && (e.datum_params = e.datum_params || (i.towgs84 ? i.towgs84.split(",") : null), e.ellps = i.ellipse, e.datumName = i.datumName ? i.datumName : e.datumCode);
|
|
189763
189770
|
}
|
|
189764
189771
|
e.k0 = e.k0 || 1, e.axis = e.axis || "enu", e.ellps = e.ellps || "wgs84", e.lat1 = e.lat1 || e.lat0;
|
|
189765
|
-
var r =
|
|
189772
|
+
var r = ZXA(e.a, e.b, e.rf, e.ellps, e.sphere), s = GXA(r.a, r.b, r.rf, e.R_A), o = _XA(e.nadgrids), a = e.datum || VXA(
|
|
189766
189773
|
e.datumCode,
|
|
189767
189774
|
e.datum_params,
|
|
189768
189775
|
r.a,
|
|
@@ -189773,9 +189780,9 @@ function tP(n, A) {
|
|
|
189773
189780
|
);
|
|
189774
189781
|
uW(this, e), uW(this, t), this.a = r.a, this.b = r.b, this.rf = r.rf, this.sphere = r.sphere, this.es = s.es, this.e = s.e, this.ep2 = s.ep2, this.datum = a, "init" in this && typeof this.init == "function" && this.init(), A(null, this);
|
|
189775
189782
|
}
|
|
189776
|
-
tP.projections =
|
|
189783
|
+
tP.projections = HXA;
|
|
189777
189784
|
tP.projections.start();
|
|
189778
|
-
function
|
|
189785
|
+
function s_A(n, A) {
|
|
189779
189786
|
return n.datum_type !== A.datum_type || n.a !== A.a || Math.abs(n.es - A.es) > 5e-11 ? !1 : n.datum_type === Vf ? n.datum_params[0] === A.datum_params[0] && n.datum_params[1] === A.datum_params[1] && n.datum_params[2] === A.datum_params[2] : n.datum_type === qf ? n.datum_params[0] === A.datum_params[0] && n.datum_params[1] === A.datum_params[1] && n.datum_params[2] === A.datum_params[2] && n.datum_params[3] === A.datum_params[3] && n.datum_params[4] === A.datum_params[4] && n.datum_params[5] === A.datum_params[5] && n.datum_params[6] === A.datum_params[6] : !0;
|
|
189780
189787
|
}
|
|
189781
189788
|
function XoA(n, A, e) {
|
|
@@ -189817,7 +189824,7 @@ function _oA(n, A, e, t) {
|
|
|
189817
189824
|
z: b
|
|
189818
189825
|
};
|
|
189819
189826
|
}
|
|
189820
|
-
function
|
|
189827
|
+
function o_A(n, A, e) {
|
|
189821
189828
|
if (A === Vf)
|
|
189822
189829
|
return {
|
|
189823
189830
|
x: n.x + e[0],
|
|
@@ -189833,7 +189840,7 @@ function r_A(n, A, e) {
|
|
|
189833
189840
|
};
|
|
189834
189841
|
}
|
|
189835
189842
|
}
|
|
189836
|
-
function
|
|
189843
|
+
function a_A(n, A, e) {
|
|
189837
189844
|
if (A === Vf)
|
|
189838
189845
|
return {
|
|
189839
189846
|
x: n.x - e[0],
|
|
@@ -189852,8 +189859,8 @@ function s_A(n, A, e) {
|
|
|
189852
189859
|
function vy(n) {
|
|
189853
189860
|
return n === Vf || n === qf;
|
|
189854
189861
|
}
|
|
189855
|
-
function
|
|
189856
|
-
if (
|
|
189862
|
+
function l_A(n, A, e) {
|
|
189863
|
+
if (s_A(n, A) || n.datum_type === uU || A.datum_type === uU)
|
|
189857
189864
|
return e;
|
|
189858
189865
|
var t = n.a, i = n.es;
|
|
189859
189866
|
if (n.datum_type === dE) {
|
|
@@ -189863,9 +189870,9 @@ function o_A(n, A, e) {
|
|
|
189863
189870
|
t = lW, i = DW;
|
|
189864
189871
|
}
|
|
189865
189872
|
var s = A.a, o = A.b, a = A.es;
|
|
189866
|
-
if (A.datum_type === dE && (s = lW, o =
|
|
189873
|
+
if (A.datum_type === dE && (s = lW, o = oXA, a = DW), i === a && t === s && !vy(n.datum_type) && !vy(A.datum_type))
|
|
189867
189874
|
return e;
|
|
189868
|
-
if (e = XoA(e, i, t), vy(n.datum_type) && (e =
|
|
189875
|
+
if (e = XoA(e, i, t), vy(n.datum_type) && (e = o_A(e, n.datum_type, n.datum_params)), vy(A.datum_type) && (e = a_A(e, A.datum_type, A.datum_params)), e = _oA(e, a, s, o), A.datum_type === dE) {
|
|
189869
189876
|
var l = fW(A, !0, e);
|
|
189870
189877
|
if (l !== 0)
|
|
189871
189878
|
return;
|
|
@@ -189890,13 +189897,13 @@ function fW(n, A, e) {
|
|
|
189890
189897
|
}
|
|
189891
189898
|
for (var a = o.grid.subgrids, l = 0, D = a.length; l < D; l++) {
|
|
189892
189899
|
var P = a[l], c = (Math.abs(P.del[1]) + Math.abs(P.del[0])) / 1e4, h = P.ll[0] - c, g = P.ll[1] - c, u = P.ll[0] + (P.lim[0] - 1) * P.del[0] + c, Q = P.ll[1] + (P.lim[1] - 1) * P.del[1] + c;
|
|
189893
|
-
if (!(g > t.y || h > t.x || Q < t.y || u < t.x) && (i =
|
|
189900
|
+
if (!(g > t.y || h > t.x || Q < t.y || u < t.x) && (i = D_A(t, A, P), !isNaN(i.x)))
|
|
189894
189901
|
break A;
|
|
189895
189902
|
}
|
|
189896
189903
|
}
|
|
189897
189904
|
return isNaN(i.x) ? (console.log("Failed to find a grid shift table for location '" + -t.x * kl + " " + t.y * kl + " tried: '" + r + "'"), -1) : (e.x = -i.x, e.y = i.y, 0);
|
|
189898
189905
|
}
|
|
189899
|
-
function
|
|
189906
|
+
function D_A(n, A, e) {
|
|
189900
189907
|
var t = { x: Number.NaN, y: Number.NaN };
|
|
189901
189908
|
if (isNaN(n.x))
|
|
189902
189909
|
return t;
|
|
@@ -189971,7 +189978,7 @@ function $oA(n) {
|
|
|
189971
189978
|
};
|
|
189972
189979
|
return n.length > 2 && (A.z = n[2]), n.length > 3 && (A.m = n[3]), A;
|
|
189973
189980
|
}
|
|
189974
|
-
function
|
|
189981
|
+
function P_A(n) {
|
|
189975
189982
|
CW(n.x), CW(n.y);
|
|
189976
189983
|
}
|
|
189977
189984
|
function CW(n) {
|
|
@@ -189983,7 +189990,7 @@ function CW(n) {
|
|
|
189983
189990
|
if (typeof n != "number" || n !== n || !isFinite(n))
|
|
189984
189991
|
throw new TypeError("coordinates must be finite numbers");
|
|
189985
189992
|
}
|
|
189986
|
-
function
|
|
189993
|
+
function c_A(n, A) {
|
|
189987
189994
|
return (n.datum.datum_type === Vf || n.datum.datum_type === qf || n.datum.datum_type === dE) && A.datumCode !== "WGS84" || (A.datum.datum_type === Vf || A.datum.datum_type === qf || A.datum.datum_type === dE) && n.datumCode !== "WGS84";
|
|
189988
189995
|
}
|
|
189989
189996
|
function GO(n, A, e, t) {
|
|
@@ -189995,7 +190002,7 @@ function GO(n, A, e, t) {
|
|
|
189995
190002
|
m: e.m
|
|
189996
190003
|
};
|
|
189997
190004
|
var r = e.z !== void 0;
|
|
189998
|
-
if (
|
|
190005
|
+
if (P_A(e), n.datum && A.datum && c_A(n, A) && (i = new tP("WGS84"), e = GO(n, i, e, t), n = i), t && n.axis !== "enu" && (e = vW(n, !1, e)), n.projName === "longlat")
|
|
189999
190006
|
e = {
|
|
190000
190007
|
x: e.x * ys,
|
|
190001
190008
|
y: e.y * ys,
|
|
@@ -190007,7 +190014,7 @@ function GO(n, A, e, t) {
|
|
|
190007
190014
|
z: e.z || 0
|
|
190008
190015
|
}), e = n.inverse(e), !e)
|
|
190009
190016
|
return;
|
|
190010
|
-
if (n.from_greenwich && (e.x += n.from_greenwich), e =
|
|
190017
|
+
if (n.from_greenwich && (e.x += n.from_greenwich), e = l_A(n.datum, A.datum, e), !!e)
|
|
190011
190018
|
return e = /** @type {import('./core').InterfaceCoordinates} */
|
|
190012
190019
|
e, A.from_greenwich && (e = {
|
|
190013
190020
|
x: e.x - A.from_greenwich,
|
|
@@ -190054,7 +190061,7 @@ function Cy(n) {
|
|
|
190054
190061
|
n
|
|
190055
190062
|
);
|
|
190056
190063
|
}
|
|
190057
|
-
function
|
|
190064
|
+
function h_A(n, A, e) {
|
|
190058
190065
|
var t, i, r = !1, s;
|
|
190059
190066
|
return typeof A > "u" ? (i = Cy(n), t = EW, r = !0) : (typeof /** @type {?} */
|
|
190060
190067
|
A.x < "u" || Array.isArray(A)) && (e = /** @type {T} */
|
|
@@ -190084,18 +190091,18 @@ function P_A(n, A, e) {
|
|
|
190084
190091
|
}, r && (s.oProj = i), s);
|
|
190085
190092
|
}
|
|
190086
190093
|
var BW = 6, AaA = "AJSAJS", eaA = "AFAFAF", YC = 65, vl = 73, jD = 79, Vp = 86, qp = 90;
|
|
190087
|
-
const
|
|
190094
|
+
const g_A = {
|
|
190088
190095
|
forward: taA,
|
|
190089
|
-
inverse:
|
|
190096
|
+
inverse: u_A,
|
|
190090
190097
|
toPoint: iaA
|
|
190091
190098
|
};
|
|
190092
190099
|
function taA(n, A) {
|
|
190093
|
-
return A = A || 5, Q_A(
|
|
190100
|
+
return A = A || 5, f_A(Q_A({
|
|
190094
190101
|
lat: n[1],
|
|
190095
190102
|
lon: n[0]
|
|
190096
190103
|
}), A);
|
|
190097
190104
|
}
|
|
190098
|
-
function
|
|
190105
|
+
function u_A(n) {
|
|
190099
190106
|
var A = W6(raA(n.toUpperCase()));
|
|
190100
190107
|
return A.lat && A.lon ? [A.lon, A.lat, A.lon, A.lat] : [A.left, A.bottom, A.right, A.top];
|
|
190101
190108
|
}
|
|
@@ -190109,7 +190116,7 @@ function RL(n) {
|
|
|
190109
190116
|
function pW(n) {
|
|
190110
190117
|
return 180 * (n / Math.PI);
|
|
190111
190118
|
}
|
|
190112
|
-
function
|
|
190119
|
+
function Q_A(n) {
|
|
190113
190120
|
var A = n.lat, e = n.lon, t = 6378137, i = 669438e-8, r = 0.9996, s, o, a, l, D, P, c, h = RL(A), g = RL(e), u, Q;
|
|
190114
190121
|
Q = Math.floor((e + 180) / 6) + 1, e === 180 && (Q = 60), A >= 56 && A < 64 && e >= 3 && e < 12 && (Q = 32), A >= 72 && A < 84 && (e >= 0 && e < 9 ? Q = 31 : e >= 9 && e < 21 ? Q = 33 : e >= 21 && e < 33 ? Q = 35 : e >= 33 && e < 42 && (Q = 37)), s = (Q - 1) * 6 - 180 + 3, u = RL(s), o = i / (1 - i), a = t / Math.sqrt(1 - i * Math.sin(h) * Math.sin(h)), l = Math.tan(h) * Math.tan(h), D = o * Math.cos(h) * Math.cos(h), P = Math.cos(h) * (g - u), c = t * ((1 - i / 4 - 3 * i * i / 64 - 5 * i * i * i / 256) * h - (3 * i / 8 + 3 * i * i / 32 + 45 * i * i * i / 1024) * Math.sin(2 * h) + (15 * i * i / 256 + 45 * i * i * i / 1024) * Math.sin(4 * h) - 35 * i * i * i / 3072 * Math.sin(6 * h));
|
|
190115
190122
|
var w = r * a * (P + (1 - l + D) * P * P * P / 6 + (5 - 18 * l + l * l + 72 * D - 58 * o) * P * P * P * P * P / 120) + 5e5, C = r * (c + a * Math.tan(h) * (P * P / 2 + (5 - l + 9 * D + 4 * D * D) * P * P * P * P / 24 + (61 - 58 * l + l * l + 600 * D - 330 * o) * P * P * P * P * P * P / 720));
|
|
@@ -190117,7 +190124,7 @@ function g_A(n) {
|
|
|
190117
190124
|
northing: Math.round(C),
|
|
190118
190125
|
easting: Math.round(w),
|
|
190119
190126
|
zoneNumber: Q,
|
|
190120
|
-
zoneLetter:
|
|
190127
|
+
zoneLetter: w_A(A)
|
|
190121
190128
|
};
|
|
190122
190129
|
}
|
|
190123
190130
|
function W6(n) {
|
|
@@ -190151,23 +190158,23 @@ function W6(n) {
|
|
|
190151
190158
|
};
|
|
190152
190159
|
return z;
|
|
190153
190160
|
}
|
|
190154
|
-
function
|
|
190161
|
+
function w_A(n) {
|
|
190155
190162
|
var A = "Z";
|
|
190156
190163
|
return 84 >= n && n >= 72 ? A = "X" : 72 > n && n >= 64 ? A = "W" : 64 > n && n >= 56 ? A = "V" : 56 > n && n >= 48 ? A = "U" : 48 > n && n >= 40 ? A = "T" : 40 > n && n >= 32 ? A = "S" : 32 > n && n >= 24 ? A = "R" : 24 > n && n >= 16 ? A = "Q" : 16 > n && n >= 8 ? A = "P" : 8 > n && n >= 0 ? A = "N" : 0 > n && n >= -8 ? A = "M" : -8 > n && n >= -16 ? A = "L" : -16 > n && n >= -24 ? A = "K" : -24 > n && n >= -32 ? A = "J" : -32 > n && n >= -40 ? A = "H" : -40 > n && n >= -48 ? A = "G" : -48 > n && n >= -56 ? A = "F" : -56 > n && n >= -64 ? A = "E" : -64 > n && n >= -72 ? A = "D" : -72 > n && n >= -80 && (A = "C"), A;
|
|
190157
190164
|
}
|
|
190158
|
-
function
|
|
190165
|
+
function f_A(n, A) {
|
|
190159
190166
|
var e = "00000" + n.easting, t = "00000" + n.northing;
|
|
190160
|
-
return n.zoneNumber + n.zoneLetter +
|
|
190167
|
+
return n.zoneNumber + n.zoneLetter + d_A(n.easting, n.northing, n.zoneNumber) + e.substr(e.length - 5, A) + t.substr(t.length - 5, A);
|
|
190161
190168
|
}
|
|
190162
|
-
function
|
|
190169
|
+
function d_A(n, A, e) {
|
|
190163
190170
|
var t = naA(e), i = Math.floor(n / 1e5), r = Math.floor(A / 1e5) % 20;
|
|
190164
|
-
return
|
|
190171
|
+
return v_A(i, r, t);
|
|
190165
190172
|
}
|
|
190166
190173
|
function naA(n) {
|
|
190167
190174
|
var A = n % BW;
|
|
190168
190175
|
return A === 0 && (A = BW), A;
|
|
190169
190176
|
}
|
|
190170
|
-
function
|
|
190177
|
+
function v_A(n, A, e) {
|
|
190171
190178
|
var t = e - 1, i = AaA.charCodeAt(t), r = eaA.charCodeAt(t), s = i + n - 1, o = r + A, a = !1;
|
|
190172
190179
|
s > qp && (s = s - qp + YC - 1, a = !0), (s === vl || i < vl && s > vl || (s > vl || i < vl) && a) && s++, (s === jD || i < jD && s > jD || (s > jD || i < jD) && a) && (s++, s === vl && s++), s > qp && (s = s - qp + YC - 1), o > Vp ? (o = o - Vp + YC - 1, a = !0) : a = !1, (o === vl || r < vl && o > vl || (o > vl || r < vl) && a) && o++, (o === jD || r < jD && o > jD || (o > jD || r < jD) && a) && (o++, o === vl && o++), o > Vp && (o = o - Vp + YC - 1);
|
|
190173
190180
|
var l = String.fromCharCode(s) + String.fromCharCode(o);
|
|
@@ -190188,7 +190195,7 @@ function raA(n) {
|
|
|
190188
190195
|
if (o <= "A" || o === "B" || o === "Y" || o >= "Z" || o === "I" || o === "O")
|
|
190189
190196
|
throw "MGRSPoint zone letter " + o + " not handled: " + n;
|
|
190190
190197
|
e = n.substring(r, r += 2);
|
|
190191
|
-
for (var a = naA(s), l =
|
|
190198
|
+
for (var a = naA(s), l = C_A(e.charAt(0), a), D = E_A(e.charAt(1), a); D < B_A(o); )
|
|
190192
190199
|
D += 2e6;
|
|
190193
190200
|
var P = A - r;
|
|
190194
190201
|
if (P % 2 !== 0)
|
|
@@ -190205,7 +190212,7 @@ northing meters` + n;
|
|
|
190205
190212
|
accuracy: u
|
|
190206
190213
|
};
|
|
190207
190214
|
}
|
|
190208
|
-
function
|
|
190215
|
+
function C_A(n, A) {
|
|
190209
190216
|
for (var e = AaA.charCodeAt(A - 1), t = 1e5, i = !1; e !== n.charCodeAt(0); ) {
|
|
190210
190217
|
if (e++, e === vl && e++, e === jD && e++, e > qp) {
|
|
190211
190218
|
if (i)
|
|
@@ -190216,7 +190223,7 @@ function d_A(n, A) {
|
|
|
190216
190223
|
}
|
|
190217
190224
|
return t;
|
|
190218
190225
|
}
|
|
190219
|
-
function
|
|
190226
|
+
function E_A(n, A) {
|
|
190220
190227
|
if (n > "V")
|
|
190221
190228
|
throw "MGRSPoint given invalid Northing " + n;
|
|
190222
190229
|
for (var e = eaA.charCodeAt(A - 1), t = 0, i = !1; e !== n.charCodeAt(0); ) {
|
|
@@ -190229,7 +190236,7 @@ function v_A(n, A) {
|
|
|
190229
190236
|
}
|
|
190230
190237
|
return t;
|
|
190231
190238
|
}
|
|
190232
|
-
function
|
|
190239
|
+
function B_A(n) {
|
|
190233
190240
|
var A;
|
|
190234
190241
|
switch (n) {
|
|
190235
190242
|
case "C":
|
|
@@ -190319,29 +190326,29 @@ qE.fromMGRS = function(n) {
|
|
|
190319
190326
|
qE.prototype.toMGRS = function(n) {
|
|
190320
190327
|
return taA([this.x, this.y], n);
|
|
190321
190328
|
};
|
|
190322
|
-
var
|
|
190329
|
+
var p_A = 1, m_A = 0.25, mW = 0.046875, IW = 0.01953125, MW = 0.01068115234375, I_A = 0.75, M_A = 0.46875, T_A = 0.013020833333333334, y_A = 0.007120768229166667, O_A = 0.3645833333333333, k_A = 0.005696614583333333, b_A = 0.3076171875;
|
|
190323
190330
|
function X6(n) {
|
|
190324
190331
|
var A = [];
|
|
190325
|
-
A[0] =
|
|
190332
|
+
A[0] = p_A - n * (m_A + n * (mW + n * (IW + n * MW))), A[1] = n * (I_A - n * (mW + n * (IW + n * MW)));
|
|
190326
190333
|
var e = n * n;
|
|
190327
|
-
return A[2] = e * (
|
|
190334
|
+
return A[2] = e * (M_A - n * (T_A + n * y_A)), e *= n, A[3] = e * (O_A - n * k_A), A[4] = e * n * b_A, A;
|
|
190328
190335
|
}
|
|
190329
190336
|
function Q0(n, A, e, t) {
|
|
190330
190337
|
return e *= A, A *= A, t[0] * n - e * (t[1] + A * (t[2] + A * (t[3] + A * t[4])));
|
|
190331
190338
|
}
|
|
190332
|
-
var
|
|
190339
|
+
var z_A = 20;
|
|
190333
190340
|
function _6(n, A, e) {
|
|
190334
|
-
for (var t = 1 / (1 - A), i = n, r =
|
|
190341
|
+
for (var t = 1 / (1 - A), i = n, r = z_A; r; --r) {
|
|
190335
190342
|
var s = Math.sin(i), o = 1 - A * s * s;
|
|
190336
190343
|
if (o = (Q0(i, s, Math.cos(i), e) - n) * (o * Math.sqrt(o)) * t, i -= o, Math.abs(o) < oi)
|
|
190337
190344
|
return i;
|
|
190338
190345
|
}
|
|
190339
190346
|
return i;
|
|
190340
190347
|
}
|
|
190341
|
-
function
|
|
190348
|
+
function N_A() {
|
|
190342
190349
|
this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en = X6(this.es), this.ml0 = Q0(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
|
|
190343
190350
|
}
|
|
190344
|
-
function
|
|
190351
|
+
function x_A(n) {
|
|
190345
190352
|
var A = n.x, e = n.y, t = Qi(A - this.long0, this.over), i, r, s, o = Math.sin(e), a = Math.cos(e);
|
|
190346
190353
|
if (this.es) {
|
|
190347
190354
|
var D = a * t, P = Math.pow(D, 2), c = this.ep2 * Math.pow(a, 2), h = Math.pow(c, 2), g = Math.abs(a) > oi ? Math.tan(e) : 0, u = Math.pow(g, 2), Q = Math.pow(u, 2);
|
|
@@ -190362,7 +190369,7 @@ function z_A(n) {
|
|
|
190362
190369
|
}
|
|
190363
190370
|
return n.x = r, n.y = s, n;
|
|
190364
190371
|
}
|
|
190365
|
-
function
|
|
190372
|
+
function L_A(n) {
|
|
190366
190373
|
var A, e, t, i, r = (n.x - this.x0) * (1 / this.a), s = (n.y - this.y0) * (1 / this.a);
|
|
190367
190374
|
if (this.es)
|
|
190368
190375
|
if (A = this.ml0 + s / this.k0, e = _6(A, this.es, this.en), Math.abs(e) < Vt) {
|
|
@@ -190378,12 +190385,12 @@ function N_A(n) {
|
|
|
190378
190385
|
}
|
|
190379
190386
|
return n.x = i, n.y = t, n;
|
|
190380
190387
|
}
|
|
190381
|
-
var
|
|
190388
|
+
var U_A = ["Fast_Transverse_Mercator", "Fast Transverse Mercator"];
|
|
190382
190389
|
const t1 = {
|
|
190383
|
-
init:
|
|
190384
|
-
forward:
|
|
190385
|
-
inverse:
|
|
190386
|
-
names:
|
|
190390
|
+
init: N_A,
|
|
190391
|
+
forward: x_A,
|
|
190392
|
+
inverse: L_A,
|
|
190393
|
+
names: U_A
|
|
190387
190394
|
};
|
|
190388
190395
|
function saA(n) {
|
|
190389
190396
|
var A = Math.exp(n);
|
|
@@ -190394,53 +190401,53 @@ function Ml(n, A) {
|
|
|
190394
190401
|
var e = Math.max(n, A), t = Math.min(n, A) / (e || 1);
|
|
190395
190402
|
return e * Math.sqrt(1 + Math.pow(t, 2));
|
|
190396
190403
|
}
|
|
190397
|
-
function
|
|
190404
|
+
function j_A(n) {
|
|
190398
190405
|
var A = 1 + n, e = A - 1;
|
|
190399
190406
|
return e === 0 ? n : n * Math.log(A) / e;
|
|
190400
190407
|
}
|
|
190401
|
-
function
|
|
190408
|
+
function S_A(n) {
|
|
190402
190409
|
var A = Math.abs(n);
|
|
190403
|
-
return A =
|
|
190410
|
+
return A = j_A(A * (1 + A / (Ml(1, A) + 1))), n < 0 ? -A : A;
|
|
190404
190411
|
}
|
|
190405
190412
|
function $6(n, A) {
|
|
190406
190413
|
for (var e = 2 * Math.cos(2 * A), t = n.length - 1, i = n[t], r = 0, s; --t >= 0; )
|
|
190407
190414
|
s = -r + e * i + n[t], r = i, i = s;
|
|
190408
190415
|
return A + s * Math.sin(2 * A);
|
|
190409
190416
|
}
|
|
190410
|
-
function
|
|
190417
|
+
function F_A(n, A) {
|
|
190411
190418
|
for (var e = 2 * Math.cos(A), t = n.length - 1, i = n[t], r = 0, s; --t >= 0; )
|
|
190412
190419
|
s = -r + e * i + n[t], r = i, i = s;
|
|
190413
190420
|
return Math.sin(A) * s;
|
|
190414
190421
|
}
|
|
190415
|
-
function
|
|
190422
|
+
function R_A(n) {
|
|
190416
190423
|
var A = Math.exp(n);
|
|
190417
190424
|
return A = (A + 1 / A) / 2, A;
|
|
190418
190425
|
}
|
|
190419
190426
|
function oaA(n, A, e) {
|
|
190420
|
-
for (var t = Math.sin(A), i = Math.cos(A), r = saA(e), s =
|
|
190427
|
+
for (var t = Math.sin(A), i = Math.cos(A), r = saA(e), s = R_A(e), o = 2 * i * s, a = -2 * t * r, l = n.length - 1, D = n[l], P = 0, c = 0, h = 0, g, u; --l >= 0; )
|
|
190421
190428
|
g = c, u = P, c = D, P = h, D = -g + o * c - a * P + n[l], h = -u + a * c + o * P;
|
|
190422
190429
|
return o = t * s, a = i * r, [o * D - a * h, o * h + a * D];
|
|
190423
190430
|
}
|
|
190424
|
-
function
|
|
190431
|
+
function Y_A() {
|
|
190425
190432
|
if (!this.approx && (isNaN(this.es) || this.es <= 0))
|
|
190426
190433
|
throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');
|
|
190427
190434
|
this.approx && (t1.init.apply(this), this.forward = t1.forward, this.inverse = t1.inverse), this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.cgb = [], this.cbg = [], this.utg = [], this.gtu = [];
|
|
190428
190435
|
var n = this.es / (1 + Math.sqrt(1 - this.es)), A = n / (2 - n), e = A;
|
|
190429
190436
|
this.cgb[0] = A * (2 + A * (-2 / 3 + A * (-2 + A * (116 / 45 + A * (26 / 45 + A * (-2854 / 675)))))), this.cbg[0] = A * (-2 + A * (2 / 3 + A * (4 / 3 + A * (-82 / 45 + A * (32 / 45 + A * (4642 / 4725)))))), e = e * A, this.cgb[1] = e * (7 / 3 + A * (-8 / 5 + A * (-227 / 45 + A * (2704 / 315 + A * (2323 / 945))))), this.cbg[1] = e * (5 / 3 + A * (-16 / 15 + A * (-13 / 9 + A * (904 / 315 + A * (-1522 / 945))))), e = e * A, this.cgb[2] = e * (56 / 15 + A * (-136 / 35 + A * (-1262 / 105 + A * (73814 / 2835)))), this.cbg[2] = e * (-26 / 15 + A * (34 / 21 + A * (8 / 5 + A * (-12686 / 2835)))), e = e * A, this.cgb[3] = e * (4279 / 630 + A * (-332 / 35 + A * (-399572 / 14175))), this.cbg[3] = e * (1237 / 630 + A * (-12 / 5 + A * (-24832 / 14175))), e = e * A, this.cgb[4] = e * (4174 / 315 + A * (-144838 / 6237)), this.cbg[4] = e * (-734 / 315 + A * (109598 / 31185)), e = e * A, this.cgb[5] = e * (601676 / 22275), this.cbg[5] = e * (444337 / 155925), e = Math.pow(A, 2), this.Qn = this.k0 / (1 + A) * (1 + e * (1 / 4 + e * (1 / 64 + e / 256))), this.utg[0] = A * (-0.5 + A * (2 / 3 + A * (-37 / 96 + A * (1 / 360 + A * (81 / 512 + A * (-96199 / 604800)))))), this.gtu[0] = A * (0.5 + A * (-2 / 3 + A * (5 / 16 + A * (41 / 180 + A * (-127 / 288 + A * (7891 / 37800)))))), this.utg[1] = e * (-1 / 48 + A * (-1 / 15 + A * (437 / 1440 + A * (-46 / 105 + A * (1118711 / 3870720))))), this.gtu[1] = e * (13 / 48 + A * (-3 / 5 + A * (557 / 1440 + A * (281 / 630 + A * (-1983433 / 1935360))))), e = e * A, this.utg[2] = e * (-17 / 480 + A * (37 / 840 + A * (209 / 4480 + A * (-5569 / 90720)))), this.gtu[2] = e * (61 / 240 + A * (-103 / 140 + A * (15061 / 26880 + A * (167603 / 181440)))), e = e * A, this.utg[3] = e * (-4397 / 161280 + A * (11 / 504 + A * (830251 / 7257600))), this.gtu[3] = e * (49561 / 161280 + A * (-179 / 168 + A * (6601661 / 7257600))), e = e * A, this.utg[4] = e * (-4583 / 161280 + A * (108847 / 3991680)), this.gtu[4] = e * (34729 / 80640 + A * (-3418889 / 1995840)), e = e * A, this.utg[5] = e * (-20648693 / 638668800), this.gtu[5] = e * (212378941 / 319334400);
|
|
190430
190437
|
var t = $6(this.cbg, this.lat0);
|
|
190431
|
-
this.Zb = -this.Qn * (t +
|
|
190438
|
+
this.Zb = -this.Qn * (t + F_A(this.gtu, 2 * t));
|
|
190432
190439
|
}
|
|
190433
|
-
function
|
|
190440
|
+
function H_A(n) {
|
|
190434
190441
|
var A = Qi(n.x - this.long0, this.over), e = n.y;
|
|
190435
190442
|
e = $6(this.cbg, e);
|
|
190436
190443
|
var t = Math.sin(e), i = Math.cos(e), r = Math.sin(A), s = Math.cos(A);
|
|
190437
|
-
e = Math.atan2(t, s * i), A = Math.atan2(r * i, Ml(t, i * s)), A =
|
|
190444
|
+
e = Math.atan2(t, s * i), A = Math.atan2(r * i, Ml(t, i * s)), A = S_A(Math.tan(A));
|
|
190438
190445
|
var o = oaA(this.gtu, 2 * e, 2 * A);
|
|
190439
190446
|
e = e + o[0], A = A + o[1];
|
|
190440
190447
|
var a, l;
|
|
190441
190448
|
return Math.abs(A) <= 2.623395162778 ? (a = this.a * (this.Qn * A) + this.x0, l = this.a * (this.Qn * e + this.Zb) + this.y0) : (a = 1 / 0, l = 1 / 0), n.x = a, n.y = l, n;
|
|
190442
190449
|
}
|
|
190443
|
-
function
|
|
190450
|
+
function J_A(n) {
|
|
190444
190451
|
var A = (n.x - this.x0) * (1 / this.a), e = (n.y - this.y0) * (1 / this.a);
|
|
190445
190452
|
e = (e - this.Zb) / this.Qn, A = A / this.Qn;
|
|
190446
190453
|
var t, i;
|
|
@@ -190453,14 +190460,14 @@ function Y_A(n) {
|
|
|
190453
190460
|
t = 1 / 0, i = 1 / 0;
|
|
190454
190461
|
return n.x = t, n.y = i, n;
|
|
190455
190462
|
}
|
|
190456
|
-
var
|
|
190463
|
+
var G_A = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "Gauss Kruger", "Gauss_Kruger", "tmerc"];
|
|
190457
190464
|
const i1 = {
|
|
190458
|
-
init:
|
|
190459
|
-
forward:
|
|
190460
|
-
inverse:
|
|
190461
|
-
names:
|
|
190465
|
+
init: Y_A,
|
|
190466
|
+
forward: H_A,
|
|
190467
|
+
inverse: J_A,
|
|
190468
|
+
names: G_A
|
|
190462
190469
|
};
|
|
190463
|
-
function
|
|
190470
|
+
function Z_A(n, A) {
|
|
190464
190471
|
if (n === void 0) {
|
|
190465
190472
|
if (n = Math.floor((Qi(A) + Math.PI) * 30 / Math.PI) + 1, n < 0)
|
|
190466
190473
|
return 0;
|
|
@@ -190469,49 +190476,49 @@ function J_A(n, A) {
|
|
|
190469
190476
|
}
|
|
190470
190477
|
return n;
|
|
190471
190478
|
}
|
|
190472
|
-
var
|
|
190473
|
-
function
|
|
190474
|
-
var n =
|
|
190479
|
+
var K_A = "etmerc";
|
|
190480
|
+
function V_A() {
|
|
190481
|
+
var n = Z_A(this.zone, this.long0);
|
|
190475
190482
|
if (n === void 0)
|
|
190476
190483
|
throw new Error("unknown utm zone");
|
|
190477
190484
|
this.lat0 = 0, this.long0 = (6 * Math.abs(n) - 183) * ys, this.x0 = 5e5, this.y0 = this.utmSouth ? 1e7 : 0, this.k0 = 0.9996, i1.init.apply(this), this.forward = i1.forward, this.inverse = i1.inverse;
|
|
190478
190485
|
}
|
|
190479
|
-
var
|
|
190480
|
-
const
|
|
190481
|
-
init:
|
|
190482
|
-
names:
|
|
190483
|
-
dependsOn:
|
|
190486
|
+
var q_A = ["Universal Transverse Mercator System", "utm"];
|
|
190487
|
+
const W_A = {
|
|
190488
|
+
init: V_A,
|
|
190489
|
+
names: q_A,
|
|
190490
|
+
dependsOn: K_A
|
|
190484
190491
|
};
|
|
190485
190492
|
function AF(n, A) {
|
|
190486
190493
|
return Math.pow((1 - n) / (1 + n), A);
|
|
190487
190494
|
}
|
|
190488
|
-
var
|
|
190489
|
-
function
|
|
190495
|
+
var X_A = 20;
|
|
190496
|
+
function __A() {
|
|
190490
190497
|
var n = Math.sin(this.lat0), A = Math.cos(this.lat0);
|
|
190491
190498
|
A *= A, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * n * n), this.C = Math.sqrt(1 + this.es * A * A / (1 - this.es)), this.phic0 = Math.asin(n / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + pr) / (Math.pow(Math.tan(0.5 * this.lat0 + pr), this.C) * AF(this.e * n, this.ratexp));
|
|
190492
190499
|
}
|
|
190493
|
-
function
|
|
190500
|
+
function $_A(n) {
|
|
190494
190501
|
var A = n.x, e = n.y;
|
|
190495
190502
|
return n.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * e + pr), this.C) * AF(this.e * Math.sin(e), this.ratexp)) - Vt, n.x = this.C * A, n;
|
|
190496
190503
|
}
|
|
190497
|
-
function
|
|
190498
|
-
for (var A = 1e-14, e = n.x / this.C, t = n.y, i = Math.pow(Math.tan(0.5 * t + pr) / this.K, 1 / this.C), r =
|
|
190504
|
+
function A$A(n) {
|
|
190505
|
+
for (var A = 1e-14, e = n.x / this.C, t = n.y, i = Math.pow(Math.tan(0.5 * t + pr) / this.K, 1 / this.C), r = X_A; r > 0 && (t = 2 * Math.atan(i * AF(this.e * Math.sin(n.y), -0.5 * this.e)) - Vt, !(Math.abs(t - n.y) < A)); --r)
|
|
190499
190506
|
n.y = t;
|
|
190500
190507
|
return r ? (n.x = e, n.y = t, n) : null;
|
|
190501
190508
|
}
|
|
190502
190509
|
const eF = {
|
|
190503
|
-
init:
|
|
190504
|
-
forward:
|
|
190505
|
-
inverse:
|
|
190510
|
+
init: __A,
|
|
190511
|
+
forward: $_A,
|
|
190512
|
+
inverse: A$A
|
|
190506
190513
|
};
|
|
190507
|
-
function $
|
|
190514
|
+
function e$A() {
|
|
190508
190515
|
eF.init.apply(this), this.rc && (this.sinc0 = Math.sin(this.phic0), this.cosc0 = Math.cos(this.phic0), this.R2 = 2 * this.rc, this.title || (this.title = "Oblique Stereographic Alternative"));
|
|
190509
190516
|
}
|
|
190510
|
-
function
|
|
190517
|
+
function t$A(n) {
|
|
190511
190518
|
var A, e, t, i;
|
|
190512
190519
|
return n.x = Qi(n.x - this.long0, this.over), eF.forward.apply(this, [n]), A = Math.sin(n.y), e = Math.cos(n.y), t = Math.cos(n.x), i = this.k0 * this.R2 / (1 + this.sinc0 * A + this.cosc0 * e * t), n.x = i * e * Math.sin(n.x), n.y = i * (this.cosc0 * A - this.sinc0 * e * t), n.x = this.a * n.x + this.x0, n.y = this.a * n.y + this.y0, n;
|
|
190513
190520
|
}
|
|
190514
|
-
function
|
|
190521
|
+
function i$A(n) {
|
|
190515
190522
|
var A, e, t, i, r;
|
|
190516
190523
|
if (n.x = (n.x - this.x0) / this.a, n.y = (n.y - this.y0) / this.a, n.x /= this.k0, n.y /= this.k0, r = Ml(n.x, n.y)) {
|
|
190517
190524
|
var s = 2 * Math.atan2(r, this.R2);
|
|
@@ -190520,24 +190527,24 @@ function e$A(n) {
|
|
|
190520
190527
|
i = this.phic0, t = 0;
|
|
190521
190528
|
return n.x = t, n.y = i, eF.inverse.apply(this, [n]), n.x = Qi(n.x + this.long0, this.over), n;
|
|
190522
190529
|
}
|
|
190523
|
-
var
|
|
190524
|
-
const
|
|
190525
|
-
init: $
|
|
190526
|
-
forward:
|
|
190527
|
-
inverse:
|
|
190528
|
-
names:
|
|
190530
|
+
var n$A = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
|
|
190531
|
+
const r$A = {
|
|
190532
|
+
init: e$A,
|
|
190533
|
+
forward: t$A,
|
|
190534
|
+
inverse: i$A,
|
|
190535
|
+
names: n$A
|
|
190529
190536
|
};
|
|
190530
190537
|
function tF(n, A, e) {
|
|
190531
190538
|
return A *= e, Math.tan(0.5 * (Vt + n)) * Math.pow((1 - A) / (1 + A), 0.5 * e);
|
|
190532
190539
|
}
|
|
190533
|
-
function
|
|
190540
|
+
function s$A() {
|
|
190534
190541
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= oi && (this.k0 = 0.5 * (1 + nM(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= oi && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= oi && Math.abs(Math.cos(this.lat_ts)) > oi && (this.k0 = 0.5 * this.cons * rh(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / YP(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = rh(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(tF(this.lat0, this.sinlat0, this.e)) - Vt, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
|
|
190535
190542
|
}
|
|
190536
|
-
function
|
|
190543
|
+
function o$A(n) {
|
|
190537
190544
|
var A = n.x, e = n.y, t = Math.sin(e), i = Math.cos(e), r, s, o, a, l, D, P = Qi(A - this.long0, this.over);
|
|
190538
190545
|
return Math.abs(Math.abs(A - this.long0) - Math.PI) <= oi && Math.abs(e + this.lat0) <= oi ? (n.x = NaN, n.y = NaN, n) : this.sphere ? (r = 2 * this.k0 / (1 + this.sinlat0 * t + this.coslat0 * i * Math.cos(P)), n.x = this.a * r * i * Math.sin(P) + this.x0, n.y = this.a * r * (this.coslat0 * t - this.sinlat0 * i * Math.cos(P)) + this.y0, n) : (s = 2 * Math.atan(tF(e, t, this.e)) - Vt, a = Math.cos(s), o = Math.sin(s), Math.abs(this.coslat0) <= oi ? (l = YP(this.e, e * this.con, this.con * t), D = 2 * this.a * this.k0 * l / this.cons, n.x = this.x0 + D * Math.sin(A - this.long0), n.y = this.y0 - this.con * D * Math.cos(A - this.long0), n) : (Math.abs(this.sinlat0) < oi ? (r = 2 * this.a * this.k0 / (1 + a * Math.cos(P)), n.y = r * o) : (r = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * o + this.cosX0 * a * Math.cos(P))), n.y = r * (this.cosX0 * o - this.sinX0 * a * Math.cos(P)) + this.y0), n.x = r * a * Math.sin(P) + this.x0, n));
|
|
190539
190546
|
}
|
|
190540
|
-
function
|
|
190547
|
+
function a$A(n) {
|
|
190541
190548
|
n.x -= this.x0, n.y -= this.y0;
|
|
190542
190549
|
var A, e, t, i, r, s = Math.sqrt(n.x * n.x + n.y * n.y);
|
|
190543
190550
|
if (this.sphere) {
|
|
@@ -190551,15 +190558,15 @@ function s$A(n) {
|
|
|
190551
190558
|
i = 2 * Math.atan(s * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), A = this.long0, s <= oi ? r = this.X0 : (r = Math.asin(Math.cos(i) * this.sinX0 + n.y * Math.sin(i) * this.cosX0 / s), A = Qi(this.long0 + Math.atan2(n.x * Math.sin(i), s * this.cosX0 * Math.cos(i) - n.y * this.sinX0 * Math.sin(i)), this.over)), e = -1 * wI(this.e, Math.tan(0.5 * (Vt + r)));
|
|
190552
190559
|
return n.x = A, n.y = e, n;
|
|
190553
190560
|
}
|
|
190554
|
-
var
|
|
190555
|
-
const
|
|
190556
|
-
init:
|
|
190557
|
-
forward:
|
|
190558
|
-
inverse:
|
|
190559
|
-
names:
|
|
190561
|
+
var l$A = ["stere", "Stereographic_South_Pole", "Polar_Stereographic_variant_A", "Polar_Stereographic_variant_B", "Polar_Stereographic"];
|
|
190562
|
+
const D$A = {
|
|
190563
|
+
init: s$A,
|
|
190564
|
+
forward: o$A,
|
|
190565
|
+
inverse: a$A,
|
|
190566
|
+
names: l$A,
|
|
190560
190567
|
ssfn_: tF
|
|
190561
190568
|
};
|
|
190562
|
-
function
|
|
190569
|
+
function P$A() {
|
|
190563
190570
|
var n = this.lat0;
|
|
190564
190571
|
this.lambda0 = this.long0;
|
|
190565
190572
|
var A = Math.sin(n), e = this.a, t = this.rf, i = 1 / t, r = 2 * i - Math.pow(i, 2), s = this.e = Math.sqrt(r);
|
|
@@ -190567,11 +190574,11 @@ function l$A() {
|
|
|
190567
190574
|
var o = Math.log(Math.tan(Math.PI / 4 + this.b0 / 2)), a = Math.log(Math.tan(Math.PI / 4 + n / 2)), l = Math.log((1 + s * A) / (1 - s * A));
|
|
190568
190575
|
this.K = o - this.alpha * a + this.alpha * s / 2 * l;
|
|
190569
190576
|
}
|
|
190570
|
-
function
|
|
190577
|
+
function c$A(n) {
|
|
190571
190578
|
var A = Math.log(Math.tan(Math.PI / 4 - n.y / 2)), e = this.e / 2 * Math.log((1 + this.e * Math.sin(n.y)) / (1 - this.e * Math.sin(n.y))), t = -this.alpha * (A + e) + this.K, i = 2 * (Math.atan(Math.exp(t)) - Math.PI / 4), r = this.alpha * (n.x - this.lambda0), s = Math.atan(Math.sin(r) / (Math.sin(this.b0) * Math.tan(i) + Math.cos(this.b0) * Math.cos(r))), o = Math.asin(Math.cos(this.b0) * Math.sin(i) - Math.sin(this.b0) * Math.cos(i) * Math.cos(r));
|
|
190572
190579
|
return n.y = this.R / 2 * Math.log((1 + Math.sin(o)) / (1 - Math.sin(o))) + this.y0, n.x = this.R * s + this.x0, n;
|
|
190573
190580
|
}
|
|
190574
|
-
function
|
|
190581
|
+
function h$A(n) {
|
|
190575
190582
|
for (var A = n.x - this.x0, e = n.y - this.y0, t = A / this.R, i = 2 * (Math.atan(Math.exp(e / this.R)) - Math.PI / 4), r = Math.asin(Math.cos(this.b0) * Math.sin(i) + Math.sin(this.b0) * Math.cos(i) * Math.cos(t)), s = Math.atan(Math.sin(t) / (Math.cos(this.b0) * Math.cos(t) - Math.sin(this.b0) * Math.tan(i))), o = this.lambda0 + s / this.alpha, a = 0, l = r, D = -1e3, P = 0; Math.abs(l - D) > 1e-7; ) {
|
|
190576
190583
|
if (++P > 20)
|
|
190577
190584
|
return;
|
|
@@ -190579,21 +190586,21 @@ function P$A(n) {
|
|
|
190579
190586
|
}
|
|
190580
190587
|
return n.x = o, n.y = l, n;
|
|
190581
190588
|
}
|
|
190582
|
-
var
|
|
190583
|
-
const
|
|
190584
|
-
init:
|
|
190585
|
-
forward:
|
|
190586
|
-
inverse:
|
|
190587
|
-
names:
|
|
190589
|
+
var g$A = ["somerc"];
|
|
190590
|
+
const u$A = {
|
|
190591
|
+
init: P$A,
|
|
190592
|
+
forward: c$A,
|
|
190593
|
+
inverse: h$A,
|
|
190594
|
+
names: g$A
|
|
190588
190595
|
};
|
|
190589
190596
|
var IC = 1e-7;
|
|
190590
|
-
function
|
|
190597
|
+
function Q$A(n) {
|
|
190591
190598
|
var A = ["Hotine_Oblique_Mercator", "Hotine_Oblique_Mercator_variant_A", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin"], e = typeof n.projName == "object" ? Object.keys(n.projName)[0] : n.projName;
|
|
190592
190599
|
return "no_uoff" in n || "no_off" in n || A.indexOf(e) !== -1 || A.indexOf(qoA(e)) !== -1;
|
|
190593
190600
|
}
|
|
190594
|
-
function
|
|
190601
|
+
function w$A() {
|
|
190595
190602
|
var n, A, e, t, i, r, s, o, a, l, D = 0, P, c = 0, h = 0, g = 0, u = 0, Q = 0, w = 0;
|
|
190596
|
-
this.no_off =
|
|
190603
|
+
this.no_off = Q$A(this), this.no_rot = "no_rot" in this;
|
|
190597
190604
|
var C = !1;
|
|
190598
190605
|
"alpha" in this && (C = !0);
|
|
190599
190606
|
var E = !1;
|
|
@@ -190604,7 +190611,7 @@ function u$A() {
|
|
|
190604
190611
|
var p = 1 - this.es;
|
|
190605
190612
|
A = Math.sqrt(p), Math.abs(this.lat0) > oi ? (o = Math.sin(this.lat0), e = Math.cos(this.lat0), n = 1 - this.es * o * o, this.B = e * e, this.B = Math.sqrt(1 + this.es * this.B * this.B / p), this.A = this.B * this.k0 * A / n, t = this.B * A / (e * Math.sqrt(n)), i = t * t - 1, i <= 0 ? i = 0 : (i = Math.sqrt(i), this.lat0 < 0 && (i = -i)), this.E = i += t, this.E *= Math.pow(YP(this.e, this.lat0, o), this.B)) : (this.B = 1 / A, this.A = this.k0, this.E = t = i = 1), C || E ? (C ? (P = Math.asin(Math.sin(w) / t), E || (D = w)) : (P = D, w = Math.asin(t * Math.sin(P))), this.lam0 = c - Math.asin(0.5 * (i - 1 / i) * Math.tan(P)) / this.B) : (r = Math.pow(YP(this.e, u, Math.sin(u)), this.B), s = Math.pow(YP(this.e, Q, Math.sin(Q)), this.B), i = this.E / r, a = (s - r) / (s + r), l = this.E * this.E, l = (l - s * r) / (l + s * r), n = h - g, n < -Math.PI ? g -= uI : n > Math.PI && (g += uI), this.lam0 = Qi(0.5 * (h + g) - Math.atan(l * Math.tan(0.5 * this.B * (h - g)) / a) / this.B, this.over), P = Math.atan(2 * Math.sin(this.B * Qi(h - this.lam0, this.over)) / (i - 1 / i)), D = w = Math.asin(t * Math.sin(P))), this.singam = Math.sin(P), this.cosgam = Math.cos(P), this.sinrot = Math.sin(D), this.cosrot = Math.cos(D), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(t * t - 1) / Math.cos(w))), this.lat0 < 0 && (this.u_0 = -this.u_0)), i = 0.5 * P, this.v_pole_n = this.ArB * Math.log(Math.tan(pr - i)), this.v_pole_s = this.ArB * Math.log(Math.tan(pr + i));
|
|
190606
190613
|
}
|
|
190607
|
-
function
|
|
190614
|
+
function f$A(n) {
|
|
190608
190615
|
var A = {}, e, t, i, r, s, o, a, l;
|
|
190609
190616
|
if (n.x = n.x - this.lam0, Math.abs(Math.abs(n.y) - Vt) > oi) {
|
|
190610
190617
|
if (s = this.E / Math.pow(YP(this.e, n.y, Math.sin(n.y)), this.B), o = 1 / s, e = 0.5 * (s - o), t = 0.5 * (s + o), r = Math.sin(this.B * n.x), i = (e * this.singam - r * this.cosgam) / t, Math.abs(Math.abs(i) - 1) < oi)
|
|
@@ -190614,7 +190621,7 @@ function Q$A(n) {
|
|
|
190614
190621
|
l = n.y > 0 ? this.v_pole_n : this.v_pole_s, a = this.ArB * n.y;
|
|
190615
190622
|
return this.no_rot ? (A.x = a, A.y = l) : (a -= this.u_0, A.x = l * this.cosrot + a * this.sinrot, A.y = a * this.cosrot - l * this.sinrot), A.x = this.a * A.x + this.x0, A.y = this.a * A.y + this.y0, A;
|
|
190616
190623
|
}
|
|
190617
|
-
function
|
|
190624
|
+
function d$A(n) {
|
|
190618
190625
|
var A, e, t, i, r, s, o, a = {};
|
|
190619
190626
|
if (n.x = (n.x - this.x0) * (1 / this.a), n.y = (n.y - this.y0) * (1 / this.a), this.no_rot ? (e = n.y, A = n.x) : (e = n.x * this.cosrot - n.y * this.sinrot, A = n.y * this.cosrot + n.x * this.sinrot + this.u_0), t = Math.exp(-this.BrA * e), i = 0.5 * (t - 1 / t), r = 0.5 * (t + 1 / t), s = Math.sin(this.BrA * A), o = (s * this.cosgam + i * this.singam) / r, Math.abs(Math.abs(o) - 1) < oi)
|
|
190620
190627
|
a.x = 0, a.y = o < 0 ? -Vt : Vt;
|
|
@@ -190625,14 +190632,14 @@ function w$A(n) {
|
|
|
190625
190632
|
}
|
|
190626
190633
|
return a.x += this.lam0, a;
|
|
190627
190634
|
}
|
|
190628
|
-
var
|
|
190629
|
-
const
|
|
190630
|
-
init:
|
|
190631
|
-
forward:
|
|
190632
|
-
inverse:
|
|
190633
|
-
names:
|
|
190635
|
+
var v$A = ["Hotine_Oblique_Mercator", "Hotine Oblique Mercator", "Hotine_Oblique_Mercator_variant_A", "Hotine_Oblique_Mercator_Variant_B", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin", "Hotine_Oblique_Mercator_Two_Point_Natural_Origin", "Hotine_Oblique_Mercator_Azimuth_Center", "Oblique_Mercator", "omerc"];
|
|
190636
|
+
const C$A = {
|
|
190637
|
+
init: w$A,
|
|
190638
|
+
forward: f$A,
|
|
190639
|
+
inverse: d$A,
|
|
190640
|
+
names: v$A
|
|
190634
190641
|
};
|
|
190635
|
-
function
|
|
190642
|
+
function E$A() {
|
|
190636
190643
|
if (this.lat2 || (this.lat2 = this.lat1), this.k0 || (this.k0 = 1), this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, !(Math.abs(this.lat1 + this.lat2) < oi)) {
|
|
190637
190644
|
var n = this.b / this.a;
|
|
190638
190645
|
this.e = Math.sqrt(1 - n * n);
|
|
@@ -190640,7 +190647,7 @@ function v$A() {
|
|
|
190640
190647
|
Math.abs(this.lat1 - this.lat2) > oi ? this.ns = Math.log(t / o) / Math.log(i / a) : this.ns = A, isNaN(this.ns) && (this.ns = A), this.f0 = t / (this.ns * Math.pow(i, this.ns)), this.rh = this.a * this.f0 * Math.pow(l, this.ns), this.title || (this.title = "Lambert Conformal Conic");
|
|
190641
190648
|
}
|
|
190642
190649
|
}
|
|
190643
|
-
function
|
|
190650
|
+
function B$A(n) {
|
|
190644
190651
|
var A = n.x, e = n.y;
|
|
190645
190652
|
Math.abs(2 * Math.abs(e) - Math.PI) <= oi && (e = nM(e) * (Vt - 2 * oi));
|
|
190646
190653
|
var t = Math.abs(Math.abs(e) - Vt), i, r;
|
|
@@ -190654,7 +190661,7 @@ function C$A(n) {
|
|
|
190654
190661
|
var s = this.ns * Qi(A - this.long0, this.over);
|
|
190655
190662
|
return n.x = this.k0 * (r * Math.sin(s)) + this.x0, n.y = this.k0 * (this.rh - r * Math.cos(s)) + this.y0, n;
|
|
190656
190663
|
}
|
|
190657
|
-
function
|
|
190664
|
+
function p$A(n) {
|
|
190658
190665
|
var A, e, t, i, r, s = (n.x - this.x0) / this.k0, o = this.rh - (n.y - this.y0) / this.k0;
|
|
190659
190666
|
this.ns > 0 ? (A = Math.sqrt(s * s + o * o), e = 1) : (A = -Math.sqrt(s * s + o * o), e = -1);
|
|
190660
190667
|
var a = 0;
|
|
@@ -190665,7 +190672,7 @@ function E$A(n) {
|
|
|
190665
190672
|
i = -Vt;
|
|
190666
190673
|
return r = Qi(a / this.ns + this.long0, this.over), n.x = r, n.y = i, n;
|
|
190667
190674
|
}
|
|
190668
|
-
var
|
|
190675
|
+
var m$A = [
|
|
190669
190676
|
"Lambert Tangential Conformal Conic Projection",
|
|
190670
190677
|
"Lambert_Conformal_Conic",
|
|
190671
190678
|
"Lambert_Conformal_Conic_1SP",
|
|
@@ -190674,20 +190681,20 @@ var B$A = [
|
|
|
190674
190681
|
"Lambert Conic Conformal (1SP)",
|
|
190675
190682
|
"Lambert Conic Conformal (2SP)"
|
|
190676
190683
|
];
|
|
190677
|
-
const
|
|
190678
|
-
init:
|
|
190679
|
-
forward:
|
|
190680
|
-
inverse:
|
|
190681
|
-
names:
|
|
190684
|
+
const I$A = {
|
|
190685
|
+
init: E$A,
|
|
190686
|
+
forward: B$A,
|
|
190687
|
+
inverse: p$A,
|
|
190688
|
+
names: m$A
|
|
190682
190689
|
};
|
|
190683
|
-
function
|
|
190690
|
+
function M$A() {
|
|
190684
190691
|
this.a = 6377397155e-3, this.es = 0.006674372230614, this.e = Math.sqrt(this.es), this.lat0 || (this.lat0 = 0.863937979737193), this.long0 || (this.long0 = 0.7417649320975901 - 0.308341501185665), this.k0 || (this.k0 = 0.9999), this.s45 = 0.785398163397448, this.s90 = 2 * this.s45, this.fi0 = this.lat0, this.e2 = this.es, this.e = Math.sqrt(this.e2), this.alfa = Math.sqrt(1 + this.e2 * Math.pow(Math.cos(this.fi0), 4) / (1 - this.e2)), this.uq = 1.04216856380474, this.u0 = Math.asin(Math.sin(this.fi0) / this.alfa), this.g = Math.pow((1 + this.e * Math.sin(this.fi0)) / (1 - this.e * Math.sin(this.fi0)), this.alfa * this.e / 2), this.k = Math.tan(this.u0 / 2 + this.s45) / Math.pow(Math.tan(this.fi0 / 2 + this.s45), this.alfa) * this.g, this.k1 = this.k0, this.n0 = this.a * Math.sqrt(1 - this.e2) / (1 - this.e2 * Math.pow(Math.sin(this.fi0), 2)), this.s0 = 1.37008346281555, this.n = Math.sin(this.s0), this.ro0 = this.k1 * this.n0 / Math.tan(this.s0), this.ad = this.s90 - this.uq;
|
|
190685
190692
|
}
|
|
190686
|
-
function
|
|
190693
|
+
function T$A(n) {
|
|
190687
190694
|
var A, e, t, i, r, s, o, a = n.x, l = n.y, D = Qi(a - this.long0, this.over);
|
|
190688
190695
|
return A = Math.pow((1 + this.e * Math.sin(l)) / (1 - this.e * Math.sin(l)), this.alfa * this.e / 2), e = 2 * (Math.atan(this.k * Math.pow(Math.tan(l / 2 + this.s45), this.alfa) / A) - this.s45), t = -D * this.alfa, i = Math.asin(Math.cos(this.ad) * Math.sin(e) + Math.sin(this.ad) * Math.cos(e) * Math.cos(t)), r = Math.asin(Math.cos(e) * Math.sin(t) / Math.cos(i)), s = this.n * r, o = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(i / 2 + this.s45), this.n), n.y = o * Math.cos(s) / 1, n.x = o * Math.sin(s) / 1, this.czech || (n.y *= -1, n.x *= -1), n;
|
|
190689
190696
|
}
|
|
190690
|
-
function
|
|
190697
|
+
function y$A(n) {
|
|
190691
190698
|
var A, e, t, i, r, s, o, a, l = n.x;
|
|
190692
190699
|
n.x = n.y, n.y = l, this.czech || (n.y *= -1, n.x *= -1), s = Math.sqrt(n.x * n.x + n.y * n.y), r = Math.atan2(n.y, n.x), i = r / Math.sin(this.s0), t = 2 * (Math.atan(Math.pow(this.ro0 / s, 1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45), A = Math.asin(Math.cos(this.ad) * Math.sin(t) - Math.sin(this.ad) * Math.cos(t) * Math.cos(i)), e = Math.asin(Math.cos(t) * Math.sin(i) / Math.cos(A)), n.x = this.long0 - e / this.alfa, o = A, a = 0;
|
|
190693
190700
|
var D = 0;
|
|
@@ -190696,12 +190703,12 @@ function M$A(n) {
|
|
|
190696
190703
|
while (a === 0 && D < 15);
|
|
190697
190704
|
return D >= 15 ? null : n;
|
|
190698
190705
|
}
|
|
190699
|
-
var
|
|
190700
|
-
const
|
|
190701
|
-
init:
|
|
190702
|
-
forward:
|
|
190703
|
-
inverse:
|
|
190704
|
-
names:
|
|
190706
|
+
var O$A = ["Krovak", "krovak"];
|
|
190707
|
+
const k$A = {
|
|
190708
|
+
init: M$A,
|
|
190709
|
+
forward: T$A,
|
|
190710
|
+
inverse: y$A,
|
|
190711
|
+
names: O$A
|
|
190705
190712
|
};
|
|
190706
190713
|
function Xa(n, A, e, t, i) {
|
|
190707
190714
|
return n * i - A * Math.sin(2 * i) + e * Math.sin(4 * i) - t * Math.sin(6 * i);
|
|
@@ -190733,10 +190740,10 @@ function ZO(n, A, e, t, i) {
|
|
|
190733
190740
|
return r;
|
|
190734
190741
|
return NaN;
|
|
190735
190742
|
}
|
|
190736
|
-
function
|
|
190743
|
+
function b$A() {
|
|
190737
190744
|
this.sphere || (this.e0 = rM(this.es), this.e1 = sM(this.es), this.e2 = oM(this.es), this.e3 = aM(this.es), this.ml0 = this.a * Xa(this.e0, this.e1, this.e2, this.e3, this.lat0));
|
|
190738
190745
|
}
|
|
190739
|
-
function
|
|
190746
|
+
function z$A(n) {
|
|
190740
190747
|
var A, e, t = n.x, i = n.y;
|
|
190741
190748
|
if (t = Qi(t - this.long0, this.over), this.sphere)
|
|
190742
190749
|
A = this.a * Math.asin(Math.cos(i) * Math.sin(t)), e = this.a * (Math.atan2(Math.tan(i), Math.cos(t)) - this.lat0);
|
|
@@ -190746,7 +190753,7 @@ function k$A(n) {
|
|
|
190746
190753
|
}
|
|
190747
190754
|
return n.x = A + this.x0, n.y = e + this.y0, n;
|
|
190748
190755
|
}
|
|
190749
|
-
function
|
|
190756
|
+
function N$A(n) {
|
|
190750
190757
|
n.x -= this.x0, n.y -= this.y0;
|
|
190751
190758
|
var A = n.x / this.a, e = n.y / this.a, t, i;
|
|
190752
190759
|
if (this.sphere) {
|
|
@@ -190761,23 +190768,23 @@ function b$A(n) {
|
|
|
190761
190768
|
}
|
|
190762
190769
|
return n.x = Qi(i + this.long0, this.over), n.y = _Q(t), n;
|
|
190763
190770
|
}
|
|
190764
|
-
var
|
|
190765
|
-
const
|
|
190766
|
-
init:
|
|
190767
|
-
forward:
|
|
190768
|
-
inverse:
|
|
190769
|
-
names:
|
|
190771
|
+
var x$A = ["Cassini", "Cassini_Soldner", "cass"];
|
|
190772
|
+
const L$A = {
|
|
190773
|
+
init: b$A,
|
|
190774
|
+
forward: z$A,
|
|
190775
|
+
inverse: N$A,
|
|
190776
|
+
names: x$A
|
|
190770
190777
|
};
|
|
190771
190778
|
function NQ(n, A) {
|
|
190772
190779
|
var e;
|
|
190773
190780
|
return n > 1e-7 ? (e = n * A, (1 - n * n) * (A / (1 - e * e) - 0.5 / n * Math.log((1 - e) / (1 + e)))) : 2 * A;
|
|
190774
190781
|
}
|
|
190775
190782
|
var fU = 1, dU = 2, vU = 3, n1 = 4;
|
|
190776
|
-
function
|
|
190783
|
+
function U$A() {
|
|
190777
190784
|
var n = Math.abs(this.lat0);
|
|
190778
190785
|
if (Math.abs(n - Vt) < oi ? this.mode = this.lat0 < 0 ? fU : dU : Math.abs(n) < oi ? this.mode = vU : this.mode = n1, this.es > 0) {
|
|
190779
190786
|
var A;
|
|
190780
|
-
switch (this.qp = NQ(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa =
|
|
190787
|
+
switch (this.qp = NQ(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = Z$A(this.es), this.mode) {
|
|
190781
190788
|
case dU:
|
|
190782
190789
|
this.dd = 1;
|
|
190783
190790
|
break;
|
|
@@ -190794,7 +190801,7 @@ function x$A() {
|
|
|
190794
190801
|
} else
|
|
190795
190802
|
this.mode === n1 && (this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0));
|
|
190796
190803
|
}
|
|
190797
|
-
function
|
|
190804
|
+
function j$A(n) {
|
|
190798
190805
|
var A, e, t, i, r, s, o, a, l, D, P = n.x, c = n.y;
|
|
190799
190806
|
if (P = Qi(P - this.long0, this.over), this.sphere) {
|
|
190800
190807
|
if (r = Math.sin(c), D = Math.cos(c), t = Math.cos(P), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
|
|
@@ -190836,7 +190843,7 @@ function L$A(n) {
|
|
|
190836
190843
|
}
|
|
190837
190844
|
return n.x = this.a * A + this.x0, n.y = this.a * e + this.y0, n;
|
|
190838
190845
|
}
|
|
190839
|
-
function
|
|
190846
|
+
function S$A(n) {
|
|
190840
190847
|
n.x -= this.x0, n.y -= this.y0;
|
|
190841
190848
|
var A = n.x / this.a, e = n.y / this.a, t, i, r, s, o, a, l;
|
|
190842
190849
|
if (this.sphere) {
|
|
@@ -190868,25 +190875,25 @@ function U$A(n) {
|
|
|
190868
190875
|
return n.x = this.long0, n.y = this.lat0, n;
|
|
190869
190876
|
l = 1 - o / this.qp, this.mode === this.S_POLE && (l = -l);
|
|
190870
190877
|
}
|
|
190871
|
-
t = Math.atan2(A, e), i =
|
|
190878
|
+
t = Math.atan2(A, e), i = K$A(Math.asin(l), this.apa);
|
|
190872
190879
|
}
|
|
190873
190880
|
return n.x = Qi(this.long0 + t, this.over), n.y = i, n;
|
|
190874
190881
|
}
|
|
190875
|
-
var
|
|
190876
|
-
function
|
|
190882
|
+
var F$A = 0.3333333333333333, R$A = 0.17222222222222222, Y$A = 0.10257936507936508, H$A = 0.06388888888888888, J$A = 0.0664021164021164, G$A = 0.016415012942191543;
|
|
190883
|
+
function Z$A(n) {
|
|
190877
190884
|
var A, e = [];
|
|
190878
|
-
return e[0] = n *
|
|
190885
|
+
return e[0] = n * F$A, A = n * n, e[0] += A * R$A, e[1] = A * H$A, A *= n, e[0] += A * Y$A, e[1] += A * J$A, e[2] = A * G$A, e;
|
|
190879
190886
|
}
|
|
190880
|
-
function
|
|
190887
|
+
function K$A(n, A) {
|
|
190881
190888
|
var e = n + n;
|
|
190882
190889
|
return n + A[0] * Math.sin(e) + A[1] * Math.sin(e + e) + A[2] * Math.sin(e + e + e);
|
|
190883
190890
|
}
|
|
190884
|
-
var
|
|
190885
|
-
const
|
|
190886
|
-
init:
|
|
190887
|
-
forward:
|
|
190888
|
-
inverse:
|
|
190889
|
-
names:
|
|
190891
|
+
var V$A = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"];
|
|
190892
|
+
const q$A = {
|
|
190893
|
+
init: U$A,
|
|
190894
|
+
forward: j$A,
|
|
190895
|
+
inverse: S$A,
|
|
190896
|
+
names: V$A,
|
|
190890
190897
|
S_POLE: fU,
|
|
190891
190898
|
N_POLE: dU,
|
|
190892
190899
|
EQUIT: vU,
|
|
@@ -190895,20 +190902,20 @@ const K$A = {
|
|
|
190895
190902
|
function FQ(n) {
|
|
190896
190903
|
return Math.abs(n) > 1 && (n = n > 1 ? 1 : -1), Math.asin(n);
|
|
190897
190904
|
}
|
|
190898
|
-
function
|
|
190905
|
+
function W$A() {
|
|
190899
190906
|
Math.abs(this.lat1 + this.lat2) < oi || (this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e3 = Math.sqrt(this.es), this.sin_po = Math.sin(this.lat1), this.cos_po = Math.cos(this.lat1), this.t1 = this.sin_po, this.con = this.sin_po, this.ms1 = rh(this.e3, this.sin_po, this.cos_po), this.qs1 = NQ(this.e3, this.sin_po), this.sin_po = Math.sin(this.lat2), this.cos_po = Math.cos(this.lat2), this.t2 = this.sin_po, this.ms2 = rh(this.e3, this.sin_po, this.cos_po), this.qs2 = NQ(this.e3, this.sin_po), this.sin_po = Math.sin(this.lat0), this.cos_po = Math.cos(this.lat0), this.t3 = this.sin_po, this.qs0 = NQ(this.e3, this.sin_po), Math.abs(this.lat1 - this.lat2) > oi ? this.ns0 = (this.ms1 * this.ms1 - this.ms2 * this.ms2) / (this.qs2 - this.qs1) : this.ns0 = this.con, this.c = this.ms1 * this.ms1 + this.ns0 * this.qs1, this.rh = this.a * Math.sqrt(this.c - this.ns0 * this.qs0) / this.ns0);
|
|
190900
190907
|
}
|
|
190901
|
-
function
|
|
190908
|
+
function X$A(n) {
|
|
190902
190909
|
var A = n.x, e = n.y;
|
|
190903
190910
|
this.sin_phi = Math.sin(e), this.cos_phi = Math.cos(e);
|
|
190904
190911
|
var t = NQ(this.e3, this.sin_phi), i = this.a * Math.sqrt(this.c - this.ns0 * t) / this.ns0, r = this.ns0 * Qi(A - this.long0, this.over), s = i * Math.sin(r) + this.x0, o = this.rh - i * Math.cos(r) + this.y0;
|
|
190905
190912
|
return n.x = s, n.y = o, n;
|
|
190906
190913
|
}
|
|
190907
|
-
function
|
|
190914
|
+
function _$A(n) {
|
|
190908
190915
|
var A, e, t, i, r, s;
|
|
190909
190916
|
return n.x -= this.x0, n.y = this.rh - n.y + this.y0, this.ns0 >= 0 ? (A = Math.sqrt(n.x * n.x + n.y * n.y), t = 1) : (A = -Math.sqrt(n.x * n.x + n.y * n.y), t = -1), i = 0, A !== 0 && (i = Math.atan2(t * n.x, t * n.y)), t = A * this.ns0 / this.a, this.sphere ? s = Math.asin((this.c - t * t) / (2 * this.ns0)) : (e = (this.c - t * t) / this.ns0, s = this.phi1z(this.e3, e)), r = Qi(i / this.ns0 + this.long0, this.over), n.x = r, n.y = s, n;
|
|
190910
190917
|
}
|
|
190911
|
-
function
|
|
190918
|
+
function $$A(n, A) {
|
|
190912
190919
|
var e, t, i, r, s, o = FQ(0.5 * A);
|
|
190913
190920
|
if (n < oi)
|
|
190914
190921
|
return o;
|
|
@@ -190917,33 +190924,33 @@ function X$A(n, A) {
|
|
|
190917
190924
|
return o;
|
|
190918
190925
|
return null;
|
|
190919
190926
|
}
|
|
190920
|
-
var
|
|
190921
|
-
const
|
|
190922
|
-
init:
|
|
190923
|
-
forward:
|
|
190924
|
-
inverse:
|
|
190925
|
-
names:
|
|
190926
|
-
phi1z:
|
|
190927
|
+
var AAe = ["Albers_Conic_Equal_Area", "Albers_Equal_Area", "Albers", "aea"];
|
|
190928
|
+
const eAe = {
|
|
190929
|
+
init: W$A,
|
|
190930
|
+
forward: X$A,
|
|
190931
|
+
inverse: _$A,
|
|
190932
|
+
names: AAe,
|
|
190933
|
+
phi1z: $$A
|
|
190927
190934
|
};
|
|
190928
|
-
function
|
|
190935
|
+
function tAe() {
|
|
190929
190936
|
this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0), this.infinity_dist = 1e3 * this.a, this.rc = 1;
|
|
190930
190937
|
}
|
|
190931
|
-
function
|
|
190938
|
+
function iAe(n) {
|
|
190932
190939
|
var A, e, t, i, r, s, o, a, l = n.x, D = n.y;
|
|
190933
190940
|
return t = Qi(l - this.long0, this.over), A = Math.sin(D), e = Math.cos(D), i = Math.cos(t), s = this.sin_p14 * A + this.cos_p14 * e * i, r = 1, s > 0 || Math.abs(s) <= oi ? (o = this.x0 + this.a * r * e * Math.sin(t) / s, a = this.y0 + this.a * r * (this.cos_p14 * A - this.sin_p14 * e * i) / s) : (o = this.x0 + this.infinity_dist * e * Math.sin(t), a = this.y0 + this.infinity_dist * (this.cos_p14 * A - this.sin_p14 * e * i)), n.x = o, n.y = a, n;
|
|
190934
190941
|
}
|
|
190935
|
-
function
|
|
190942
|
+
function nAe(n) {
|
|
190936
190943
|
var A, e, t, i, r, s;
|
|
190937
190944
|
return n.x = (n.x - this.x0) / this.a, n.y = (n.y - this.y0) / this.a, n.x /= this.k0, n.y /= this.k0, (A = Math.sqrt(n.x * n.x + n.y * n.y)) ? (i = Math.atan2(A, this.rc), e = Math.sin(i), t = Math.cos(i), s = FQ(t * this.sin_p14 + n.y * e * this.cos_p14 / A), r = Math.atan2(n.x * e, A * this.cos_p14 * t - n.y * this.sin_p14 * e), r = Qi(this.long0 + r, this.over)) : (s = this.phic0, r = 0), n.x = r, n.y = s, n;
|
|
190938
190945
|
}
|
|
190939
|
-
var
|
|
190940
|
-
const
|
|
190941
|
-
init:
|
|
190942
|
-
forward:
|
|
190943
|
-
inverse:
|
|
190944
|
-
names:
|
|
190946
|
+
var rAe = ["gnom"];
|
|
190947
|
+
const sAe = {
|
|
190948
|
+
init: tAe,
|
|
190949
|
+
forward: iAe,
|
|
190950
|
+
inverse: nAe,
|
|
190951
|
+
names: rAe
|
|
190945
190952
|
};
|
|
190946
|
-
function
|
|
190953
|
+
function oAe(n, A) {
|
|
190947
190954
|
var e = 1 - (1 - n * n) / (2 * n) * Math.log((1 - n) / (1 + n));
|
|
190948
190955
|
if (Math.abs(Math.abs(A) - e) < 1e-6)
|
|
190949
190956
|
return A < 0 ? -1 * Vt : Vt;
|
|
@@ -190952,10 +190959,10 @@ function rAe(n, A) {
|
|
|
190952
190959
|
return t;
|
|
190953
190960
|
return NaN;
|
|
190954
190961
|
}
|
|
190955
|
-
function
|
|
190962
|
+
function aAe() {
|
|
190956
190963
|
this.sphere || (this.k0 = rh(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)));
|
|
190957
190964
|
}
|
|
190958
|
-
function
|
|
190965
|
+
function lAe(n) {
|
|
190959
190966
|
var A = n.x, e = n.y, t, i, r = Qi(A - this.long0, this.over);
|
|
190960
190967
|
if (this.sphere)
|
|
190961
190968
|
t = this.x0 + this.a * r * Math.cos(this.lat_ts), i = this.y0 + this.a * Math.sin(e) / Math.cos(this.lat_ts);
|
|
@@ -190965,41 +190972,41 @@ function oAe(n) {
|
|
|
190965
190972
|
}
|
|
190966
190973
|
return n.x = t, n.y = i, n;
|
|
190967
190974
|
}
|
|
190968
|
-
function
|
|
190975
|
+
function DAe(n) {
|
|
190969
190976
|
n.x -= this.x0, n.y -= this.y0;
|
|
190970
190977
|
var A, e;
|
|
190971
|
-
return this.sphere ? (A = Qi(this.long0 + n.x / this.a / Math.cos(this.lat_ts), this.over), e = Math.asin(n.y / this.a * Math.cos(this.lat_ts))) : (e =
|
|
190972
|
-
}
|
|
190973
|
-
var
|
|
190974
|
-
const
|
|
190975
|
-
init:
|
|
190976
|
-
forward:
|
|
190977
|
-
inverse:
|
|
190978
|
-
names:
|
|
190978
|
+
return this.sphere ? (A = Qi(this.long0 + n.x / this.a / Math.cos(this.lat_ts), this.over), e = Math.asin(n.y / this.a * Math.cos(this.lat_ts))) : (e = oAe(this.e, 2 * n.y * this.k0 / this.a), A = Qi(this.long0 + n.x / (this.a * this.k0), this.over)), n.x = A, n.y = e, n;
|
|
190979
|
+
}
|
|
190980
|
+
var PAe = ["cea"];
|
|
190981
|
+
const cAe = {
|
|
190982
|
+
init: aAe,
|
|
190983
|
+
forward: lAe,
|
|
190984
|
+
inverse: DAe,
|
|
190985
|
+
names: PAe
|
|
190979
190986
|
};
|
|
190980
|
-
function
|
|
190987
|
+
function hAe() {
|
|
190981
190988
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Equidistant Cylindrical (Plate Carre)", this.rc = Math.cos(this.lat_ts);
|
|
190982
190989
|
}
|
|
190983
|
-
function
|
|
190990
|
+
function gAe(n) {
|
|
190984
190991
|
var A = n.x, e = n.y, t = Qi(A - this.long0, this.over), i = _Q(e - this.lat0);
|
|
190985
190992
|
return n.x = this.x0 + this.a * t * this.rc, n.y = this.y0 + this.a * i, n;
|
|
190986
190993
|
}
|
|
190987
|
-
function
|
|
190994
|
+
function uAe(n) {
|
|
190988
190995
|
var A = n.x, e = n.y;
|
|
190989
190996
|
return n.x = Qi(this.long0 + (A - this.x0) / (this.a * this.rc), this.over), n.y = _Q(this.lat0 + (e - this.y0) / this.a), n;
|
|
190990
190997
|
}
|
|
190991
|
-
var
|
|
190992
|
-
const
|
|
190993
|
-
init:
|
|
190994
|
-
forward:
|
|
190995
|
-
inverse:
|
|
190996
|
-
names:
|
|
190998
|
+
var QAe = ["Equirectangular", "Equidistant_Cylindrical", "Equidistant_Cylindrical_Spherical", "eqc"];
|
|
190999
|
+
const wAe = {
|
|
191000
|
+
init: hAe,
|
|
191001
|
+
forward: gAe,
|
|
191002
|
+
inverse: uAe,
|
|
191003
|
+
names: QAe
|
|
190997
191004
|
};
|
|
190998
191005
|
var TW = 20;
|
|
190999
|
-
function
|
|
191006
|
+
function fAe() {
|
|
191000
191007
|
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = rM(this.es), this.e1 = sM(this.es), this.e2 = oM(this.es), this.e3 = aM(this.es), this.ml0 = this.a * Xa(this.e0, this.e1, this.e2, this.e3, this.lat0);
|
|
191001
191008
|
}
|
|
191002
|
-
function
|
|
191009
|
+
function dAe(n) {
|
|
191003
191010
|
var A = n.x, e = n.y, t, i, r, s = Qi(A - this.long0, this.over);
|
|
191004
191011
|
if (r = s * Math.sin(e), this.sphere)
|
|
191005
191012
|
Math.abs(e) <= oi ? (t = this.a * s, i = -1 * this.a * this.lat0) : (t = this.a * Math.sin(r) / Math.tan(e), i = this.a * (_Q(e - this.lat0) + (1 - Math.cos(r)) / Math.tan(e)));
|
|
@@ -191011,7 +191018,7 @@ function wAe(n) {
|
|
|
191011
191018
|
}
|
|
191012
191019
|
return n.x = t + this.x0, n.y = i + this.y0, n;
|
|
191013
191020
|
}
|
|
191014
|
-
function
|
|
191021
|
+
function vAe(n) {
|
|
191015
191022
|
var A, e, t, i, r, s, o, a, l;
|
|
191016
191023
|
if (t = n.x - this.x0, i = n.y - this.y0, this.sphere)
|
|
191017
191024
|
if (Math.abs(i + this.a * this.lat0) <= oi)
|
|
@@ -191040,17 +191047,17 @@ function fAe(n) {
|
|
|
191040
191047
|
}
|
|
191041
191048
|
return n.x = A, n.y = e, n;
|
|
191042
191049
|
}
|
|
191043
|
-
var
|
|
191044
|
-
const
|
|
191045
|
-
init:
|
|
191046
|
-
forward:
|
|
191047
|
-
inverse:
|
|
191048
|
-
names:
|
|
191050
|
+
var CAe = ["Polyconic", "American_Polyconic", "poly"];
|
|
191051
|
+
const EAe = {
|
|
191052
|
+
init: fAe,
|
|
191053
|
+
forward: dAe,
|
|
191054
|
+
inverse: vAe,
|
|
191055
|
+
names: CAe
|
|
191049
191056
|
};
|
|
191050
|
-
function
|
|
191057
|
+
function BAe() {
|
|
191051
191058
|
this.A = [], this.A[1] = 0.6399175073, this.A[2] = -0.1358797613, this.A[3] = 0.063294409, this.A[4] = -0.02526853, this.A[5] = 0.0117879, this.A[6] = -55161e-7, this.A[7] = 26906e-7, this.A[8] = -1333e-6, this.A[9] = 67e-5, this.A[10] = -34e-5, this.B_re = [], this.B_im = [], this.B_re[1] = 0.7557853228, this.B_im[1] = 0, this.B_re[2] = 0.249204646, this.B_im[2] = 3371507e-9, this.B_re[3] = -1541739e-9, this.B_im[3] = 0.04105856, this.B_re[4] = -0.10162907, this.B_im[4] = 0.01727609, this.B_re[5] = -0.26623489, this.B_im[5] = -0.36249218, this.B_re[6] = -0.6870983, this.B_im[6] = -1.1651967, this.C_re = [], this.C_im = [], this.C_re[1] = 1.3231270439, this.C_im[1] = 0, this.C_re[2] = -0.577245789, this.C_im[2] = -7809598e-9, this.C_re[3] = 0.508307513, this.C_im[3] = -0.112208952, this.C_re[4] = -0.15094762, this.C_im[4] = 0.18200602, this.C_re[5] = 1.01418179, this.C_im[5] = 1.64497696, this.C_re[6] = 1.9660549, this.C_im[6] = 2.5127645, this.D = [], this.D[1] = 1.5627014243, this.D[2] = 0.5185406398, this.D[3] = -0.03333098, this.D[4] = -0.1052906, this.D[5] = -0.0368594, this.D[6] = 7317e-6, this.D[7] = 0.0122, this.D[8] = 394e-5, this.D[9] = -13e-4;
|
|
191052
191059
|
}
|
|
191053
|
-
function
|
|
191060
|
+
function pAe(n) {
|
|
191054
191061
|
var A, e = n.x, t = n.y, i = t - this.lat0, r = e - this.long0, s = i / cm * 1e-5, o = r, a = 1, l = 0;
|
|
191055
191062
|
for (A = 1; A <= 10; A++)
|
|
191056
191063
|
a = a * s, l = l + this.A[A] * a;
|
|
@@ -191059,7 +191066,7 @@ function EAe(n) {
|
|
|
191059
191066
|
g = c * D - h * P, u = h * D + c * P, c = g, h = u, Q = Q + this.B_re[A] * c - this.B_im[A] * h, w = w + this.B_im[A] * c + this.B_re[A] * h;
|
|
191060
191067
|
return n.x = w * this.a + this.x0, n.y = Q * this.a + this.y0, n;
|
|
191061
191068
|
}
|
|
191062
|
-
function
|
|
191069
|
+
function mAe(n) {
|
|
191063
191070
|
var A, e = n.x, t = n.y, i = e - this.x0, r = t - this.y0, s = r / this.a, o = i / this.a, a = 1, l = 0, D, P, c = 0, h = 0;
|
|
191064
191071
|
for (A = 1; A <= 6; A++)
|
|
191065
191072
|
D = a * s - l * o, P = l * s + a * o, a = D, l = P, c = c + this.C_re[A] * a - this.C_im[A] * l, h = h + this.C_im[A] * a + this.C_re[A] * l;
|
|
@@ -191080,42 +191087,42 @@ function BAe(n) {
|
|
|
191080
191087
|
var R = this.lat0 + Y * cm * 1e5, J = this.long0 + b;
|
|
191081
191088
|
return n.x = J, n.y = R, n;
|
|
191082
191089
|
}
|
|
191083
|
-
var
|
|
191084
|
-
const
|
|
191085
|
-
init:
|
|
191086
|
-
forward:
|
|
191087
|
-
inverse:
|
|
191088
|
-
names:
|
|
191090
|
+
var IAe = ["New_Zealand_Map_Grid", "nzmg"];
|
|
191091
|
+
const MAe = {
|
|
191092
|
+
init: BAe,
|
|
191093
|
+
forward: pAe,
|
|
191094
|
+
inverse: mAe,
|
|
191095
|
+
names: IAe
|
|
191089
191096
|
};
|
|
191090
|
-
function
|
|
191097
|
+
function TAe() {
|
|
191091
191098
|
}
|
|
191092
|
-
function
|
|
191099
|
+
function yAe(n) {
|
|
191093
191100
|
var A = n.x, e = n.y, t = Qi(A - this.long0, this.over), i = this.x0 + this.a * t, r = this.y0 + this.a * Math.log(Math.tan(Math.PI / 4 + e / 2.5)) * 1.25;
|
|
191094
191101
|
return n.x = i, n.y = r, n;
|
|
191095
191102
|
}
|
|
191096
|
-
function
|
|
191103
|
+
function OAe(n) {
|
|
191097
191104
|
n.x -= this.x0, n.y -= this.y0;
|
|
191098
191105
|
var A = Qi(this.long0 + n.x / this.a, this.over), e = 2.5 * (Math.atan(Math.exp(0.8 * n.y / this.a)) - Math.PI / 4);
|
|
191099
191106
|
return n.x = A, n.y = e, n;
|
|
191100
191107
|
}
|
|
191101
|
-
var
|
|
191102
|
-
const
|
|
191103
|
-
init:
|
|
191104
|
-
forward:
|
|
191105
|
-
inverse:
|
|
191106
|
-
names:
|
|
191108
|
+
var kAe = ["Miller_Cylindrical", "mill"];
|
|
191109
|
+
const bAe = {
|
|
191110
|
+
init: TAe,
|
|
191111
|
+
forward: yAe,
|
|
191112
|
+
inverse: OAe,
|
|
191113
|
+
names: kAe
|
|
191107
191114
|
};
|
|
191108
|
-
var
|
|
191109
|
-
function
|
|
191115
|
+
var zAe = 20;
|
|
191116
|
+
function NAe() {
|
|
191110
191117
|
this.sphere ? (this.n = 1, this.m = 0, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1)) : this.en = X6(this.es);
|
|
191111
191118
|
}
|
|
191112
|
-
function
|
|
191119
|
+
function xAe(n) {
|
|
191113
191120
|
var A, e, t = n.x, i = n.y;
|
|
191114
191121
|
if (t = Qi(t - this.long0, this.over), this.sphere) {
|
|
191115
191122
|
if (!this.m)
|
|
191116
191123
|
i = this.n !== 1 ? Math.asin(this.n * Math.sin(i)) : i;
|
|
191117
191124
|
else
|
|
191118
|
-
for (var r = this.n * Math.sin(i), s =
|
|
191125
|
+
for (var r = this.n * Math.sin(i), s = zAe; s; --s) {
|
|
191119
191126
|
var o = (this.m * i + Math.sin(i) - r) / (this.m + Math.cos(i));
|
|
191120
191127
|
if (i -= o, Math.abs(o) < oi)
|
|
191121
191128
|
break;
|
|
@@ -191127,21 +191134,21 @@ function zAe(n) {
|
|
|
191127
191134
|
}
|
|
191128
191135
|
return n.x = A, n.y = e, n;
|
|
191129
191136
|
}
|
|
191130
|
-
function
|
|
191137
|
+
function LAe(n) {
|
|
191131
191138
|
var A, e, t, i;
|
|
191132
191139
|
return n.x -= this.x0, t = n.x / this.a, n.y -= this.y0, A = n.y / this.a, this.sphere ? (A /= this.C_y, t = t / (this.C_x * (this.m + Math.cos(A))), this.m ? A = FQ((this.m * A + Math.sin(A)) / this.n) : this.n !== 1 && (A = FQ(Math.sin(A) / this.n)), t = Qi(t + this.long0, this.over), A = _Q(A)) : (A = _6(n.y / this.a, this.es, this.en), i = Math.abs(A), i < Vt ? (i = Math.sin(A), e = this.long0 + n.x * Math.sqrt(1 - this.es * i * i) / (this.a * Math.cos(A)), t = Qi(e, this.over)) : i - oi < Vt && (t = this.long0)), n.x = t, n.y = A, n;
|
|
191133
191140
|
}
|
|
191134
|
-
var
|
|
191135
|
-
const
|
|
191136
|
-
init:
|
|
191137
|
-
forward:
|
|
191138
|
-
inverse:
|
|
191139
|
-
names:
|
|
191141
|
+
var UAe = ["Sinusoidal", "sinu"];
|
|
191142
|
+
const jAe = {
|
|
191143
|
+
init: NAe,
|
|
191144
|
+
forward: xAe,
|
|
191145
|
+
inverse: LAe,
|
|
191146
|
+
names: UAe
|
|
191140
191147
|
};
|
|
191141
|
-
function
|
|
191148
|
+
function SAe() {
|
|
191142
191149
|
this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0;
|
|
191143
191150
|
}
|
|
191144
|
-
function
|
|
191151
|
+
function FAe(n) {
|
|
191145
191152
|
for (var A = n.x, e = n.y, t = Qi(A - this.long0, this.over), i = e, r = Math.PI * Math.sin(e); ; ) {
|
|
191146
191153
|
var s = -(i + Math.sin(i) - r) / (1 + Math.cos(i));
|
|
191147
191154
|
if (i += s, Math.abs(s) < oi)
|
|
@@ -191151,7 +191158,7 @@ function jAe(n) {
|
|
|
191151
191158
|
var o = 0.900316316158 * this.a * t * Math.cos(i) + this.x0, a = 1.4142135623731 * this.a * Math.sin(i) + this.y0;
|
|
191152
191159
|
return n.x = o, n.y = a, n;
|
|
191153
191160
|
}
|
|
191154
|
-
function
|
|
191161
|
+
function RAe(n) {
|
|
191155
191162
|
var A, e;
|
|
191156
191163
|
n.x -= this.x0, n.y -= this.y0, e = n.y / (1.4142135623731 * this.a), Math.abs(e) > 0.999999999999 && (e = 0.999999999999), A = Math.asin(e);
|
|
191157
191164
|
var t = Qi(this.long0 + n.x / (0.900316316158 * this.a * Math.cos(A)), this.over);
|
|
@@ -191159,17 +191166,17 @@ function SAe(n) {
|
|
|
191159
191166
|
var i = Math.asin(e);
|
|
191160
191167
|
return n.x = t, n.y = i, n;
|
|
191161
191168
|
}
|
|
191162
|
-
var
|
|
191163
|
-
const
|
|
191164
|
-
init:
|
|
191165
|
-
forward:
|
|
191166
|
-
inverse:
|
|
191167
|
-
names:
|
|
191169
|
+
var YAe = ["Mollweide", "moll"];
|
|
191170
|
+
const HAe = {
|
|
191171
|
+
init: SAe,
|
|
191172
|
+
forward: FAe,
|
|
191173
|
+
inverse: RAe,
|
|
191174
|
+
names: YAe
|
|
191168
191175
|
};
|
|
191169
|
-
function
|
|
191176
|
+
function JAe() {
|
|
191170
191177
|
Math.abs(this.lat1 + this.lat2) < oi || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = rM(this.es), this.e1 = sM(this.es), this.e2 = oM(this.es), this.e3 = aM(this.es), this.sin_phi = Math.sin(this.lat1), this.cos_phi = Math.cos(this.lat1), this.ms1 = rh(this.e, this.sin_phi, this.cos_phi), this.ml1 = Xa(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < oi ? this.ns = this.sin_phi : (this.sin_phi = Math.sin(this.lat2), this.cos_phi = Math.cos(this.lat2), this.ms2 = rh(this.e, this.sin_phi, this.cos_phi), this.ml2 = Xa(this.e0, this.e1, this.e2, this.e3, this.lat2), this.ns = (this.ms1 - this.ms2) / (this.ml2 - this.ml1)), this.g = this.ml1 + this.ms1 / this.ns, this.ml0 = Xa(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
|
|
191171
191178
|
}
|
|
191172
|
-
function
|
|
191179
|
+
function GAe(n) {
|
|
191173
191180
|
var A = n.x, e = n.y, t;
|
|
191174
191181
|
if (this.sphere)
|
|
191175
191182
|
t = this.a * (this.g - e);
|
|
@@ -191180,7 +191187,7 @@ function HAe(n) {
|
|
|
191180
191187
|
var r = this.ns * Qi(A - this.long0, this.over), s = this.x0 + t * Math.sin(r), o = this.y0 + this.rh - t * Math.cos(r);
|
|
191181
191188
|
return n.x = s, n.y = o, n;
|
|
191182
191189
|
}
|
|
191183
|
-
function
|
|
191190
|
+
function ZAe(n) {
|
|
191184
191191
|
n.x -= this.x0, n.y = this.rh - n.y + this.y0;
|
|
191185
191192
|
var A, e, t, i;
|
|
191186
191193
|
this.ns >= 0 ? (e = Math.sqrt(n.x * n.x + n.y * n.y), A = 1) : (e = -Math.sqrt(n.x * n.x + n.y * n.y), A = -1);
|
|
@@ -191190,17 +191197,17 @@ function JAe(n) {
|
|
|
191190
191197
|
var s = this.g - e / this.a;
|
|
191191
191198
|
return t = ZO(s, this.e0, this.e1, this.e2, this.e3), i = Qi(this.long0 + r / this.ns, this.over), n.x = i, n.y = t, n;
|
|
191192
191199
|
}
|
|
191193
|
-
var
|
|
191194
|
-
const
|
|
191195
|
-
init:
|
|
191196
|
-
forward:
|
|
191197
|
-
inverse:
|
|
191198
|
-
names:
|
|
191200
|
+
var KAe = ["Equidistant_Conic", "eqdc"];
|
|
191201
|
+
const VAe = {
|
|
191202
|
+
init: JAe,
|
|
191203
|
+
forward: GAe,
|
|
191204
|
+
inverse: ZAe,
|
|
191205
|
+
names: KAe
|
|
191199
191206
|
};
|
|
191200
|
-
function
|
|
191207
|
+
function qAe() {
|
|
191201
191208
|
this.R = this.a;
|
|
191202
191209
|
}
|
|
191203
|
-
function
|
|
191210
|
+
function WAe(n) {
|
|
191204
191211
|
var A = n.x, e = n.y, t = Qi(A - this.long0, this.over), i, r;
|
|
191205
191212
|
Math.abs(e) <= oi && (i = this.x0 + this.R * t, r = this.y0);
|
|
191206
191213
|
var s = FQ(2 * Math.abs(e / Math.PI));
|
|
@@ -191210,18 +191217,18 @@ function VAe(n) {
|
|
|
191210
191217
|
var Q = a + P;
|
|
191211
191218
|
return u = Math.PI * this.R * (h * Q - o * Math.sqrt((g + a) * (a + 1) - Q * Q)) / (g + a), e >= 0 ? r = this.y0 + u : r = this.y0 - u, n.x = i, n.y = r, n;
|
|
191212
191219
|
}
|
|
191213
|
-
function
|
|
191220
|
+
function XAe(n) {
|
|
191214
191221
|
var A, e, t, i, r, s, o, a, l, D, P, c, h;
|
|
191215
191222
|
return n.x -= this.x0, n.y -= this.y0, P = Math.PI * this.R, t = n.x / P, i = n.y / P, r = t * t + i * i, s = -Math.abs(i) * (1 + r), o = s - 2 * i * i + t * t, a = -2 * s + 1 + 2 * i * i + r * r, h = i * i / a + (2 * o * o * o / a / a / a - 9 * s * o / a / a) / 27, l = (s - o * o / 3 / a) / a, D = 2 * Math.sqrt(-l / 3), P = 3 * h / l / D, Math.abs(P) > 1 && (P >= 0 ? P = 1 : P = -1), c = Math.acos(P) / 3, n.y >= 0 ? e = (-D * Math.cos(c + Math.PI / 3) - o / 3 / a) * Math.PI : e = -(-D * Math.cos(c + Math.PI / 3) - o / 3 / a) * Math.PI, Math.abs(t) < oi ? A = this.long0 : A = Qi(this.long0 + Math.PI * (r - 1 + Math.sqrt(1 + 2 * (t * t - i * i) + r * r)) / 2 / t, this.over), n.x = A, n.y = e, n;
|
|
191216
191223
|
}
|
|
191217
|
-
var
|
|
191218
|
-
const
|
|
191219
|
-
init:
|
|
191220
|
-
forward:
|
|
191221
|
-
inverse:
|
|
191222
|
-
names:
|
|
191224
|
+
var _Ae = ["Van_der_Grinten_I", "VanDerGrinten", "Van_der_Grinten", "vandg"];
|
|
191225
|
+
const $Ae = {
|
|
191226
|
+
init: qAe,
|
|
191227
|
+
forward: WAe,
|
|
191228
|
+
inverse: XAe,
|
|
191229
|
+
names: _Ae
|
|
191223
191230
|
};
|
|
191224
|
-
function
|
|
191231
|
+
function Aee(n, A, e, t, i, r) {
|
|
191225
191232
|
const s = t - A, o = Math.atan((1 - r) * Math.tan(n)), a = Math.atan((1 - r) * Math.tan(e)), l = Math.sin(o), D = Math.cos(o), P = Math.sin(a), c = Math.cos(a);
|
|
191226
191233
|
let h = s, g, u = 100, Q, w, C, E, p, m, T, z, L, b, U, Y, R, J;
|
|
191227
191234
|
do {
|
|
@@ -191233,7 +191240,7 @@ function _Ae(n, A, e, t, i, r) {
|
|
|
191233
191240
|
} while (Math.abs(h - g) > 1e-12 && --u > 0);
|
|
191234
191241
|
return u === 0 ? { azi1: NaN, s12: NaN } : (b = T * (i * i - i * (1 - r) * (i * (1 - r))) / (i * (1 - r) * (i * (1 - r))), U = 1 + b / 16384 * (4096 + b * (-768 + b * (320 - 175 * b))), Y = b / 1024 * (256 + b * (-128 + b * (74 - 47 * b))), R = Y * C * (z + Y / 4 * (E * (-1 + 2 * z * z) - Y / 6 * z * (-3 + 4 * C * C) * (-3 + 4 * z * z))), J = i * (1 - r) * U * (p - R), { azi1: Math.atan2(c * Q, D * P - l * c * w), s12: J });
|
|
191235
191242
|
}
|
|
191236
|
-
function
|
|
191243
|
+
function eee(n, A, e, t, i, r) {
|
|
191237
191244
|
const s = Math.atan((1 - r) * Math.tan(n)), o = Math.sin(s), a = Math.cos(s), l = Math.sin(e), D = Math.cos(e), P = Math.atan2(o, a * D), c = a * l, h = 1 - c * c, g = h * (i * i - i * (1 - r) * (i * (1 - r))) / (i * (1 - r) * (i * (1 - r))), u = 1 + g / 16384 * (4096 + g * (-768 + g * (320 - 175 * g))), Q = g / 1024 * (256 + g * (-128 + g * (74 - 47 * g)));
|
|
191238
191245
|
let w = t / (i * (1 - r) * u), C, E = 100, p, m, T, z;
|
|
191239
191246
|
do
|
|
@@ -191250,42 +191257,42 @@ function $Ae(n, A, e, t, i, r) {
|
|
|
191250
191257
|
), Y = r / 16 * h * (4 + r * (4 - 3 * h)), R = U - (1 - Y) * r * c * (w + Y * m * (p + Y * T * (-1 + 2 * p * p))), J = A + R;
|
|
191251
191258
|
return { lat2: b, lon2: J };
|
|
191252
191259
|
}
|
|
191253
|
-
function
|
|
191260
|
+
function tee() {
|
|
191254
191261
|
this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0), this.f = this.es / (1 + Math.sqrt(1 - this.es));
|
|
191255
191262
|
}
|
|
191256
|
-
function
|
|
191263
|
+
function iee(n) {
|
|
191257
191264
|
var A = n.x, e = n.y, t = Math.sin(n.y), i = Math.cos(n.y), r = Qi(A - this.long0, this.over), s, o, a, l, D, P, c, h, g, u, Q;
|
|
191258
|
-
return this.sphere ? Math.abs(this.sin_p12 - 1) <= oi ? (n.x = this.x0 + this.a * (Vt - e) * Math.sin(r), n.y = this.y0 - this.a * (Vt - e) * Math.cos(r), n) : Math.abs(this.sin_p12 + 1) <= oi ? (n.x = this.x0 + this.a * (Vt + e) * Math.sin(r), n.y = this.y0 + this.a * (Vt + e) * Math.cos(r), n) : (g = this.sin_p12 * t + this.cos_p12 * i * Math.cos(r), c = Math.acos(g), h = c ? c / Math.sin(c) : 1, n.x = this.x0 + this.a * h * i * Math.sin(r), n.y = this.y0 + this.a * h * (this.cos_p12 * t - this.sin_p12 * i * Math.cos(r)), n) : (s = rM(this.es), o = sM(this.es), a = oM(this.es), l = aM(this.es), Math.abs(this.sin_p12 - 1) <= oi ? (D = this.a * Xa(s, o, a, l, Vt), P = this.a * Xa(s, o, a, l, e), n.x = this.x0 + (D - P) * Math.sin(r), n.y = this.y0 - (D - P) * Math.cos(r), n) : Math.abs(this.sin_p12 + 1) <= oi ? (D = this.a * Xa(s, o, a, l, Vt), P = this.a * Xa(s, o, a, l, e), n.x = this.x0 + (D + P) * Math.sin(r), n.y = this.y0 + (D + P) * Math.cos(r), n) : Math.abs(A) < oi && Math.abs(e - this.lat0) < oi ? (n.x = n.y = 0, n) : (u =
|
|
191265
|
+
return this.sphere ? Math.abs(this.sin_p12 - 1) <= oi ? (n.x = this.x0 + this.a * (Vt - e) * Math.sin(r), n.y = this.y0 - this.a * (Vt - e) * Math.cos(r), n) : Math.abs(this.sin_p12 + 1) <= oi ? (n.x = this.x0 + this.a * (Vt + e) * Math.sin(r), n.y = this.y0 + this.a * (Vt + e) * Math.cos(r), n) : (g = this.sin_p12 * t + this.cos_p12 * i * Math.cos(r), c = Math.acos(g), h = c ? c / Math.sin(c) : 1, n.x = this.x0 + this.a * h * i * Math.sin(r), n.y = this.y0 + this.a * h * (this.cos_p12 * t - this.sin_p12 * i * Math.cos(r)), n) : (s = rM(this.es), o = sM(this.es), a = oM(this.es), l = aM(this.es), Math.abs(this.sin_p12 - 1) <= oi ? (D = this.a * Xa(s, o, a, l, Vt), P = this.a * Xa(s, o, a, l, e), n.x = this.x0 + (D - P) * Math.sin(r), n.y = this.y0 - (D - P) * Math.cos(r), n) : Math.abs(this.sin_p12 + 1) <= oi ? (D = this.a * Xa(s, o, a, l, Vt), P = this.a * Xa(s, o, a, l, e), n.x = this.x0 + (D + P) * Math.sin(r), n.y = this.y0 + (D + P) * Math.cos(r), n) : Math.abs(A) < oi && Math.abs(e - this.lat0) < oi ? (n.x = n.y = 0, n) : (u = Aee(this.lat0, this.long0, e, A, this.a, this.f), Q = u.azi1, n.x = u.s12 * Math.sin(Q), n.y = u.s12 * Math.cos(Q), n));
|
|
191259
191266
|
}
|
|
191260
|
-
function
|
|
191267
|
+
function nee(n) {
|
|
191261
191268
|
n.x -= this.x0, n.y -= this.y0;
|
|
191262
191269
|
var A, e, t, i, r, s, o, a, l, D, P, c, h, g, u, Q;
|
|
191263
|
-
return this.sphere ? (A = Math.sqrt(n.x * n.x + n.y * n.y), A > 2 * Vt * this.a ? void 0 : (e = A / this.a, t = Math.sin(e), i = Math.cos(e), r = this.long0, Math.abs(A) <= oi ? s = this.lat0 : (s = FQ(i * this.sin_p12 + n.y * t * this.cos_p12 / A), o = Math.abs(this.lat0) - Vt, Math.abs(o) <= oi ? this.lat0 >= 0 ? r = Qi(this.long0 + Math.atan2(n.x, -n.y), this.over) : r = Qi(this.long0 - Math.atan2(-n.x, n.y), this.over) : r = Qi(this.long0 + Math.atan2(n.x * t, A * this.cos_p12 * i - n.y * this.sin_p12 * t), this.over)), n.x = r, n.y = s, n)) : (a = rM(this.es), l = sM(this.es), D = oM(this.es), P = aM(this.es), Math.abs(this.sin_p12 - 1) <= oi ? (c = this.a * Xa(a, l, D, P, Vt), A = Math.sqrt(n.x * n.x + n.y * n.y), h = c - A, s = ZO(h / this.a, a, l, D, P), r = Qi(this.long0 + Math.atan2(n.x, -1 * n.y), this.over), n.x = r, n.y = s, n) : Math.abs(this.sin_p12 + 1) <= oi ? (c = this.a * Xa(a, l, D, P, Vt), A = Math.sqrt(n.x * n.x + n.y * n.y), h = A - c, s = ZO(h / this.a, a, l, D, P), r = Qi(this.long0 + Math.atan2(n.x, n.y), this.over), n.x = r, n.y = s, n) : (g = Math.atan2(n.x, n.y), u = Math.sqrt(n.x * n.x + n.y * n.y), Q =
|
|
191264
|
-
}
|
|
191265
|
-
var
|
|
191266
|
-
const
|
|
191267
|
-
init:
|
|
191268
|
-
forward:
|
|
191269
|
-
inverse:
|
|
191270
|
-
names:
|
|
191270
|
+
return this.sphere ? (A = Math.sqrt(n.x * n.x + n.y * n.y), A > 2 * Vt * this.a ? void 0 : (e = A / this.a, t = Math.sin(e), i = Math.cos(e), r = this.long0, Math.abs(A) <= oi ? s = this.lat0 : (s = FQ(i * this.sin_p12 + n.y * t * this.cos_p12 / A), o = Math.abs(this.lat0) - Vt, Math.abs(o) <= oi ? this.lat0 >= 0 ? r = Qi(this.long0 + Math.atan2(n.x, -n.y), this.over) : r = Qi(this.long0 - Math.atan2(-n.x, n.y), this.over) : r = Qi(this.long0 + Math.atan2(n.x * t, A * this.cos_p12 * i - n.y * this.sin_p12 * t), this.over)), n.x = r, n.y = s, n)) : (a = rM(this.es), l = sM(this.es), D = oM(this.es), P = aM(this.es), Math.abs(this.sin_p12 - 1) <= oi ? (c = this.a * Xa(a, l, D, P, Vt), A = Math.sqrt(n.x * n.x + n.y * n.y), h = c - A, s = ZO(h / this.a, a, l, D, P), r = Qi(this.long0 + Math.atan2(n.x, -1 * n.y), this.over), n.x = r, n.y = s, n) : Math.abs(this.sin_p12 + 1) <= oi ? (c = this.a * Xa(a, l, D, P, Vt), A = Math.sqrt(n.x * n.x + n.y * n.y), h = A - c, s = ZO(h / this.a, a, l, D, P), r = Qi(this.long0 + Math.atan2(n.x, n.y), this.over), n.x = r, n.y = s, n) : (g = Math.atan2(n.x, n.y), u = Math.sqrt(n.x * n.x + n.y * n.y), Q = eee(this.lat0, this.long0, g, u, this.a, this.f), n.x = Q.lon2, n.y = Q.lat2, n));
|
|
191271
|
+
}
|
|
191272
|
+
var ree = ["Azimuthal_Equidistant", "aeqd"];
|
|
191273
|
+
const see = {
|
|
191274
|
+
init: tee,
|
|
191275
|
+
forward: iee,
|
|
191276
|
+
inverse: nee,
|
|
191277
|
+
names: ree
|
|
191271
191278
|
};
|
|
191272
|
-
function
|
|
191279
|
+
function oee() {
|
|
191273
191280
|
this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0);
|
|
191274
191281
|
}
|
|
191275
|
-
function
|
|
191282
|
+
function aee(n) {
|
|
191276
191283
|
var A, e, t, i, r, s, o, a, l = n.x, D = n.y;
|
|
191277
191284
|
return t = Qi(l - this.long0, this.over), A = Math.sin(D), e = Math.cos(D), i = Math.cos(t), s = this.sin_p14 * A + this.cos_p14 * e * i, r = 1, (s > 0 || Math.abs(s) <= oi) && (o = this.a * r * e * Math.sin(t), a = this.y0 + this.a * r * (this.cos_p14 * A - this.sin_p14 * e * i)), n.x = o, n.y = a, n;
|
|
191278
191285
|
}
|
|
191279
|
-
function
|
|
191286
|
+
function lee(n) {
|
|
191280
191287
|
var A, e, t, i, r, s, o;
|
|
191281
191288
|
return n.x -= this.x0, n.y -= this.y0, A = Math.sqrt(n.x * n.x + n.y * n.y), e = FQ(A / this.a), t = Math.sin(e), i = Math.cos(e), s = this.long0, Math.abs(A) <= oi ? (o = this.lat0, n.x = s, n.y = o, n) : (o = FQ(i * this.sin_p14 + n.y * t * this.cos_p14 / A), r = Math.abs(this.lat0) - Vt, Math.abs(r) <= oi ? (this.lat0 >= 0 ? s = Qi(this.long0 + Math.atan2(n.x, -n.y), this.over) : s = Qi(this.long0 - Math.atan2(-n.x, n.y), this.over), n.x = s, n.y = o, n) : (s = Qi(this.long0 + Math.atan2(n.x * t, A * this.cos_p14 * i - n.y * this.sin_p14 * t), this.over), n.x = s, n.y = o, n));
|
|
191282
191289
|
}
|
|
191283
|
-
var
|
|
191284
|
-
const
|
|
191285
|
-
init:
|
|
191286
|
-
forward:
|
|
191287
|
-
inverse:
|
|
191288
|
-
names:
|
|
191290
|
+
var Dee = ["ortho"];
|
|
191291
|
+
const Pee = {
|
|
191292
|
+
init: oee,
|
|
191293
|
+
forward: aee,
|
|
191294
|
+
inverse: lee,
|
|
191295
|
+
names: Dee
|
|
191289
191296
|
};
|
|
191290
191297
|
var cs = {
|
|
191291
191298
|
FRONT: 1,
|
|
@@ -191300,10 +191307,10 @@ var cs = {
|
|
|
191300
191307
|
AREA_2: 3,
|
|
191301
191308
|
AREA_3: 4
|
|
191302
191309
|
};
|
|
191303
|
-
function
|
|
191310
|
+
function cee() {
|
|
191304
191311
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Quadrilateralized Spherical Cube", this.lat0 >= Vt - pr / 2 ? this.face = cs.TOP : this.lat0 <= -(Vt - pr / 2) ? this.face = cs.BOTTOM : Math.abs(this.long0) <= pr ? this.face = cs.FRONT : Math.abs(this.long0) <= Vt + pr ? this.face = this.long0 > 0 ? cs.RIGHT : cs.LEFT : this.face = cs.BACK, this.es !== 0 && (this.one_minus_f = 1 - (this.a - this.b) / this.a, this.one_minus_f_squared = this.one_minus_f * this.one_minus_f);
|
|
191305
191312
|
}
|
|
191306
|
-
function
|
|
191313
|
+
function hee(n) {
|
|
191307
191314
|
var A = { x: 0, y: 0 }, e, t, i, r, s, o, a = { value: 0 };
|
|
191308
191315
|
if (n.x -= this.long0, this.es !== 0 ? e = Math.atan(this.one_minus_f_squared * Math.tan(n.y)) : e = n.y, t = n.x, this.face === cs.TOP)
|
|
191309
191316
|
r = Vt - e, t >= pr && t <= Vt + pr ? (a.value = mr.AREA_0, i = t - Vt) : t > Vt + pr || t <= -(Vt + pr) ? (a.value = mr.AREA_1, i = t > 0 ? t - Zs : t + Zs) : t > -(Vt + pr) && t <= -pr ? (a.value = mr.AREA_2, i = t + Vt) : (a.value = mr.AREA_3, i = t);
|
|
@@ -191315,7 +191322,7 @@ function Pee(n) {
|
|
|
191315
191322
|
}
|
|
191316
191323
|
return o = Math.atan(12 / Zs * (i + Math.acos(Math.sin(i) * Math.cos(pr)) - Vt)), s = Math.sqrt((1 - Math.cos(r)) / (Math.cos(o) * Math.cos(o)) / (1 - Math.cos(Math.atan(1 / Math.cos(i))))), a.value === mr.AREA_1 ? o += Vt : a.value === mr.AREA_2 ? o += Zs : a.value === mr.AREA_3 && (o += 1.5 * Zs), A.x = s * Math.cos(o), A.y = s * Math.sin(o), A.x = A.x * this.a + this.x0, A.y = A.y * this.a + this.y0, n.x = A.x, n.y = A.y, n;
|
|
191317
191324
|
}
|
|
191318
|
-
function
|
|
191325
|
+
function gee(n) {
|
|
191319
191326
|
var A = { lam: 0, phi: 0 }, e, t, i, r, s, o, a, l, D, P = { value: 0 };
|
|
191320
191327
|
if (n.x = (n.x - this.x0) / this.a, n.y = (n.y - this.y0) / this.a, t = Math.atan(Math.sqrt(n.x * n.x + n.y * n.y)), e = Math.atan2(n.y, n.x), n.x >= 0 && n.x >= Math.abs(n.y) ? P.value = mr.AREA_0 : n.y >= 0 && n.y >= Math.abs(n.x) ? (P.value = mr.AREA_1, e -= Vt) : n.x < 0 && -n.x >= Math.abs(n.y) ? (P.value = mr.AREA_2, e = e < 0 ? e + Zs : e - Zs) : (P.value = mr.AREA_3, e += Vt), D = Zs / 12 * Math.tan(e), s = Math.sin(D) / (Math.cos(D) - 1 / Math.sqrt(2)), o = Math.atan(s), i = Math.cos(e), r = Math.tan(t), a = 1 - i * i * r * r * (1 - Math.cos(Math.atan(1 / Math.cos(o)))), a < -1 ? a = -1 : a > 1 && (a = 1), this.face === cs.TOP)
|
|
191321
191328
|
l = Math.acos(a), A.phi = Vt - l, P.value === mr.AREA_0 ? A.lam = o + Vt : P.value === mr.AREA_1 ? A.lam = o < 0 ? o + Zs : o - Zs : P.value === mr.AREA_2 ? A.lam = o - Vt : A.lam = o;
|
|
@@ -191339,12 +191346,12 @@ function vE(n, A) {
|
|
|
191339
191346
|
var e = n + A;
|
|
191340
191347
|
return e < -Zs ? e += uI : e > +Zs && (e -= uI), e;
|
|
191341
191348
|
}
|
|
191342
|
-
var
|
|
191343
|
-
const
|
|
191344
|
-
init:
|
|
191345
|
-
forward:
|
|
191346
|
-
inverse:
|
|
191347
|
-
names:
|
|
191349
|
+
var uee = ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube", "qsc"];
|
|
191350
|
+
const Qee = {
|
|
191351
|
+
init: cee,
|
|
191352
|
+
forward: hee,
|
|
191353
|
+
inverse: gee,
|
|
191354
|
+
names: uee
|
|
191348
191355
|
};
|
|
191349
191356
|
var CU = [
|
|
191350
191357
|
[1, 22199e-21, -715515e-10, 31103e-10],
|
|
@@ -191386,12 +191393,12 @@ var CU = [
|
|
|
191386
191393
|
[0.9394, 840947e-8, -192841e-9, -42106e-10],
|
|
191387
191394
|
[0.9761, 616527e-8, -256e-6, -42106e-10],
|
|
191388
191395
|
[1, 328947e-8, -319159e-9, -42106e-10]
|
|
191389
|
-
], aaA = 0.8487, laA = 1.3523, DaA = kl / 5,
|
|
191396
|
+
], aaA = 0.8487, laA = 1.3523, DaA = kl / 5, wee = 1 / DaA, HC = 18, KO = function(n, A) {
|
|
191390
191397
|
return n[0] + A * (n[1] + A * (n[2] + A * n[3]));
|
|
191391
|
-
},
|
|
191398
|
+
}, fee = function(n, A) {
|
|
191392
191399
|
return n[1] + A * (2 * n[2] + A * 3 * n[3]);
|
|
191393
191400
|
};
|
|
191394
|
-
function
|
|
191401
|
+
function dee(n, A, e, t) {
|
|
191395
191402
|
for (var i = A; t; --t) {
|
|
191396
191403
|
var r = n(i);
|
|
191397
191404
|
if (i -= r, Math.abs(r) < e)
|
|
@@ -191399,19 +191406,19 @@ function wee(n, A, e, t) {
|
|
|
191399
191406
|
}
|
|
191400
191407
|
return i;
|
|
191401
191408
|
}
|
|
191402
|
-
function
|
|
191409
|
+
function vee() {
|
|
191403
191410
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.es = 0, this.title = this.title || "Robinson";
|
|
191404
191411
|
}
|
|
191405
|
-
function
|
|
191412
|
+
function Cee(n) {
|
|
191406
191413
|
var A = Qi(n.x - this.long0, this.over), e = Math.abs(n.y), t = Math.floor(e * DaA);
|
|
191407
|
-
t < 0 ? t = 0 : t >= HC && (t = HC - 1), e = kl * (e -
|
|
191414
|
+
t < 0 ? t = 0 : t >= HC && (t = HC - 1), e = kl * (e - wee * t);
|
|
191408
191415
|
var i = {
|
|
191409
191416
|
x: KO(CU[t], e) * A,
|
|
191410
191417
|
y: KO(Wp[t], e)
|
|
191411
191418
|
};
|
|
191412
191419
|
return n.y < 0 && (i.y = -i.y), i.x = i.x * this.a * aaA + this.x0, i.y = i.y * this.a * laA + this.y0, i;
|
|
191413
191420
|
}
|
|
191414
|
-
function
|
|
191421
|
+
function Eee(n) {
|
|
191415
191422
|
var A = {
|
|
191416
191423
|
x: (n.x - this.x0) / (this.a * aaA),
|
|
191417
191424
|
y: Math.abs(n.y - this.y0) / (this.a * laA)
|
|
@@ -191428,36 +191435,36 @@ function vee(n) {
|
|
|
191428
191435
|
else
|
|
191429
191436
|
break;
|
|
191430
191437
|
var t = Wp[e], i = 5 * (A.y - t[0]) / (Wp[e + 1][0] - t[0]);
|
|
191431
|
-
i =
|
|
191432
|
-
return (KO(t, r) - A.y) /
|
|
191438
|
+
i = dee(function(r) {
|
|
191439
|
+
return (KO(t, r) - A.y) / fee(t, r);
|
|
191433
191440
|
}, i, oi, 100), A.x /= KO(CU[e], i), A.y = (5 * e + i) * ys, n.y < 0 && (A.y = -A.y);
|
|
191434
191441
|
}
|
|
191435
191442
|
return A.x = Qi(A.x + this.long0, this.over), A;
|
|
191436
191443
|
}
|
|
191437
|
-
var
|
|
191438
|
-
const
|
|
191439
|
-
init:
|
|
191440
|
-
forward:
|
|
191441
|
-
inverse:
|
|
191442
|
-
names:
|
|
191444
|
+
var Bee = ["Robinson", "robin"];
|
|
191445
|
+
const pee = {
|
|
191446
|
+
init: vee,
|
|
191447
|
+
forward: Cee,
|
|
191448
|
+
inverse: Eee,
|
|
191449
|
+
names: Bee
|
|
191443
191450
|
};
|
|
191444
|
-
function
|
|
191451
|
+
function mee() {
|
|
191445
191452
|
this.name = "geocent";
|
|
191446
191453
|
}
|
|
191447
|
-
function
|
|
191454
|
+
function Iee(n) {
|
|
191448
191455
|
var A = XoA(n, this.es, this.a);
|
|
191449
191456
|
return A;
|
|
191450
191457
|
}
|
|
191451
|
-
function
|
|
191458
|
+
function Mee(n) {
|
|
191452
191459
|
var A = _oA(n, this.es, this.a, this.b);
|
|
191453
191460
|
return A;
|
|
191454
191461
|
}
|
|
191455
|
-
var
|
|
191456
|
-
const
|
|
191457
|
-
init:
|
|
191458
|
-
forward:
|
|
191459
|
-
inverse:
|
|
191460
|
-
names:
|
|
191462
|
+
var Tee = ["Geocentric", "geocentric", "geocent", "Geocent"];
|
|
191463
|
+
const yee = {
|
|
191464
|
+
init: mee,
|
|
191465
|
+
forward: Iee,
|
|
191466
|
+
inverse: Mee,
|
|
191467
|
+
names: Tee
|
|
191461
191468
|
};
|
|
191462
191469
|
var Ia = {
|
|
191463
191470
|
N_POLE: 0,
|
|
@@ -191476,7 +191483,7 @@ var Ia = {
|
|
|
191476
191483
|
lat0: { def: 0, num: !0 }
|
|
191477
191484
|
// default is Equator, conversion to rad is automatic
|
|
191478
191485
|
};
|
|
191479
|
-
function
|
|
191486
|
+
function Oee() {
|
|
191480
191487
|
if (Object.keys(Pp).forEach((function(e) {
|
|
191481
191488
|
if (typeof this[e] > "u")
|
|
191482
191489
|
this[e] = Pp[e].def;
|
|
@@ -191492,7 +191499,7 @@ function Tee() {
|
|
|
191492
191499
|
var n = this.tilt, A = this.azi;
|
|
191493
191500
|
this.cg = Math.cos(A), this.sg = Math.sin(A), this.cw = Math.cos(n), this.sw = Math.sin(n);
|
|
191494
191501
|
}
|
|
191495
|
-
function
|
|
191502
|
+
function kee(n) {
|
|
191496
191503
|
n.x -= this.long0;
|
|
191497
191504
|
var A = Math.sin(n.y), e = Math.cos(n.y), t = Math.cos(n.x), i, r;
|
|
191498
191505
|
switch (this.mode) {
|
|
@@ -191526,7 +191533,7 @@ function yee(n) {
|
|
|
191526
191533
|
var s, o;
|
|
191527
191534
|
return s = r * this.cg + i * this.sg, o = 1 / (s * this.sw * this.h1 + this.cw), i = (i * this.cg - r * this.sg) * this.cw * o, r = s * o, n.x = i * this.a, n.y = r * this.a, n;
|
|
191528
191535
|
}
|
|
191529
|
-
function
|
|
191536
|
+
function bee(n) {
|
|
191530
191537
|
n.x /= this.a, n.y /= this.a;
|
|
191531
191538
|
var A = { x: n.x, y: n.y }, e, t, i;
|
|
191532
191539
|
i = 1 / (this.pn1 - n.y * this.sw), e = this.pn1 * n.x * i, t = this.pn1 * n.y * this.cw * i, n.x = e * this.cg + t * this.sg, n.y = t * this.cg - e * this.sg;
|
|
@@ -191553,14 +191560,14 @@ function Oee(n) {
|
|
|
191553
191560
|
}
|
|
191554
191561
|
return n.x = A.x + this.long0, n.y = A.y, n;
|
|
191555
191562
|
}
|
|
191556
|
-
var
|
|
191557
|
-
const
|
|
191558
|
-
init:
|
|
191559
|
-
forward:
|
|
191560
|
-
inverse:
|
|
191561
|
-
names:
|
|
191563
|
+
var zee = ["Tilted_Perspective", "tpers"];
|
|
191564
|
+
const Nee = {
|
|
191565
|
+
init: Oee,
|
|
191566
|
+
forward: kee,
|
|
191567
|
+
inverse: bee,
|
|
191568
|
+
names: zee
|
|
191562
191569
|
};
|
|
191563
|
-
function
|
|
191570
|
+
function xee() {
|
|
191564
191571
|
if (this.flip_axis = this.sweep === "x" ? 1 : 0, this.h = Number(this.h), this.radius_g_1 = this.h / this.a, this.radius_g_1 <= 0 || this.radius_g_1 > 1e10)
|
|
191565
191572
|
throw new Error();
|
|
191566
191573
|
if (this.radius_g = 1 + this.radius_g_1, this.C = this.radius_g * this.radius_g - 1, this.es !== 0) {
|
|
@@ -191570,7 +191577,7 @@ function zee() {
|
|
|
191570
191577
|
this.radius_p = 1, this.radius_p2 = 1, this.radius_p_inv2 = 1, this.shape = "sphere";
|
|
191571
191578
|
this.title || (this.title = "Geostationary Satellite View");
|
|
191572
191579
|
}
|
|
191573
|
-
function
|
|
191580
|
+
function Lee(n) {
|
|
191574
191581
|
var A = n.x, e = n.y, t, i, r, s;
|
|
191575
191582
|
if (A = A - this.long0, this.shape === "ellipse") {
|
|
191576
191583
|
e = Math.atan(this.radius_p2 * Math.tan(e));
|
|
@@ -191581,7 +191588,7 @@ function Nee(n) {
|
|
|
191581
191588
|
} else this.shape === "sphere" && (t = Math.cos(e), i = Math.cos(A) * t, r = Math.sin(A) * t, s = Math.sin(e), t = this.radius_g - i, this.flip_axis ? (n.x = this.radius_g_1 * Math.atan(r / Ml(s, t)), n.y = this.radius_g_1 * Math.atan(s / t)) : (n.x = this.radius_g_1 * Math.atan(r / t), n.y = this.radius_g_1 * Math.atan(s / Ml(r, t))));
|
|
191582
191589
|
return n.x = n.x * this.a, n.y = n.y * this.a, n;
|
|
191583
191590
|
}
|
|
191584
|
-
function
|
|
191591
|
+
function Uee(n) {
|
|
191585
191592
|
var A = -1, e = 0, t = 0, i, r, s, o;
|
|
191586
191593
|
if (n.x = n.x / this.a, n.y = n.y / this.a, this.shape === "ellipse") {
|
|
191587
191594
|
this.flip_axis ? (t = Math.tan(n.y / this.radius_g_1), e = Math.tan(n.x / this.radius_g_1) * Ml(1, t)) : (e = Math.tan(n.x / this.radius_g_1), t = Math.tan(n.y / this.radius_g_1) * Ml(1, e));
|
|
@@ -191596,37 +191603,37 @@ function xee(n) {
|
|
|
191596
191603
|
}
|
|
191597
191604
|
return n.x = n.x + this.long0, n;
|
|
191598
191605
|
}
|
|
191599
|
-
var
|
|
191600
|
-
const
|
|
191601
|
-
init:
|
|
191602
|
-
forward:
|
|
191603
|
-
inverse:
|
|
191604
|
-
names:
|
|
191606
|
+
var jee = ["Geostationary Satellite View", "Geostationary_Satellite", "geos"];
|
|
191607
|
+
const See = {
|
|
191608
|
+
init: xee,
|
|
191609
|
+
forward: Lee,
|
|
191610
|
+
inverse: Uee,
|
|
191611
|
+
names: jee
|
|
191605
191612
|
};
|
|
191606
191613
|
var hm = 1.340264, gm = -0.081106, um = 893e-6, Qm = 3796e-6, VO = Math.sqrt(3) / 2;
|
|
191607
|
-
function
|
|
191614
|
+
function Fee() {
|
|
191608
191615
|
this.es = 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0;
|
|
191609
191616
|
}
|
|
191610
|
-
function
|
|
191617
|
+
function Ree(n) {
|
|
191611
191618
|
var A = Qi(n.x - this.long0, this.over), e = n.y, t = Math.asin(VO * Math.sin(e)), i = t * t, r = i * i * i;
|
|
191612
191619
|
return n.x = A * Math.cos(t) / (VO * (hm + 3 * gm * i + r * (7 * um + 9 * Qm * i))), n.y = t * (hm + gm * i + r * (um + Qm * i)), n.x = this.a * n.x + this.x0, n.y = this.a * n.y + this.y0, n;
|
|
191613
191620
|
}
|
|
191614
|
-
function
|
|
191621
|
+
function Yee(n) {
|
|
191615
191622
|
n.x = (n.x - this.x0) / this.a, n.y = (n.y - this.y0) / this.a;
|
|
191616
191623
|
var A = 1e-9, e = 12, t = n.y, i, r, s, o, a, l;
|
|
191617
191624
|
for (l = 0; l < e && (i = t * t, r = i * i * i, s = t * (hm + gm * i + r * (um + Qm * i)) - n.y, o = hm + 3 * gm * i + r * (7 * um + 9 * Qm * i), t -= a = s / o, !(Math.abs(a) < A)); ++l)
|
|
191618
191625
|
;
|
|
191619
191626
|
return i = t * t, r = i * i * i, n.x = VO * n.x * (hm + 3 * gm * i + r * (7 * um + 9 * Qm * i)) / Math.cos(t), n.y = Math.asin(Math.sin(t) / VO), n.x = Qi(n.x + this.long0, this.over), n;
|
|
191620
191627
|
}
|
|
191621
|
-
var
|
|
191622
|
-
const
|
|
191623
|
-
init:
|
|
191624
|
-
forward:
|
|
191625
|
-
inverse:
|
|
191626
|
-
names:
|
|
191628
|
+
var Hee = ["eqearth", "Equal Earth", "Equal_Earth"];
|
|
191629
|
+
const Jee = {
|
|
191630
|
+
init: Fee,
|
|
191631
|
+
forward: Ree,
|
|
191632
|
+
inverse: Yee,
|
|
191633
|
+
names: Hee
|
|
191627
191634
|
};
|
|
191628
191635
|
var fI = 1e-10;
|
|
191629
|
-
function
|
|
191636
|
+
function Gee() {
|
|
191630
191637
|
var n;
|
|
191631
191638
|
if (this.phi1 = this.lat1, Math.abs(this.phi1) < fI)
|
|
191632
191639
|
throw new Error();
|
|
@@ -191635,13 +191642,13 @@ function Hee() {
|
|
|
191635
191642
|
this.am1 = Math.sin(this.phi1),
|
|
191636
191643
|
n = Math.cos(this.phi1),
|
|
191637
191644
|
this.en
|
|
191638
|
-
), this.am1 = n / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse =
|
|
191645
|
+
), this.am1 = n / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse = Kee, this.forward = Zee) : (Math.abs(this.phi1) + fI >= Vt ? this.cphi1 = 0 : this.cphi1 = 1 / Math.tan(this.phi1), this.inverse = qee, this.forward = Vee);
|
|
191639
191646
|
}
|
|
191640
|
-
function
|
|
191647
|
+
function Zee(n) {
|
|
191641
191648
|
var A = Qi(n.x - (this.long0 || 0), this.over), e = n.y, t, i, r;
|
|
191642
191649
|
return t = this.am1 + this.m1 - Q0(e, i = Math.sin(e), r = Math.cos(e), this.en), i = r * A / (t * Math.sqrt(1 - this.es * i * i)), n.x = t * Math.sin(i), n.y = this.am1 - t * Math.cos(i), n.x = this.a * n.x + (this.x0 || 0), n.y = this.a * n.y + (this.y0 || 0), n;
|
|
191643
191650
|
}
|
|
191644
|
-
function
|
|
191651
|
+
function Kee(n) {
|
|
191645
191652
|
n.x = (n.x - (this.x0 || 0)) / this.a, n.y = (n.y - (this.y0 || 0)) / this.a;
|
|
191646
191653
|
var A, e, t, i;
|
|
191647
191654
|
if (e = Ml(n.x, n.y = this.am1 - n.y), i = _6(this.am1 + this.m1 - e, this.es, this.en), (A = Math.abs(i)) < Vt)
|
|
@@ -191652,29 +191659,29 @@ function Gee(n) {
|
|
|
191652
191659
|
throw new Error();
|
|
191653
191660
|
return n.x = Qi(t + (this.long0 || 0), this.over), n.y = _Q(i), n;
|
|
191654
191661
|
}
|
|
191655
|
-
function
|
|
191662
|
+
function Vee(n) {
|
|
191656
191663
|
var A = Qi(n.x - (this.long0 || 0), this.over), e = n.y, t, i;
|
|
191657
191664
|
return i = this.cphi1 + this.phi1 - e, Math.abs(i) > fI ? (n.x = i * Math.sin(t = A * Math.cos(e) / i), n.y = this.cphi1 - i * Math.cos(t)) : n.x = n.y = 0, n.x = this.a * n.x + (this.x0 || 0), n.y = this.a * n.y + (this.y0 || 0), n;
|
|
191658
191665
|
}
|
|
191659
|
-
function
|
|
191666
|
+
function qee(n) {
|
|
191660
191667
|
n.x = (n.x - (this.x0 || 0)) / this.a, n.y = (n.y - (this.y0 || 0)) / this.a;
|
|
191661
191668
|
var A, e, t = Ml(n.x, n.y = this.cphi1 - n.y);
|
|
191662
191669
|
if (e = this.cphi1 + this.phi1 - t, Math.abs(e) > Vt)
|
|
191663
191670
|
throw new Error();
|
|
191664
191671
|
return Math.abs(Math.abs(e) - Vt) <= fI ? A = 0 : A = t * Math.atan2(n.x, n.y) / Math.cos(e), n.x = Qi(A + (this.long0 || 0), this.over), n.y = _Q(e), n;
|
|
191665
191672
|
}
|
|
191666
|
-
var
|
|
191667
|
-
const
|
|
191668
|
-
init:
|
|
191669
|
-
names:
|
|
191673
|
+
var Wee = ["bonne", "Bonne (Werner lat_1=90)"];
|
|
191674
|
+
const Xee = {
|
|
191675
|
+
init: Gee,
|
|
191676
|
+
names: Wee
|
|
191670
191677
|
}, yW = {
|
|
191671
191678
|
OBLIQUE: {
|
|
191672
|
-
forward:
|
|
191673
|
-
inverse:
|
|
191679
|
+
forward: tte,
|
|
191680
|
+
inverse: nte
|
|
191674
191681
|
},
|
|
191675
191682
|
TRANSVERSE: {
|
|
191676
|
-
forward:
|
|
191677
|
-
inverse:
|
|
191683
|
+
forward: ite,
|
|
191684
|
+
inverse: rte
|
|
191678
191685
|
}
|
|
191679
191686
|
}, qO = {
|
|
191680
191687
|
ROTATE: {
|
|
@@ -191693,7 +191700,7 @@ const qee = {
|
|
|
191693
191700
|
o_lat_2: "oLat2"
|
|
191694
191701
|
}
|
|
191695
191702
|
};
|
|
191696
|
-
function
|
|
191703
|
+
function _ee() {
|
|
191697
191704
|
if (this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.title = this.title || "General Oblique Transformation", this.isIdentity = KoA.includes(this.o_proj), !this.o_proj)
|
|
191698
191705
|
throw new Error("Missing parameter: o_proj");
|
|
191699
191706
|
if (this.o_proj === "ob_tran")
|
|
@@ -191728,16 +191735,16 @@ function Wee() {
|
|
|
191728
191735
|
}
|
|
191729
191736
|
if (!e)
|
|
191730
191737
|
throw new Error("No valid parameters provided for ob_tran projection.");
|
|
191731
|
-
const { lamp: r, phip: s } =
|
|
191738
|
+
const { lamp: r, phip: s } = ete(this, e);
|
|
191732
191739
|
this.lamp = r, Math.abs(s) > oi ? (this.cphip = Math.cos(s), this.sphip = Math.sin(s), this.projectionType = yW.OBLIQUE) : this.projectionType = yW.TRANSVERSE;
|
|
191733
191740
|
}
|
|
191734
|
-
function
|
|
191741
|
+
function $ee(n) {
|
|
191735
191742
|
return this.projectionType.forward(this, n);
|
|
191736
191743
|
}
|
|
191737
|
-
function
|
|
191744
|
+
function Ate(n) {
|
|
191738
191745
|
return this.projectionType.inverse(this, n);
|
|
191739
191746
|
}
|
|
191740
|
-
function
|
|
191747
|
+
function ete(n, A) {
|
|
191741
191748
|
let e, t;
|
|
191742
191749
|
if (A === qO.ROTATE) {
|
|
191743
191750
|
let i = n.oLongC, r = n.oLatC, s = n.oAlpha;
|
|
@@ -191763,7 +191770,7 @@ function $ee(n, A) {
|
|
|
191763
191770
|
}
|
|
191764
191771
|
return { lamp: t, phip: e };
|
|
191765
191772
|
}
|
|
191766
|
-
function
|
|
191773
|
+
function tte(n, A) {
|
|
191767
191774
|
let { x: e, y: t } = A;
|
|
191768
191775
|
e += n.long0;
|
|
191769
191776
|
const i = Math.cos(e), r = Math.sin(t), s = Math.cos(t);
|
|
@@ -191778,7 +191785,7 @@ function Ate(n, A) {
|
|
|
191778
191785
|
const o = n.obliqueProjection.forward(A);
|
|
191779
191786
|
return n.isIdentity && (o.x *= kl, o.y *= kl), o;
|
|
191780
191787
|
}
|
|
191781
|
-
function
|
|
191788
|
+
function ite(n, A) {
|
|
191782
191789
|
let { x: e, y: t } = A;
|
|
191783
191790
|
e += n.long0;
|
|
191784
191791
|
const i = Math.cos(t), r = Math.cos(e);
|
|
@@ -191791,7 +191798,7 @@ function ete(n, A) {
|
|
|
191791
191798
|
const s = n.obliqueProjection.forward(A);
|
|
191792
191799
|
return n.isIdentity && (s.x *= kl, s.y *= kl), s;
|
|
191793
191800
|
}
|
|
191794
|
-
function
|
|
191801
|
+
function nte(n, A) {
|
|
191795
191802
|
n.isIdentity && (A.x *= ys, A.y *= ys);
|
|
191796
191803
|
const e = n.obliqueProjection.inverse(A);
|
|
191797
191804
|
let { x: t, y: i } = e;
|
|
@@ -191807,7 +191814,7 @@ function tte(n, A) {
|
|
|
191807
191814
|
}
|
|
191808
191815
|
return A.x = Qi(A.x + n.long0), A;
|
|
191809
191816
|
}
|
|
191810
|
-
function
|
|
191817
|
+
function rte(n, A) {
|
|
191811
191818
|
n.isIdentity && (A.x *= ys, A.y *= ys);
|
|
191812
191819
|
const e = n.obliqueProjection.inverse(A);
|
|
191813
191820
|
let { x: t, y: i } = e;
|
|
@@ -191822,29 +191829,29 @@ function ite(n, A) {
|
|
|
191822
191829
|
}
|
|
191823
191830
|
return A.x = Qi(A.x + n.long0), A;
|
|
191824
191831
|
}
|
|
191825
|
-
var
|
|
191826
|
-
const
|
|
191827
|
-
init:
|
|
191828
|
-
forward:
|
|
191829
|
-
inverse:
|
|
191830
|
-
names:
|
|
191832
|
+
var ste = ["General Oblique Transformation", "General_Oblique_Transformation", "ob_tran"];
|
|
191833
|
+
const ote = {
|
|
191834
|
+
init: _ee,
|
|
191835
|
+
forward: $ee,
|
|
191836
|
+
inverse: Ate,
|
|
191837
|
+
names: ste
|
|
191831
191838
|
};
|
|
191832
|
-
function
|
|
191833
|
-
n.Proj.projections.add(t1), n.Proj.projections.add(i1), n.Proj.projections.add(
|
|
191839
|
+
function ate(n) {
|
|
191840
|
+
n.Proj.projections.add(t1), n.Proj.projections.add(i1), n.Proj.projections.add(W_A), n.Proj.projections.add(r$A), n.Proj.projections.add(D$A), n.Proj.projections.add(u$A), n.Proj.projections.add(C$A), n.Proj.projections.add(I$A), n.Proj.projections.add(k$A), n.Proj.projections.add(L$A), n.Proj.projections.add(q$A), n.Proj.projections.add(eAe), n.Proj.projections.add(sAe), n.Proj.projections.add(cAe), n.Proj.projections.add(wAe), n.Proj.projections.add(EAe), n.Proj.projections.add(MAe), n.Proj.projections.add(bAe), n.Proj.projections.add(jAe), n.Proj.projections.add(HAe), n.Proj.projections.add(VAe), n.Proj.projections.add($Ae), n.Proj.projections.add(see), n.Proj.projections.add(Pee), n.Proj.projections.add(Qee), n.Proj.projections.add(pee), n.Proj.projections.add(yee), n.Proj.projections.add(Nee), n.Proj.projections.add(See), n.Proj.projections.add(Jee), n.Proj.projections.add(Xee), n.Proj.projections.add(ote);
|
|
191834
191841
|
}
|
|
191835
|
-
const gb = Object.assign(
|
|
191842
|
+
const gb = Object.assign(h_A, {
|
|
191836
191843
|
defaultDatum: "WGS84",
|
|
191837
191844
|
Proj: tP,
|
|
191838
191845
|
WGS84: new tP("WGS84"),
|
|
191839
191846
|
Point: qE,
|
|
191840
191847
|
toPoint: $oA,
|
|
191841
191848
|
defs: ta,
|
|
191842
|
-
nadgrid:
|
|
191849
|
+
nadgrid: qXA,
|
|
191843
191850
|
transform: GO,
|
|
191844
|
-
mgrs:
|
|
191851
|
+
mgrs: g_A,
|
|
191845
191852
|
version: "__VERSION__"
|
|
191846
191853
|
});
|
|
191847
|
-
|
|
191854
|
+
ate(gb);
|
|
191848
191855
|
var PaA, OW = () => new DecompressionStream("deflate-raw");
|
|
191849
191856
|
try {
|
|
191850
191857
|
OW(), PaA = async (n) => {
|
|
@@ -191854,10 +191861,10 @@ try {
|
|
|
191854
191861
|
};
|
|
191855
191862
|
} catch {
|
|
191856
191863
|
}
|
|
191857
|
-
var
|
|
191864
|
+
var lte = new TextDecoder(), YL = (n) => {
|
|
191858
191865
|
throw new Error("but-unzip~" + n);
|
|
191859
|
-
}, kW = (n) =>
|
|
191860
|
-
function*
|
|
191866
|
+
}, kW = (n) => lte.decode(n);
|
|
191867
|
+
function* Dte(n, A = PaA) {
|
|
191861
191868
|
let e = n.length - 20, t = Math.max(e - 65516, 2);
|
|
191862
191869
|
for (; (e = n.lastIndexOf(80, e - 1)) !== -1 && !(n[e + 1] === 75 && n[e + 2] === 5 && n[e + 3] === 6) && e > t; ) ;
|
|
191863
191870
|
e === -1 && YL(2);
|
|
@@ -191867,23 +191874,23 @@ function* ate(n, A = PaA) {
|
|
|
191867
191874
|
e = h, w = i(30 + s(26) + s(28), c), yield { filename: g, comment: u, read: () => l & 8 ? A(w) : l ? YL(1) : w }, e = Q;
|
|
191868
191875
|
}
|
|
191869
191876
|
}
|
|
191870
|
-
const
|
|
191877
|
+
const Pte = /.+\.(shp|dbf|json|prj|cpg)$/i, cte = async (n) => {
|
|
191871
191878
|
const A = {}, e = [];
|
|
191872
|
-
for (const r of
|
|
191873
|
-
|
|
191879
|
+
for (const r of Dte(n))
|
|
191880
|
+
Pte.test(r.filename) && e.push(Promise.resolve(r.read()).then((s) => A[r.filename] = s));
|
|
191874
191881
|
await Promise.all(e);
|
|
191875
191882
|
const t = {}, i = new TextDecoder();
|
|
191876
191883
|
for (const [r, s] of Object.entries(A))
|
|
191877
191884
|
r.slice(-3).toLowerCase() === "shp" || r.slice(-3).toLowerCase() === "dbf" ? t[r] = new DataView(s.buffer, s.byteOffset, s.byteLength) : t[r] = i.decode(s);
|
|
191878
191885
|
return t;
|
|
191879
|
-
},
|
|
191886
|
+
}, hte = globalThis.URL, gte = (n, A) => {
|
|
191880
191887
|
if (!A)
|
|
191881
191888
|
return n;
|
|
191882
|
-
const e = new
|
|
191889
|
+
const e = new hte(n);
|
|
191883
191890
|
return e.pathname = `${e.pathname}.${A}`, e.href;
|
|
191884
191891
|
};
|
|
191885
191892
|
async function dI(n, A) {
|
|
191886
|
-
const e =
|
|
191893
|
+
const e = gte(n, A), t = A === "prj" || A === "cpg";
|
|
191887
191894
|
try {
|
|
191888
191895
|
const i = await fetch(e);
|
|
191889
191896
|
if (i.status > 399)
|
|
@@ -191898,7 +191905,7 @@ async function dI(n, A) {
|
|
|
191898
191905
|
throw i;
|
|
191899
191906
|
}
|
|
191900
191907
|
}
|
|
191901
|
-
function
|
|
191908
|
+
function ute(n) {
|
|
191902
191909
|
let A = 0, e = 1;
|
|
191903
191910
|
const t = n.length;
|
|
191904
191911
|
let i, r;
|
|
@@ -191918,7 +191925,7 @@ function bW(n, A) {
|
|
|
191918
191925
|
function caA(n, A = !1) {
|
|
191919
191926
|
const e = [], t = [];
|
|
191920
191927
|
for (const s of n) {
|
|
191921
|
-
const o =
|
|
191928
|
+
const o = ute(s);
|
|
191922
191929
|
o.clockWise !== A ? e.push(o) : t.push(o);
|
|
191923
191930
|
}
|
|
191924
191931
|
const i = [];
|
|
@@ -192052,7 +192059,7 @@ const zW = {
|
|
|
192052
192059
|
15: "parseZPolygon",
|
|
192053
192060
|
18: "parseZMultiPoint"
|
|
192054
192061
|
};
|
|
192055
|
-
function
|
|
192062
|
+
function Qte(n) {
|
|
192056
192063
|
return n ? function(A, e) {
|
|
192057
192064
|
const t = [A.getFloat64(e, !0), A.getFloat64(e + 8, !0)];
|
|
192058
192065
|
return n.inverse(t);
|
|
@@ -192069,7 +192076,7 @@ Xs.prototype.shpFuncs = function(n) {
|
|
|
192069
192076
|
let A = this.headers.shpCode;
|
|
192070
192077
|
if (A > 20 && (A -= 20), !(A in zW))
|
|
192071
192078
|
throw new Error(`I don't know shp type "${A}"`);
|
|
192072
|
-
this.parseFunc = this[zW[A]], this.parseCoord =
|
|
192079
|
+
this.parseFunc = this[zW[A]], this.parseCoord = Qte(n);
|
|
192073
192080
|
};
|
|
192074
192081
|
Xs.prototype.getShpCode = function() {
|
|
192075
192082
|
return this.parseHeader().shpCode;
|
|
@@ -192115,14 +192122,14 @@ Xs.prototype.getRow = function(n) {
|
|
|
192115
192122
|
function nF(n, A) {
|
|
192116
192123
|
return new Xs(n, A).rows;
|
|
192117
192124
|
}
|
|
192118
|
-
var
|
|
192125
|
+
var wte = /^(?:ANSI\s)?(\d+)$/m;
|
|
192119
192126
|
function haA(n, A) {
|
|
192120
192127
|
if (!n)
|
|
192121
192128
|
return t;
|
|
192122
192129
|
try {
|
|
192123
192130
|
new TextDecoder(n.trim());
|
|
192124
192131
|
} catch {
|
|
192125
|
-
var e =
|
|
192132
|
+
var e = wte.exec(n);
|
|
192126
192133
|
return e && !A ? haA("windows-" + e[1], !0) : (n = void 0, t);
|
|
192127
192134
|
}
|
|
192128
192135
|
return t;
|
|
@@ -192133,11 +192140,11 @@ function haA(n, A) {
|
|
|
192133
192140
|
return s.replace(/\0/g, "").trim();
|
|
192134
192141
|
}
|
|
192135
192142
|
}
|
|
192136
|
-
function
|
|
192143
|
+
function fte(n) {
|
|
192137
192144
|
var A = {};
|
|
192138
192145
|
return A.lastUpdated = new Date(n.getUint8(1) + 1900, n.getUint8(2), n.getUint8(3)), A.records = n.getUint32(4, !0), A.headerLen = n.getUint16(8, !0), A.recLen = n.getUint16(10, !0), A;
|
|
192139
192146
|
}
|
|
192140
|
-
function
|
|
192147
|
+
function dte(n, A, e) {
|
|
192141
192148
|
for (var t = [], i = 32; i < A && (t.push({
|
|
192142
192149
|
name: e(new Uint8Array(n.buffer.slice(n.byteOffset + i, n.byteOffset + i + 11))),
|
|
192143
192150
|
dataType: String.fromCharCode(n.getUint8(i + 11)),
|
|
@@ -192147,7 +192154,7 @@ function wte(n, A, e) {
|
|
|
192147
192154
|
i += 32;
|
|
192148
192155
|
return t;
|
|
192149
192156
|
}
|
|
192150
|
-
function
|
|
192157
|
+
function vte(n, A, e, t, i) {
|
|
192151
192158
|
const r = new Uint8Array(n.buffer.slice(n.byteOffset + A, n.byteOffset + A + e));
|
|
192152
192159
|
var s = i(r);
|
|
192153
192160
|
switch (t) {
|
|
@@ -192163,17 +192170,17 @@ function fte(n, A, e, t, i) {
|
|
|
192163
192170
|
return s;
|
|
192164
192171
|
}
|
|
192165
192172
|
}
|
|
192166
|
-
function
|
|
192173
|
+
function Cte(n, A, e, t) {
|
|
192167
192174
|
for (var i = {}, r = 0, s = e.length, o, a; r < s; )
|
|
192168
|
-
a = e[r], o =
|
|
192175
|
+
a = e[r], o = vte(n, A, a.len, a.dataType, t), A += a.len, typeof o < "u" && (i[a.name] = o), r++;
|
|
192169
192176
|
return i;
|
|
192170
192177
|
}
|
|
192171
192178
|
function rF(n, A) {
|
|
192172
|
-
for (var e = haA(A), t =
|
|
192173
|
-
a.push(
|
|
192179
|
+
for (var e = haA(A), t = fte(n), i = dte(n, t.headerLen - 1, e), r = (i.length + 1 << 5) + 2, s = t.recLen, o = t.records, a = []; o; )
|
|
192180
|
+
a.push(Cte(n, r, i, e)), r += s, o--;
|
|
192174
192181
|
return a;
|
|
192175
192182
|
}
|
|
192176
|
-
const
|
|
192183
|
+
const Ete = globalThis.URL, Bte = (n) => {
|
|
192177
192184
|
if (!n)
|
|
192178
192185
|
throw new Error("forgot to pass buffer");
|
|
192179
192186
|
if (WE(n))
|
|
@@ -192181,12 +192188,12 @@ const vte = globalThis.URL, Cte = (n) => {
|
|
|
192181
192188
|
if (WE(n.buffer))
|
|
192182
192189
|
return n.BYTES_PER_ELEMENT === 1 ? n : new Uint8Array(n.buffer, n.byteOffset, n.byteLength);
|
|
192183
192190
|
throw new Error("invalid buffer like object");
|
|
192184
|
-
},
|
|
192191
|
+
}, pte = new TextDecoder(), gaA = (n) => {
|
|
192185
192192
|
if (n) {
|
|
192186
192193
|
if (typeof n == "string")
|
|
192187
192194
|
return n;
|
|
192188
192195
|
if (WE(n) || ArrayBuffer.isView(n) || sF(n))
|
|
192189
|
-
return
|
|
192196
|
+
return pte.decode(n);
|
|
192190
192197
|
}
|
|
192191
192198
|
}, uaA = (n) => {
|
|
192192
192199
|
if (!n)
|
|
@@ -192219,8 +192226,8 @@ const oF = function([n, A]) {
|
|
|
192219
192226
|
return e;
|
|
192220
192227
|
}, QaA = async function(n, A) {
|
|
192221
192228
|
let e;
|
|
192222
|
-
n =
|
|
192223
|
-
const t = await
|
|
192229
|
+
n = Bte(n);
|
|
192230
|
+
const t = await cte(n), i = [];
|
|
192224
192231
|
A = A || [];
|
|
192225
192232
|
for (e in t)
|
|
192226
192233
|
e.indexOf("__MACOSX") === -1 && (e.slice(-4).toLowerCase() === ".shp" ? (i.push(e.slice(0, -4)), t[e.slice(0, -3) + e.slice(-3).toLowerCase()] = t[e]) : e.slice(-4).toLowerCase() === ".prj" ? t[e.slice(0, -3) + e.slice(-3).toLowerCase()] = gb(t[e]) : e.slice(-5).toLowerCase() === ".json" || A.indexOf(e.split(".").pop()) > -1 ? i.push(e.slice(0, -3) + e.slice(-3).toLowerCase()) : (e.slice(-4).toLowerCase() === ".dbf" || e.slice(-4).toLowerCase() === ".cpg") && (t[e.slice(0, -3) + e.slice(-3).toLowerCase()] = t[e]));
|
|
@@ -192233,11 +192240,11 @@ const oF = function([n, A]) {
|
|
|
192233
192240
|
});
|
|
192234
192241
|
return r.length === 1 ? r[0] : r;
|
|
192235
192242
|
};
|
|
192236
|
-
async function
|
|
192243
|
+
async function mte(n, A) {
|
|
192237
192244
|
const e = await dI(n);
|
|
192238
192245
|
return QaA(e, A);
|
|
192239
192246
|
}
|
|
192240
|
-
const
|
|
192247
|
+
const Ite = async (n) => {
|
|
192241
192248
|
const A = await Promise.all([
|
|
192242
192249
|
dI(n, "shp"),
|
|
192243
192250
|
dI(n, "prj")
|
|
@@ -192249,35 +192256,35 @@ const pte = async (n) => {
|
|
|
192249
192256
|
e = !1;
|
|
192250
192257
|
}
|
|
192251
192258
|
return nF(A[0], e);
|
|
192252
|
-
},
|
|
192259
|
+
}, Mte = async (n) => {
|
|
192253
192260
|
const [A, e] = await Promise.all([
|
|
192254
192261
|
dI(n, "dbf"),
|
|
192255
192262
|
dI(n, "cpg")
|
|
192256
192263
|
]);
|
|
192257
192264
|
if (A)
|
|
192258
192265
|
return rF(A, e);
|
|
192259
|
-
}, NW = (n, A) => new
|
|
192266
|
+
}, NW = (n, A) => new Ete(n, globalThis?.document?.location).pathname.slice(-4).toLowerCase() === A, Tte = ({ shp: n, dbf: A, cpg: e, prj: t }) => {
|
|
192260
192267
|
const i = [
|
|
192261
|
-
|
|
192268
|
+
Ote(n, t)
|
|
192262
192269
|
];
|
|
192263
|
-
return A && i.push(
|
|
192264
|
-
},
|
|
192270
|
+
return A && i.push(kte(A, e)), oF(i);
|
|
192271
|
+
}, yte = async function(n, A) {
|
|
192265
192272
|
if (typeof n != "string") {
|
|
192266
192273
|
if (WE(n) || ArrayBuffer.isView(n) || sF(n))
|
|
192267
192274
|
return QaA(n);
|
|
192268
192275
|
if (n.shp)
|
|
192269
|
-
return
|
|
192276
|
+
return Tte(n);
|
|
192270
192277
|
throw new TypeError("must be a string, some sort of Buffer, or an object with at least a .shp property");
|
|
192271
192278
|
}
|
|
192272
192279
|
if (NW(n, ".zip"))
|
|
192273
|
-
return
|
|
192280
|
+
return mte(n, A);
|
|
192274
192281
|
NW(n, ".shp") && (n = n.slice(0, -4));
|
|
192275
192282
|
const e = await Promise.all([
|
|
192276
|
-
|
|
192277
|
-
|
|
192283
|
+
Ite(n),
|
|
192284
|
+
Mte(n)
|
|
192278
192285
|
]);
|
|
192279
192286
|
return oF(e);
|
|
192280
|
-
},
|
|
192287
|
+
}, Ote = function(n, A) {
|
|
192281
192288
|
if (n = uaA(n), A = gaA(A), typeof A == "string")
|
|
192282
192289
|
try {
|
|
192283
192290
|
A = gb(A);
|
|
@@ -192285,7 +192292,7 @@ const pte = async (n) => {
|
|
|
192285
192292
|
A = !1;
|
|
192286
192293
|
}
|
|
192287
192294
|
return nF(n, A);
|
|
192288
|
-
},
|
|
192295
|
+
}, kte = function(n, A) {
|
|
192289
192296
|
return n = uaA(n), A = gaA(A), rF(n, A);
|
|
192290
192297
|
};
|
|
192291
192298
|
class xW {
|
|
@@ -192325,7 +192332,7 @@ class xW {
|
|
|
192325
192332
|
new Promise((e) => {
|
|
192326
192333
|
if (A) {
|
|
192327
192334
|
let t = A?.shp;
|
|
192328
|
-
t && t.length &&
|
|
192335
|
+
t && t.length && yte(t).then((o) => {
|
|
192329
192336
|
e(o);
|
|
192330
192337
|
});
|
|
192331
192338
|
let i = A?.geoJSON;
|
|
@@ -192333,7 +192340,7 @@ class xW {
|
|
|
192333
192340
|
e(o);
|
|
192334
192341
|
}).catch((o) => console.error("error:", o));
|
|
192335
192342
|
let r = A?.kml;
|
|
192336
|
-
r && r.length &&
|
|
192343
|
+
r && r.length && eXA(r).then((o) => {
|
|
192337
192344
|
e(o);
|
|
192338
192345
|
});
|
|
192339
192346
|
let s = A?.geoJSONData;
|
|
@@ -192636,7 +192643,7 @@ class xW {
|
|
|
192636
192643
|
this.customLabel_ && this.customLabel_.presentationMode === 2 && this.customLabel_.infoWindow.hide();
|
|
192637
192644
|
};
|
|
192638
192645
|
}
|
|
192639
|
-
class
|
|
192646
|
+
class bte {
|
|
192640
192647
|
constructor() {
|
|
192641
192648
|
this.PI = 3.141592653589793, this.a = 6378137, this.b = 63567523142e-4, this.f = (this.a - this.b) / this.a, this.e_sq = this.f * (2 - this.f), this.ee = 0.00669437999013, this.WGSF = 1 / 298.257223563, this.WGSe2 = this.WGSF * (2 - this.WGSF), this.WGSa = 6378137, this.EPSILON = 1e-12;
|
|
192642
192649
|
}
|
|
@@ -192743,7 +192750,7 @@ class Ote {
|
|
|
192743
192750
|
return this.PI / 180 * A;
|
|
192744
192751
|
}
|
|
192745
192752
|
}
|
|
192746
|
-
const
|
|
192753
|
+
const zte = `
|
|
192747
192754
|
#version 300 es
|
|
192748
192755
|
precision highp float;
|
|
192749
192756
|
|
|
@@ -192873,10 +192880,10 @@ void main() {
|
|
|
192873
192880
|
}
|
|
192874
192881
|
}
|
|
192875
192882
|
`;
|
|
192876
|
-
class
|
|
192883
|
+
class Nte {
|
|
192877
192884
|
// 构造函数
|
|
192878
192885
|
constructor(A, e) {
|
|
192879
|
-
this.optionType = { Color: 1, Image: 2, Video: 3 }, this.near = 0.1, this.far = 1e3, this._alpha = 1, this._debugFrustum = !0, this._aspectRatio = 1, this._camerafov = 0, this._videoPlay = !0, this.defaultShow = !0, this._show = !0, this.viewer = A, this.param = e, this.ECEF = new
|
|
192886
|
+
this.optionType = { Color: 1, Image: 2, Video: 3 }, this.near = 0.1, this.far = 1e3, this._alpha = 1, this._debugFrustum = !0, this._aspectRatio = 1, this._camerafov = 0, this._videoPlay = !0, this.defaultShow = !0, this._show = !0, this.viewer = A, this.param = e, this.ECEF = new bte();
|
|
192880
192887
|
const t = this._initCameraParam();
|
|
192881
192888
|
if (this.near = t.near ? t.near : 0.1, this.far = t.far ? t.far : 1e3, this._cameraPosition = t.cameraPosition, this._position = t.position, this.type = t.type, this._alpha = t.alpha || 1, this.url = t.url, this.color = t.color, this._debugFrustum = t.debugFrustum || !0, this._aspectRatio = t.aspectRatio || this._getWinWidHei(), this._camerafov = t.fov || Cesium.Math.toDegrees(this.viewer.scene.camera.frustum.fov), this.texture = t.texture || new Cesium.Texture({
|
|
192882
192889
|
context: this.viewer.scene.context,
|
|
@@ -193280,7 +193287,7 @@ class bte {
|
|
|
193280
193287
|
// 添加后处理效果(视频投射)
|
|
193281
193288
|
_addPostProcess() {
|
|
193282
193289
|
this.postProcess = new Cesium.PostProcessStage({
|
|
193283
|
-
fragmentShader:
|
|
193290
|
+
fragmentShader: zte,
|
|
193284
193291
|
uniforms: {
|
|
193285
193292
|
mixNum: () => this.alpha,
|
|
193286
193293
|
stcshadow: () => this.viewShadowMap._shadowMapTexture,
|
|
@@ -193436,7 +193443,7 @@ class LW {
|
|
|
193436
193443
|
//高度
|
|
193437
193444
|
};
|
|
193438
193445
|
let o = k.getMapEngineInstance(this.containerID_);
|
|
193439
|
-
this.ZYWLCesiumVideo_ = new
|
|
193446
|
+
this.ZYWLCesiumVideo_ = new Nte(o, {
|
|
193440
193447
|
position: s,
|
|
193441
193448
|
// 视点位置
|
|
193442
193449
|
rotation: {
|
|
@@ -193561,16 +193568,15 @@ class LW {
|
|
|
193561
193568
|
this.videoBGElement_ = void 0, this.videoElement_ = void 0;
|
|
193562
193569
|
};
|
|
193563
193570
|
}
|
|
193564
|
-
const
|
|
193571
|
+
const xte = (n, A) => {
|
|
193565
193572
|
const e = n.__vccOpts || n;
|
|
193566
193573
|
for (const [t, i] of A)
|
|
193567
193574
|
e[t] = i;
|
|
193568
193575
|
return e;
|
|
193569
|
-
},
|
|
193576
|
+
}, Lte = {
|
|
193570
193577
|
name: "ZYWLGIS",
|
|
193571
193578
|
data() {
|
|
193572
193579
|
return {
|
|
193573
|
-
version: "0.5.0",
|
|
193574
193580
|
stats: void 0,
|
|
193575
193581
|
isLoadInitMapTerrainHeight: !1,
|
|
193576
193582
|
tileLoadProgress: 0,
|
|
@@ -194008,7 +194014,6 @@ const zte = (n, A) => {
|
|
|
194008
194014
|
console.log("需要刷新的地图视图》》》》》》》》》》", window.activeContainerIDs);
|
|
194009
194015
|
},
|
|
194010
194016
|
beforeMount() {
|
|
194011
|
-
console.log("组件挂载前");
|
|
194012
194017
|
},
|
|
194013
194018
|
mounted() {
|
|
194014
194019
|
window.isStartMapModeChange = !0, window.isPointOfInterestOpen = !1, this.isBeginRangingTool = !1, window.isRangingToolDistance = !0, this.rangingToolType = 1, this.MapEngine_Temp = cA.cloneDeep(this.MapEngine), window.DefaultMapEngine = cA.cloneDeep(this.MapEngine), this.MapTerrain_Temp = cA.cloneDeep(this.MapTerrain), this.MapConfiguration_Temp = cA.cloneDeep(this.MapConfiguration), window.DefaultMapConfiguration = cA.cloneDeep(this.MapConfiguration), this.MapPlugins_Temp = cA.cloneDeep(this.MapPlugins), this.containerID = this.MapEngine_Temp.containerID, k.setContainerID(this.containerID);
|
|
@@ -194021,14 +194026,14 @@ const zte = (n, A) => {
|
|
|
194021
194026
|
camera: cA.cloneDeep(this.MapEngine_Temp.camera)
|
|
194022
194027
|
}), k.addGraphClickHandlerHandler(this.GraphClickHandler), k.addGraphNodeClickHandlerHandler(this.GraphNodeClickHandler), k.addGraphChangingHandler(this.GraphChangingHandler), k.addGraphChangedHandler(this.GraphChangedHandler), k.addGraphRemovedHandler(this.GraphRemovedHandler), k.addGraphEditedHandler(this.GraphEditedHandler), k.addMapInitializationCompletedHandler(this.MapInitCompletedHandler), k.addMapRightClickHandler(this.MapRightClickHandler), k.addNoReturnNodeHandler(this.MapRightClickHandler), this.loadExternalResources(() => {
|
|
194023
194028
|
console.log(
|
|
194024
|
-
`版本号>>>>>>>>>>${
|
|
194029
|
+
`版本号>>>>>>>>>>${XqA.version};CESIUM版本号>>>>>>>>>>${Cesium.VERSION}`,
|
|
194025
194030
|
Cesium
|
|
194026
194031
|
), this.initializeMapEngine();
|
|
194027
194032
|
});
|
|
194028
194033
|
},
|
|
194029
194034
|
methods: {
|
|
194030
194035
|
syncZoom(n) {
|
|
194031
|
-
|
|
194036
|
+
window.MapCurrentZooms || (window.MapCurrentZooms = /* @__PURE__ */ new Map()), window.MapCurrentZooms.has(this.containerID) && window.MapCurrentZooms.delete(this.containerID), window.MapCurrentZooms.set(this.containerID, cA.cloneDeep(n));
|
|
194032
194037
|
},
|
|
194033
194038
|
loadZoom() {
|
|
194034
194039
|
return window.MapCurrentZooms && window.MapCurrentZooms.has(this.containerID) ? window.MapCurrentZooms.get(this.containerID) : 10;
|
|
@@ -194151,7 +194156,6 @@ const zte = (n, A) => {
|
|
|
194151
194156
|
},
|
|
194152
194157
|
// 初始化数据
|
|
194153
194158
|
async initializeData() {
|
|
194154
|
-
console.log("初始化数据", this);
|
|
194155
194159
|
const n = [
|
|
194156
194160
|
"MapLayers",
|
|
194157
194161
|
"Tilesets",
|
|
@@ -194205,7 +194209,7 @@ const zte = (n, A) => {
|
|
|
194205
194209
|
createStats() {
|
|
194206
194210
|
if ((this.MapEngine_Temp?.trackStats ?? !1) && window.sceneIntegrator && window.sceneIntegrator.threeRenderer.isWebGLRenderer) {
|
|
194207
194211
|
const A = document.getElementById(this.containerID);
|
|
194208
|
-
this.stats = new
|
|
194212
|
+
this.stats = new lWA({ trackHz: !0 });
|
|
194209
194213
|
const e = k.getMapEngineInstance(this.cesiumID);
|
|
194210
194214
|
e && this.stats.init(e.scene.context._gl), A.appendChild(this.stats.dom);
|
|
194211
194215
|
let t = this.MapPlugins_Temp?.style ?? { right: 0 };
|
|
@@ -194272,7 +194276,7 @@ const zte = (n, A) => {
|
|
|
194272
194276
|
let e = this.MapEngine_Temp?.center?.longitude ?? 117.21833231944812, t = this.MapEngine_Temp?.center?.latitude ?? 39.06565050593017, i = this.MapEngine_Temp?.zoom?.max ?? 22, r = this.MapEngine_Temp?.zoom?.min ?? 1, s = new vsA({
|
|
194273
194277
|
useAnchor: this.MapConfiguration_Temp?.isZoomInCenter ?? !1
|
|
194274
194278
|
});
|
|
194275
|
-
return new
|
|
194279
|
+
return new sWA({
|
|
194276
194280
|
target: this.openlayersID,
|
|
194277
194281
|
view: new kc({
|
|
194278
194282
|
center: om([e, t]),
|
|
@@ -194384,7 +194388,7 @@ const zte = (n, A) => {
|
|
|
194384
194388
|
if (A.scene.sun.show = !1, A.scene.moon.show = !1, A.scene.skyBox.show = !1, A.scene.logarithmicDepthBuffer = !1, e)
|
|
194385
194389
|
A.scene.skyAtmosphere.show = !1, A.scene.backgroundColor = Cesium.Color.TRANSPARENT, A.scene.globe.translucency.enabled = !0, A.scene.globe.translucency.backFaceAlpha = 0, A.scene.globe.translucency.frontFaceAlpha = 0;
|
|
194386
194390
|
else {
|
|
194387
|
-
this.addMapSlider(A, n), A.imageryLayers.removeAll(), A.scene.postProcessStages.fxaa.enabled = !0, window.devicePixelRatio = 1, A.resolutionScale = window.devicePixelRatio, A.targetFrameRate = 120, A.trackedEntity = void 0, A.scene.globe.maximumScreenSpaceError = 1,
|
|
194391
|
+
this.addMapSlider(A, n), A.imageryLayers.removeAll(), A.scene.postProcessStages.fxaa.enabled = !0, window.devicePixelRatio = 1, A.resolutionScale = window.devicePixelRatio, A.targetFrameRate = 120, A.trackedEntity = void 0, A.scene.globe.maximumScreenSpaceError = 1, t > 20 && (t = 20);
|
|
194388
194392
|
let r = k.getMapHeightByZoom(
|
|
194389
194393
|
this.containerID,
|
|
194390
194394
|
t,
|
|
@@ -195776,7 +195780,7 @@ const zte = (n, A) => {
|
|
|
195776
195780
|
k.setMapColor(c)
|
|
195777
195781
|
);
|
|
195778
195782
|
if (b) {
|
|
195779
|
-
const U = new
|
|
195783
|
+
const U = new ZWA({
|
|
195780
195784
|
bgColor: b,
|
|
195781
195785
|
alpha: 0.5,
|
|
195782
195786
|
invert: !0,
|
|
@@ -195901,7 +195905,7 @@ const zte = (n, A) => {
|
|
|
195901
195905
|
const r = e.added ?? [];
|
|
195902
195906
|
Array.isArray(r) && r.length && (await this.processArrayAsync(r, (s) => {
|
|
195903
195907
|
const o = s.ID.toString();
|
|
195904
|
-
let a = new
|
|
195908
|
+
let a = new PWA(this.cesiumID, n);
|
|
195905
195909
|
a && (k.setPointCloudRecognition(o, a), a.DataProcessing(cA.cloneDeep(s)));
|
|
195906
195910
|
}), console.log(`新增了${n}数据>>>>>>>>>>`, r));
|
|
195907
195911
|
});
|
|
@@ -195936,7 +195940,7 @@ const zte = (n, A) => {
|
|
|
195936
195940
|
let D;
|
|
195937
195941
|
switch (a.type) {
|
|
195938
195942
|
case 1:
|
|
195939
|
-
s ? D = new
|
|
195943
|
+
s ? D = new vWA(this.cesiumID, n) : D = new uWA(
|
|
195940
195944
|
this.maptalksID,
|
|
195941
195945
|
n
|
|
195942
195946
|
);
|
|
@@ -195951,25 +195955,25 @@ const zte = (n, A) => {
|
|
|
195951
195955
|
);
|
|
195952
195956
|
break;
|
|
195953
195957
|
case 3:
|
|
195954
|
-
s ? D = new
|
|
195958
|
+
s ? D = new CWA(
|
|
195955
195959
|
this.cesiumID,
|
|
195956
195960
|
n
|
|
195957
|
-
) : D = new
|
|
195961
|
+
) : D = new QWA(
|
|
195958
195962
|
this.maptalksID,
|
|
195959
195963
|
n
|
|
195960
195964
|
);
|
|
195961
195965
|
break;
|
|
195962
195966
|
case 4:
|
|
195963
|
-
s ? D = new
|
|
195967
|
+
s ? D = new wWA(
|
|
195964
195968
|
this.cesiumID,
|
|
195965
195969
|
n
|
|
195966
|
-
) : D = new
|
|
195970
|
+
) : D = new cWA(
|
|
195967
195971
|
this.maptalksID,
|
|
195968
195972
|
n
|
|
195969
195973
|
);
|
|
195970
195974
|
break;
|
|
195971
195975
|
case 5:
|
|
195972
|
-
s ? D = new
|
|
195976
|
+
s ? D = new dWA(this.cesiumID, n) : D = new gWA(
|
|
195973
195977
|
this.maptalksID,
|
|
195974
195978
|
n
|
|
195975
195979
|
);
|
|
@@ -196033,7 +196037,7 @@ const zte = (n, A) => {
|
|
|
196033
196037
|
);
|
|
196034
196038
|
break;
|
|
196035
196039
|
case 3:
|
|
196036
|
-
s ? D = new
|
|
196040
|
+
s ? D = new mWA(
|
|
196037
196041
|
this.cesiumID,
|
|
196038
196042
|
n
|
|
196039
196043
|
) : D = new $q(
|
|
@@ -196042,7 +196046,7 @@ const zte = (n, A) => {
|
|
|
196042
196046
|
);
|
|
196043
196047
|
break;
|
|
196044
196048
|
case 4:
|
|
196045
|
-
s ? D = new
|
|
196049
|
+
s ? D = new BWA(
|
|
196046
196050
|
this.cesiumID,
|
|
196047
196051
|
n
|
|
196048
196052
|
) : D = new Xq(
|
|
@@ -196051,10 +196055,10 @@ const zte = (n, A) => {
|
|
|
196051
196055
|
);
|
|
196052
196056
|
break;
|
|
196053
196057
|
case 5:
|
|
196054
|
-
s ? D = new
|
|
196058
|
+
s ? D = new pWA(
|
|
196055
196059
|
this.cesiumID,
|
|
196056
196060
|
n
|
|
196057
|
-
) : D = new
|
|
196061
|
+
) : D = new EWA(
|
|
196058
196062
|
this.maptalksID,
|
|
196059
196063
|
n
|
|
196060
196064
|
);
|
|
@@ -196084,7 +196088,7 @@ const zte = (n, A) => {
|
|
|
196084
196088
|
Array.isArray(s) && s.length && (await this.processArrayAsync(s, (o) => {
|
|
196085
196089
|
const a = o.ID.toString();
|
|
196086
196090
|
let l;
|
|
196087
|
-
r ? l = new
|
|
196091
|
+
r ? l = new fWA(this.cesiumID, n) : l = new hWA(
|
|
196088
196092
|
this.maptalksID,
|
|
196089
196093
|
n
|
|
196090
196094
|
), l && (k.setFlightPath(a, l), l.DataProcessing(cA.cloneDeep(o)));
|
|
@@ -196151,7 +196155,7 @@ const zte = (n, A) => {
|
|
|
196151
196155
|
Array.isArray(s) && s.length && (await this.processArrayAsync(s, (o) => {
|
|
196152
196156
|
const a = o.ID.toString();
|
|
196153
196157
|
let l;
|
|
196154
|
-
r ? l = new
|
|
196158
|
+
r ? l = new HWA(this.cesiumID, n) : l = new NWA(this.maptalksID, n), l && (k.setOrthophote(a, l), l.DataProcessing(cA.cloneDeep(o)));
|
|
196155
196159
|
}), console.log(`新增了${n}数据>>>>>>>>>>`, s));
|
|
196156
196160
|
});
|
|
196157
196161
|
},
|
|
@@ -196184,7 +196188,7 @@ const zte = (n, A) => {
|
|
|
196184
196188
|
);
|
|
196185
196189
|
break;
|
|
196186
196190
|
case 3:
|
|
196187
|
-
r ? l = new
|
|
196191
|
+
r ? l = new FWA(
|
|
196188
196192
|
this.cesiumID,
|
|
196189
196193
|
n
|
|
196190
196194
|
) : l = new $q(
|
|
@@ -196193,7 +196197,7 @@ const zte = (n, A) => {
|
|
|
196193
196197
|
);
|
|
196194
196198
|
break;
|
|
196195
196199
|
case 4:
|
|
196196
|
-
r ? l = new
|
|
196200
|
+
r ? l = new jWA(
|
|
196197
196201
|
this.cesiumID,
|
|
196198
196202
|
n
|
|
196199
196203
|
) : l = new Xq(
|
|
@@ -196202,25 +196206,25 @@ const zte = (n, A) => {
|
|
|
196202
196206
|
);
|
|
196203
196207
|
break;
|
|
196204
196208
|
case 5:
|
|
196205
|
-
r && (l = new
|
|
196209
|
+
r && (l = new YWA(
|
|
196206
196210
|
this.cesiumID,
|
|
196207
196211
|
n
|
|
196208
196212
|
));
|
|
196209
196213
|
break;
|
|
196210
196214
|
case 6:
|
|
196211
|
-
r && (l = new
|
|
196215
|
+
r && (l = new RWA(
|
|
196212
196216
|
this.cesiumID,
|
|
196213
196217
|
n
|
|
196214
196218
|
));
|
|
196215
196219
|
break;
|
|
196216
196220
|
case 7:
|
|
196217
|
-
r && (l = new
|
|
196221
|
+
r && (l = new SWA(
|
|
196218
196222
|
this.cesiumID,
|
|
196219
196223
|
n
|
|
196220
196224
|
));
|
|
196221
196225
|
break;
|
|
196222
196226
|
case 8:
|
|
196223
|
-
r && (l = new
|
|
196227
|
+
r && (l = new UWA(
|
|
196224
196228
|
this.cesiumID,
|
|
196225
196229
|
n
|
|
196226
196230
|
));
|
|
@@ -196314,7 +196318,7 @@ const zte = (n, A) => {
|
|
|
196314
196318
|
Array.isArray(o) && o.length && (await this.processArrayAsync(o, (a) => {
|
|
196315
196319
|
const l = a.ID.toString();
|
|
196316
196320
|
let D;
|
|
196317
|
-
s && (D = new
|
|
196321
|
+
s && (D = new GWA(this.cesiumID, n)), D && (k.setS3M(l, D), D.DataProcessing(cA.cloneDeep(a)));
|
|
196318
196322
|
}), console.log(`新增了${n}数据>>>>>>>>>>`, o));
|
|
196319
196323
|
});
|
|
196320
196324
|
},
|
|
@@ -196336,7 +196340,7 @@ const zte = (n, A) => {
|
|
|
196336
196340
|
Array.isArray(s) && s.length && (await this.processArrayAsync(s, (o) => {
|
|
196337
196341
|
const a = o.ID.toString();
|
|
196338
196342
|
let l;
|
|
196339
|
-
r && (l = new
|
|
196343
|
+
r && (l = new JWA(this.cesiumID, n)), l && (k.setRadar(a, l), l.DataProcessing(cA.cloneDeep(o)));
|
|
196340
196344
|
}), console.log(`新增了${n}数据>>>>>>>>>>`, s));
|
|
196341
196345
|
});
|
|
196342
196346
|
},
|
|
@@ -196370,19 +196374,19 @@ const zte = (n, A) => {
|
|
|
196370
196374
|
var D;
|
|
196371
196375
|
switch (a.type) {
|
|
196372
196376
|
case 3:
|
|
196373
|
-
s ? D = new
|
|
196377
|
+
s ? D = new LWA(
|
|
196374
196378
|
this.cesiumID,
|
|
196375
196379
|
n
|
|
196376
|
-
) : D = new
|
|
196380
|
+
) : D = new zWA(
|
|
196377
196381
|
this.maptalksID,
|
|
196378
196382
|
n
|
|
196379
196383
|
);
|
|
196380
196384
|
break;
|
|
196381
196385
|
case 4:
|
|
196382
|
-
s ? D = new
|
|
196386
|
+
s ? D = new xWA(
|
|
196383
196387
|
this.cesiumID,
|
|
196384
196388
|
n
|
|
196385
|
-
) : D = new
|
|
196389
|
+
) : D = new bWA(
|
|
196386
196390
|
this.maptalksID,
|
|
196387
196391
|
n
|
|
196388
196392
|
);
|
|
@@ -196603,10 +196607,10 @@ const zte = (n, A) => {
|
|
|
196603
196607
|
}
|
|
196604
196608
|
}
|
|
196605
196609
|
};
|
|
196606
|
-
function
|
|
196610
|
+
function Ute(n, A, e, t, i, r) {
|
|
196607
196611
|
return null;
|
|
196608
196612
|
}
|
|
196609
|
-
const
|
|
196613
|
+
const Rie = /* @__PURE__ */ xte(Lte, [["render", Ute]]);
|
|
196610
196614
|
class xD {
|
|
196611
196615
|
/**计算北斗二维网格码*/
|
|
196612
196616
|
static calculateBeiDouGridCode = (A, e = 2) => {
|
|
@@ -198141,5 +198145,5 @@ export {
|
|
|
198141
198145
|
ra as GISIcon,
|
|
198142
198146
|
Pm as GISModel,
|
|
198143
198147
|
k as GISTool,
|
|
198144
|
-
|
|
198148
|
+
Rie as default
|
|
198145
198149
|
};
|