@nika-js/onlymap 0.4.6 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/THIRD-PARTY-LICENSES.md +2 -2
- package/dist/{LercDecode.es-B49qauXg.js → LercDecode.es-B-OFS9hR.js} +1 -1
- package/dist/{basemap-nJ_ODY7r.js → basemap-CXVNH22A.js} +1 -1
- package/dist/cityjson-urQeujQv.js +407 -0
- package/dist/cityjson.d.ts +138 -0
- package/dist/data-layer.d.ts +10 -0
- package/dist/elements/om-map.d.ts +30 -0
- package/dist/{index-uDJbHjA9.js → index-BonJP_St.js} +1 -1
- package/dist/index-CW1n5LdO.js +4006 -0
- package/dist/{index-CeOjfL2p.js → index-CjZMcGou.js} +2 -2
- package/dist/{index-o_yRv2lD.js → index-DE7T4lfa.js} +1 -1
- package/dist/{index-DSkgI4Oc.js → index-DiYFebYs.js} +11142 -10971
- package/dist/{index-DjlGZov2.js → index-DuY3Zn6r.js} +1 -1
- package/dist/layer-registry.d.ts +14 -0
- package/dist/{lerc-CaQOmDCP.js → lerc-BhtFlCQ3.js} +2 -2
- package/dist/license.d.ts +34 -8
- package/dist/onlymap.standalone.js +22510 -21927
- package/dist/onlymapjs.js +19 -19
- package/dist/quota-notice.d.ts +43 -0
- package/dist/raster-BpVAEzbU.js +4842 -0
- package/dist/runtime-core.d.ts +1 -0
- package/dist/version.d.ts +1 -1
- package/docs/3d-assets.md +99 -1
- package/llms.txt +2 -2
- package/onlymapjs.html-data.json +12 -8
- package/package.json +2 -1
- package/skills/onlymapjs/SKILL.md +3 -1
- package/skills/onlymapjs/references/patterns.md +4 -0
- package/skills/onlymapjs/references/syntax.md +69 -16
- package/skills/onlymapjs/references/testing.md +1 -1
- package/dist/raster-DMq8FgiV.js +0 -8843
|
@@ -0,0 +1,4006 @@
|
|
|
1
|
+
import { w as qt, t as Rs, f as Cs, m as $s } from "./mgrs-BY9bIvp4.js";
|
|
2
|
+
function js(t) {
|
|
3
|
+
t("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"), t("EPSG:4269", "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"), t("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");
|
|
4
|
+
for (var s = 1; s <= 60; ++s)
|
|
5
|
+
t("EPSG:" + (32600 + s), "+proj=utm +zone=" + s + " +datum=WGS84 +units=m"), t("EPSG:" + (32700 + s), "+proj=utm +zone=" + s + " +south +datum=WGS84 +units=m");
|
|
6
|
+
t("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"), t("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"), t.WGS84 = t["EPSG:4326"], t["EPSG:3785"] = t["EPSG:3857"], t.GOOGLE = t["EPSG:3857"], t["EPSG:900913"] = t["EPSG:3857"], t["EPSG:102113"] = t["EPSG:3857"];
|
|
7
|
+
}
|
|
8
|
+
var Z = 1, Y = 2, et = 3, Os = 4, Ft = 5, ss = 6378137, Ls = 6356752314e-3, is = 0.0066943799901413165, Mt = 484813681109536e-20, _ = Math.PI / 2, Ts = 0.16666666666666666, Fs = 0.04722222222222222, Bs = 0.022156084656084655, y = 1e-10, A = 0.017453292519943295, L = 57.29577951308232, x = Math.PI / 4, gt = Math.PI * 2, k = 3.14159265359, T = {};
|
|
9
|
+
T.greenwich = 0;
|
|
10
|
+
T.lisbon = -9.131906111111;
|
|
11
|
+
T.paris = 2.337229166667;
|
|
12
|
+
T.bogota = -74.080916666667;
|
|
13
|
+
T.madrid = -3.687938888889;
|
|
14
|
+
T.rome = 12.452333333333;
|
|
15
|
+
T.bern = 7.439583333333;
|
|
16
|
+
T.jakarta = 106.807719444444;
|
|
17
|
+
T.ferro = -17.666666666667;
|
|
18
|
+
T.brussels = 4.367975;
|
|
19
|
+
T.stockholm = 18.058277777778;
|
|
20
|
+
T.athens = 23.7163375;
|
|
21
|
+
T.oslo = 10.722916666667;
|
|
22
|
+
const zs = {
|
|
23
|
+
mm: { to_meter: 1e-3 },
|
|
24
|
+
cm: { to_meter: 0.01 },
|
|
25
|
+
ft: { to_meter: 0.3048 },
|
|
26
|
+
"us-ft": { to_meter: 1200 / 3937 },
|
|
27
|
+
fath: { to_meter: 1.8288 },
|
|
28
|
+
kmi: { to_meter: 1852 },
|
|
29
|
+
"us-ch": { to_meter: 20.1168402336805 },
|
|
30
|
+
"us-mi": { to_meter: 1609.34721869444 },
|
|
31
|
+
km: { to_meter: 1e3 },
|
|
32
|
+
"ind-ft": { to_meter: 0.30479841 },
|
|
33
|
+
"ind-yd": { to_meter: 0.91439523 },
|
|
34
|
+
mi: { to_meter: 1609.344 },
|
|
35
|
+
yd: { to_meter: 0.9144 },
|
|
36
|
+
ch: { to_meter: 20.1168 },
|
|
37
|
+
link: { to_meter: 0.201168 },
|
|
38
|
+
dm: { to_meter: 0.1 },
|
|
39
|
+
in: { to_meter: 0.0254 },
|
|
40
|
+
"ind-ch": { to_meter: 20.11669506 },
|
|
41
|
+
"us-in": { to_meter: 0.025400050800101 },
|
|
42
|
+
"us-yd": { to_meter: 0.914401828803658 }
|
|
43
|
+
};
|
|
44
|
+
var as = /[\s_\-\/\(\)]/g;
|
|
45
|
+
function X(t, s) {
|
|
46
|
+
if (t[s])
|
|
47
|
+
return t[s];
|
|
48
|
+
for (var i = Object.keys(t), h = s.toLowerCase().replace(as, ""), a = -1, e, n; ++a < i.length; )
|
|
49
|
+
if (e = i[a], n = e.toLowerCase().replace(as, ""), n === h)
|
|
50
|
+
return t[e];
|
|
51
|
+
}
|
|
52
|
+
function Bt(t) {
|
|
53
|
+
var s = {}, i = t.split("+").map(function(r) {
|
|
54
|
+
return r.trim();
|
|
55
|
+
}).filter(function(r) {
|
|
56
|
+
return r;
|
|
57
|
+
}).reduce(function(r, o) {
|
|
58
|
+
var l = o.split("=");
|
|
59
|
+
return l.push(!0), r[l[0].toLowerCase()] = l[1], r;
|
|
60
|
+
}, {}), h, a, e, n = {
|
|
61
|
+
proj: "projName",
|
|
62
|
+
datum: "datumCode",
|
|
63
|
+
rf: function(r) {
|
|
64
|
+
s.rf = parseFloat(r);
|
|
65
|
+
},
|
|
66
|
+
lat_0: function(r) {
|
|
67
|
+
s.lat0 = r * A;
|
|
68
|
+
},
|
|
69
|
+
lat_1: function(r) {
|
|
70
|
+
s.lat1 = r * A;
|
|
71
|
+
},
|
|
72
|
+
lat_2: function(r) {
|
|
73
|
+
s.lat2 = r * A;
|
|
74
|
+
},
|
|
75
|
+
lat_ts: function(r) {
|
|
76
|
+
s.lat_ts = r * A;
|
|
77
|
+
},
|
|
78
|
+
lon_0: function(r) {
|
|
79
|
+
s.long0 = r * A;
|
|
80
|
+
},
|
|
81
|
+
lon_1: function(r) {
|
|
82
|
+
s.long1 = r * A;
|
|
83
|
+
},
|
|
84
|
+
lon_2: function(r) {
|
|
85
|
+
s.long2 = r * A;
|
|
86
|
+
},
|
|
87
|
+
alpha: function(r) {
|
|
88
|
+
s.alpha = parseFloat(r) * A;
|
|
89
|
+
},
|
|
90
|
+
gamma: function(r) {
|
|
91
|
+
s.rectified_grid_angle = parseFloat(r) * A;
|
|
92
|
+
},
|
|
93
|
+
lonc: function(r) {
|
|
94
|
+
s.longc = r * A;
|
|
95
|
+
},
|
|
96
|
+
x_0: function(r) {
|
|
97
|
+
s.x0 = parseFloat(r);
|
|
98
|
+
},
|
|
99
|
+
y_0: function(r) {
|
|
100
|
+
s.y0 = parseFloat(r);
|
|
101
|
+
},
|
|
102
|
+
k_0: function(r) {
|
|
103
|
+
s.k0 = parseFloat(r);
|
|
104
|
+
},
|
|
105
|
+
k: function(r) {
|
|
106
|
+
s.k0 = parseFloat(r);
|
|
107
|
+
},
|
|
108
|
+
a: function(r) {
|
|
109
|
+
s.a = parseFloat(r);
|
|
110
|
+
},
|
|
111
|
+
b: function(r) {
|
|
112
|
+
s.b = parseFloat(r);
|
|
113
|
+
},
|
|
114
|
+
r: function(r) {
|
|
115
|
+
s.a = s.b = parseFloat(r);
|
|
116
|
+
},
|
|
117
|
+
r_a: function() {
|
|
118
|
+
s.R_A = !0;
|
|
119
|
+
},
|
|
120
|
+
zone: function(r) {
|
|
121
|
+
s.zone = parseInt(r, 10);
|
|
122
|
+
},
|
|
123
|
+
south: function() {
|
|
124
|
+
s.utmSouth = !0;
|
|
125
|
+
},
|
|
126
|
+
towgs84: function(r) {
|
|
127
|
+
s.datum_params = r.split(",").map(function(o) {
|
|
128
|
+
return parseFloat(o);
|
|
129
|
+
});
|
|
130
|
+
},
|
|
131
|
+
to_meter: function(r) {
|
|
132
|
+
s.to_meter = parseFloat(r);
|
|
133
|
+
},
|
|
134
|
+
units: function(r) {
|
|
135
|
+
s.units = r;
|
|
136
|
+
var o = X(zs, r);
|
|
137
|
+
o && (s.to_meter = o.to_meter);
|
|
138
|
+
},
|
|
139
|
+
from_greenwich: function(r) {
|
|
140
|
+
s.from_greenwich = r * A;
|
|
141
|
+
},
|
|
142
|
+
pm: function(r) {
|
|
143
|
+
var o = X(T, r);
|
|
144
|
+
s.from_greenwich = (o || parseFloat(r)) * A;
|
|
145
|
+
},
|
|
146
|
+
nadgrids: function(r) {
|
|
147
|
+
r === "@null" ? s.datumCode = "none" : s.nadgrids = r;
|
|
148
|
+
},
|
|
149
|
+
axis: function(r) {
|
|
150
|
+
var o = "ewnsud";
|
|
151
|
+
r.length === 3 && o.indexOf(r.substr(0, 1)) !== -1 && o.indexOf(r.substr(1, 1)) !== -1 && o.indexOf(r.substr(2, 1)) !== -1 && (s.axis = r);
|
|
152
|
+
},
|
|
153
|
+
approx: function() {
|
|
154
|
+
s.approx = !0;
|
|
155
|
+
},
|
|
156
|
+
over: function() {
|
|
157
|
+
s.over = !0;
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
for (h in i)
|
|
161
|
+
a = i[h], h in n ? (e = n[h], typeof e == "function" ? e(a) : s[e] = a) : s[h] = a;
|
|
162
|
+
return typeof s.datumCode == "string" && s.datumCode !== "WGS84" && (s.datumCode = s.datumCode.toLowerCase()), s.projStr = t, s;
|
|
163
|
+
}
|
|
164
|
+
function C(t) {
|
|
165
|
+
var s = this;
|
|
166
|
+
if (arguments.length === 2) {
|
|
167
|
+
var i = arguments[1];
|
|
168
|
+
typeof i == "string" ? i.charAt(0) === "+" ? C[
|
|
169
|
+
/** @type {string} */
|
|
170
|
+
t
|
|
171
|
+
] = Bt(arguments[1]) : C[
|
|
172
|
+
/** @type {string} */
|
|
173
|
+
t
|
|
174
|
+
] = qt(arguments[1]) : i && typeof i == "object" && !("projName" in i) ? C[
|
|
175
|
+
/** @type {string} */
|
|
176
|
+
t
|
|
177
|
+
] = qt(arguments[1]) : (C[
|
|
178
|
+
/** @type {string} */
|
|
179
|
+
t
|
|
180
|
+
] = i, i || delete C[
|
|
181
|
+
/** @type {string} */
|
|
182
|
+
t
|
|
183
|
+
]);
|
|
184
|
+
} else if (arguments.length === 1) {
|
|
185
|
+
if (Array.isArray(t))
|
|
186
|
+
return t.map(function(h) {
|
|
187
|
+
return Array.isArray(h) ? C.apply(s, h) : C(h);
|
|
188
|
+
});
|
|
189
|
+
if (typeof t == "string") {
|
|
190
|
+
if (t in C)
|
|
191
|
+
return C[t];
|
|
192
|
+
} else "EPSG" in t ? C["EPSG:" + t.EPSG] = t : "ESRI" in t ? C["ESRI:" + t.ESRI] = t : "IAU2000" in t ? C["IAU2000:" + t.IAU2000] = t : console.log(t);
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
js(C);
|
|
197
|
+
function Us(t) {
|
|
198
|
+
return typeof t == "string";
|
|
199
|
+
}
|
|
200
|
+
function Ds(t) {
|
|
201
|
+
return t in C;
|
|
202
|
+
}
|
|
203
|
+
function Ws(t) {
|
|
204
|
+
return t.indexOf("+") !== 0 && t.indexOf("[") !== -1 || typeof t == "object" && !("srsCode" in t);
|
|
205
|
+
}
|
|
206
|
+
var hs = ["3857", "900913", "3785", "102113"];
|
|
207
|
+
function Qs(t) {
|
|
208
|
+
if (t.title)
|
|
209
|
+
return t.title.toLowerCase().indexOf("epsg:") === 0 && hs.indexOf(t.title.substr(5)) > -1;
|
|
210
|
+
var s = X(t, "authority");
|
|
211
|
+
if (s) {
|
|
212
|
+
var i = X(s, "epsg");
|
|
213
|
+
return i && hs.indexOf(i) > -1;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
function ps(t) {
|
|
217
|
+
var s = X(t, "extension");
|
|
218
|
+
if (s)
|
|
219
|
+
return X(s, "proj4");
|
|
220
|
+
}
|
|
221
|
+
function Xs(t) {
|
|
222
|
+
return t[0] === "+";
|
|
223
|
+
}
|
|
224
|
+
function Hs(t) {
|
|
225
|
+
let s;
|
|
226
|
+
if (Us(t))
|
|
227
|
+
if (Ds(t))
|
|
228
|
+
s = C[t];
|
|
229
|
+
else if (Ws(t)) {
|
|
230
|
+
s = qt(t);
|
|
231
|
+
var i = ps(s);
|
|
232
|
+
i && (s = Bt(i));
|
|
233
|
+
} else Xs(t) && (s = Bt(t));
|
|
234
|
+
else "projName" in t ? s = t : s = qt(t);
|
|
235
|
+
return s && Qs(s) ? C["EPSG:3857"] : s;
|
|
236
|
+
}
|
|
237
|
+
function es(t, s) {
|
|
238
|
+
t = t || {};
|
|
239
|
+
var i, h;
|
|
240
|
+
if (!s)
|
|
241
|
+
return t;
|
|
242
|
+
for (h in s)
|
|
243
|
+
i = s[h], i !== void 0 && (t[h] = i);
|
|
244
|
+
return t;
|
|
245
|
+
}
|
|
246
|
+
function W(t, s, i) {
|
|
247
|
+
var h = t * s;
|
|
248
|
+
return i / Math.sqrt(1 - h * h);
|
|
249
|
+
}
|
|
250
|
+
function wt(t) {
|
|
251
|
+
return t < 0 ? -1 : 1;
|
|
252
|
+
}
|
|
253
|
+
function m(t, s) {
|
|
254
|
+
return s || Math.abs(t) <= k ? t : t - wt(t) * gt;
|
|
255
|
+
}
|
|
256
|
+
function U(t, s, i) {
|
|
257
|
+
var h = t * i, a = 0.5 * t;
|
|
258
|
+
return h = Math.pow((1 - h) / (1 + h), a), Math.tan(0.5 * (_ - s)) / h;
|
|
259
|
+
}
|
|
260
|
+
function yt(t, s) {
|
|
261
|
+
for (var i = 0.5 * t, h, a, e = _ - 2 * Math.atan(s), n = 0; n <= 15; n++)
|
|
262
|
+
if (h = t * Math.sin(e), a = _ - 2 * Math.atan(s * Math.pow((1 - h) / (1 + h), i)) - e, e += a, Math.abs(a) <= 1e-10)
|
|
263
|
+
return e;
|
|
264
|
+
return -9999;
|
|
265
|
+
}
|
|
266
|
+
function Ks() {
|
|
267
|
+
var t = this.b / this.a;
|
|
268
|
+
this.es = 1 - t * t, "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 = W(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) : this.k0 || (this.k ? this.k0 = this.k : this.k0 = 1);
|
|
269
|
+
}
|
|
270
|
+
function Vs(t) {
|
|
271
|
+
var s = t.x, i = t.y;
|
|
272
|
+
if (i * L > 90 && i * L < -90 && s * L > 180 && s * L < -180)
|
|
273
|
+
return null;
|
|
274
|
+
var h, a;
|
|
275
|
+
if (Math.abs(Math.abs(i) - _) <= y)
|
|
276
|
+
return null;
|
|
277
|
+
if (this.sphere)
|
|
278
|
+
h = this.x0 + this.a * this.k0 * m(s - this.long0, this.over), a = this.y0 + this.a * this.k0 * Math.log(Math.tan(x + 0.5 * i));
|
|
279
|
+
else {
|
|
280
|
+
var e = Math.sin(i), n = U(this.e, i, e);
|
|
281
|
+
h = this.x0 + this.a * this.k0 * m(s - this.long0, this.over), a = this.y0 - this.a * this.k0 * Math.log(n);
|
|
282
|
+
}
|
|
283
|
+
return t.x = h, t.y = a, t;
|
|
284
|
+
}
|
|
285
|
+
function Js(t) {
|
|
286
|
+
var s = t.x - this.x0, i = t.y - this.y0, h, a;
|
|
287
|
+
if (this.sphere)
|
|
288
|
+
a = _ - 2 * Math.atan(Math.exp(-i / (this.a * this.k0)));
|
|
289
|
+
else {
|
|
290
|
+
var e = Math.exp(-i / (this.a * this.k0));
|
|
291
|
+
if (a = yt(this.e, e), a === -9999)
|
|
292
|
+
return null;
|
|
293
|
+
}
|
|
294
|
+
return h = m(this.long0 + s / (this.a * this.k0), this.over), t.x = h, t.y = a, t;
|
|
295
|
+
}
|
|
296
|
+
var Zs = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "Mercator_Variant_A", "merc"];
|
|
297
|
+
const Ys = {
|
|
298
|
+
init: Ks,
|
|
299
|
+
forward: Vs,
|
|
300
|
+
inverse: Js,
|
|
301
|
+
names: Zs
|
|
302
|
+
};
|
|
303
|
+
function ti() {
|
|
304
|
+
}
|
|
305
|
+
function rs(t) {
|
|
306
|
+
return t;
|
|
307
|
+
}
|
|
308
|
+
var ys = ["longlat", "identity"];
|
|
309
|
+
const si = {
|
|
310
|
+
init: ti,
|
|
311
|
+
forward: rs,
|
|
312
|
+
inverse: rs,
|
|
313
|
+
names: ys
|
|
314
|
+
};
|
|
315
|
+
var ii = [Ys, si], V = {}, at = [];
|
|
316
|
+
function ms(t, s) {
|
|
317
|
+
var i = at.length;
|
|
318
|
+
return t.names ? (at[i] = t, t.names.forEach(function(h) {
|
|
319
|
+
V[h.toLowerCase()] = i;
|
|
320
|
+
}), this) : (console.log(s), !0);
|
|
321
|
+
}
|
|
322
|
+
function ws(t) {
|
|
323
|
+
return t.replace(/[-\(\)\s]+/g, " ").trim().replace(/ /g, "_");
|
|
324
|
+
}
|
|
325
|
+
function ai(t) {
|
|
326
|
+
if (!t)
|
|
327
|
+
return !1;
|
|
328
|
+
var s = t.toLowerCase();
|
|
329
|
+
if (typeof V[s] < "u" && at[V[s]] || (s = ws(s), s in V && at[V[s]]))
|
|
330
|
+
return at[V[s]];
|
|
331
|
+
}
|
|
332
|
+
function hi() {
|
|
333
|
+
ii.forEach(ms);
|
|
334
|
+
}
|
|
335
|
+
const ei = {
|
|
336
|
+
start: hi,
|
|
337
|
+
add: ms,
|
|
338
|
+
get: ai
|
|
339
|
+
};
|
|
340
|
+
var ds = {
|
|
341
|
+
MERIT: {
|
|
342
|
+
a: 6378137,
|
|
343
|
+
rf: 298.257,
|
|
344
|
+
ellipseName: "MERIT 1983"
|
|
345
|
+
},
|
|
346
|
+
SGS85: {
|
|
347
|
+
a: 6378136,
|
|
348
|
+
rf: 298.257,
|
|
349
|
+
ellipseName: "Soviet Geodetic System 85"
|
|
350
|
+
},
|
|
351
|
+
GRS80: {
|
|
352
|
+
a: 6378137,
|
|
353
|
+
rf: 298.257222101,
|
|
354
|
+
ellipseName: "GRS 1980(IUGG, 1980)"
|
|
355
|
+
},
|
|
356
|
+
IAU76: {
|
|
357
|
+
a: 6378140,
|
|
358
|
+
rf: 298.257,
|
|
359
|
+
ellipseName: "IAU 1976"
|
|
360
|
+
},
|
|
361
|
+
airy: {
|
|
362
|
+
a: 6377563396e-3,
|
|
363
|
+
b: 635625691e-2,
|
|
364
|
+
ellipseName: "Airy 1830"
|
|
365
|
+
},
|
|
366
|
+
APL4: {
|
|
367
|
+
a: 6378137,
|
|
368
|
+
rf: 298.25,
|
|
369
|
+
ellipseName: "Appl. Physics. 1965"
|
|
370
|
+
},
|
|
371
|
+
NWL9D: {
|
|
372
|
+
a: 6378145,
|
|
373
|
+
rf: 298.25,
|
|
374
|
+
ellipseName: "Naval Weapons Lab., 1965"
|
|
375
|
+
},
|
|
376
|
+
mod_airy: {
|
|
377
|
+
a: 6377340189e-3,
|
|
378
|
+
b: 6356034446e-3,
|
|
379
|
+
ellipseName: "Modified Airy"
|
|
380
|
+
},
|
|
381
|
+
andrae: {
|
|
382
|
+
a: 637710443e-2,
|
|
383
|
+
rf: 300,
|
|
384
|
+
ellipseName: "Andrae 1876 (Den., Iclnd.)"
|
|
385
|
+
},
|
|
386
|
+
aust_SA: {
|
|
387
|
+
a: 6378160,
|
|
388
|
+
rf: 298.25,
|
|
389
|
+
ellipseName: "Australian Natl & S. Amer. 1969"
|
|
390
|
+
},
|
|
391
|
+
GRS67: {
|
|
392
|
+
a: 6378160,
|
|
393
|
+
rf: 298.247167427,
|
|
394
|
+
ellipseName: "GRS 67(IUGG 1967)"
|
|
395
|
+
},
|
|
396
|
+
bessel: {
|
|
397
|
+
a: 6377397155e-3,
|
|
398
|
+
rf: 299.1528128,
|
|
399
|
+
ellipseName: "Bessel 1841"
|
|
400
|
+
},
|
|
401
|
+
bess_nam: {
|
|
402
|
+
a: 6377483865e-3,
|
|
403
|
+
rf: 299.1528128,
|
|
404
|
+
ellipseName: "Bessel 1841 (Namibia)"
|
|
405
|
+
},
|
|
406
|
+
clrk66: {
|
|
407
|
+
a: 63782064e-1,
|
|
408
|
+
b: 63565838e-1,
|
|
409
|
+
ellipseName: "Clarke 1866"
|
|
410
|
+
},
|
|
411
|
+
clrk80: {
|
|
412
|
+
a: 6378249145e-3,
|
|
413
|
+
rf: 293.4663,
|
|
414
|
+
ellipseName: "Clarke 1880 mod."
|
|
415
|
+
},
|
|
416
|
+
clrk80ign: {
|
|
417
|
+
a: 63782492e-1,
|
|
418
|
+
b: 6356515,
|
|
419
|
+
rf: 293.4660213,
|
|
420
|
+
ellipseName: "Clarke 1880 (IGN)"
|
|
421
|
+
},
|
|
422
|
+
clrk58: {
|
|
423
|
+
a: 6378293645208759e-9,
|
|
424
|
+
rf: 294.2606763692654,
|
|
425
|
+
ellipseName: "Clarke 1858"
|
|
426
|
+
},
|
|
427
|
+
CPM: {
|
|
428
|
+
a: 63757387e-1,
|
|
429
|
+
rf: 334.29,
|
|
430
|
+
ellipseName: "Comm. des Poids et Mesures 1799"
|
|
431
|
+
},
|
|
432
|
+
delmbr: {
|
|
433
|
+
a: 6376428,
|
|
434
|
+
rf: 311.5,
|
|
435
|
+
ellipseName: "Delambre 1810 (Belgium)"
|
|
436
|
+
},
|
|
437
|
+
engelis: {
|
|
438
|
+
a: 637813605e-2,
|
|
439
|
+
rf: 298.2566,
|
|
440
|
+
ellipseName: "Engelis 1985"
|
|
441
|
+
},
|
|
442
|
+
evrst30: {
|
|
443
|
+
a: 6377276345e-3,
|
|
444
|
+
rf: 300.8017,
|
|
445
|
+
ellipseName: "Everest 1830"
|
|
446
|
+
},
|
|
447
|
+
evrst48: {
|
|
448
|
+
a: 6377304063e-3,
|
|
449
|
+
rf: 300.8017,
|
|
450
|
+
ellipseName: "Everest 1948"
|
|
451
|
+
},
|
|
452
|
+
evrst56: {
|
|
453
|
+
a: 6377301243e-3,
|
|
454
|
+
rf: 300.8017,
|
|
455
|
+
ellipseName: "Everest 1956"
|
|
456
|
+
},
|
|
457
|
+
evrst69: {
|
|
458
|
+
a: 6377295664e-3,
|
|
459
|
+
rf: 300.8017,
|
|
460
|
+
ellipseName: "Everest 1969"
|
|
461
|
+
},
|
|
462
|
+
evrstSS: {
|
|
463
|
+
a: 6377298556e-3,
|
|
464
|
+
rf: 300.8017,
|
|
465
|
+
ellipseName: "Everest (Sabah & Sarawak)"
|
|
466
|
+
},
|
|
467
|
+
fschr60: {
|
|
468
|
+
a: 6378166,
|
|
469
|
+
rf: 298.3,
|
|
470
|
+
ellipseName: "Fischer (Mercury Datum) 1960"
|
|
471
|
+
},
|
|
472
|
+
fschr60m: {
|
|
473
|
+
a: 6378155,
|
|
474
|
+
rf: 298.3,
|
|
475
|
+
ellipseName: "Fischer 1960"
|
|
476
|
+
},
|
|
477
|
+
fschr68: {
|
|
478
|
+
a: 6378150,
|
|
479
|
+
rf: 298.3,
|
|
480
|
+
ellipseName: "Fischer 1968"
|
|
481
|
+
},
|
|
482
|
+
helmert: {
|
|
483
|
+
a: 6378200,
|
|
484
|
+
rf: 298.3,
|
|
485
|
+
ellipseName: "Helmert 1906"
|
|
486
|
+
},
|
|
487
|
+
hough: {
|
|
488
|
+
a: 6378270,
|
|
489
|
+
rf: 297,
|
|
490
|
+
ellipseName: "Hough"
|
|
491
|
+
},
|
|
492
|
+
intl: {
|
|
493
|
+
a: 6378388,
|
|
494
|
+
rf: 297,
|
|
495
|
+
ellipseName: "International 1909 (Hayford)"
|
|
496
|
+
},
|
|
497
|
+
kaula: {
|
|
498
|
+
a: 6378163,
|
|
499
|
+
rf: 298.24,
|
|
500
|
+
ellipseName: "Kaula 1961"
|
|
501
|
+
},
|
|
502
|
+
lerch: {
|
|
503
|
+
a: 6378139,
|
|
504
|
+
rf: 298.257,
|
|
505
|
+
ellipseName: "Lerch 1979"
|
|
506
|
+
},
|
|
507
|
+
mprts: {
|
|
508
|
+
a: 6397300,
|
|
509
|
+
rf: 191,
|
|
510
|
+
ellipseName: "Maupertius 1738"
|
|
511
|
+
},
|
|
512
|
+
new_intl: {
|
|
513
|
+
a: 63781575e-1,
|
|
514
|
+
b: 63567722e-1,
|
|
515
|
+
ellipseName: "New International 1967"
|
|
516
|
+
},
|
|
517
|
+
plessis: {
|
|
518
|
+
a: 6376523,
|
|
519
|
+
rf: 6355863,
|
|
520
|
+
ellipseName: "Plessis 1817 (France)"
|
|
521
|
+
},
|
|
522
|
+
krass: {
|
|
523
|
+
a: 6378245,
|
|
524
|
+
rf: 298.3,
|
|
525
|
+
ellipseName: "Krassovsky, 1942"
|
|
526
|
+
},
|
|
527
|
+
SEasia: {
|
|
528
|
+
a: 6378155,
|
|
529
|
+
b: 63567733205e-4,
|
|
530
|
+
ellipseName: "Southeast Asia"
|
|
531
|
+
},
|
|
532
|
+
walbeck: {
|
|
533
|
+
a: 6376896,
|
|
534
|
+
b: 63558348467e-4,
|
|
535
|
+
ellipseName: "Walbeck"
|
|
536
|
+
},
|
|
537
|
+
WGS60: {
|
|
538
|
+
a: 6378165,
|
|
539
|
+
rf: 298.3,
|
|
540
|
+
ellipseName: "WGS 60"
|
|
541
|
+
},
|
|
542
|
+
WGS66: {
|
|
543
|
+
a: 6378145,
|
|
544
|
+
rf: 298.25,
|
|
545
|
+
ellipseName: "WGS 66"
|
|
546
|
+
},
|
|
547
|
+
WGS7: {
|
|
548
|
+
a: 6378135,
|
|
549
|
+
rf: 298.26,
|
|
550
|
+
ellipseName: "WGS 72"
|
|
551
|
+
},
|
|
552
|
+
WGS84: {
|
|
553
|
+
a: 6378137,
|
|
554
|
+
rf: 298.257223563,
|
|
555
|
+
ellipseName: "WGS 84"
|
|
556
|
+
},
|
|
557
|
+
sphere: {
|
|
558
|
+
a: 6370997,
|
|
559
|
+
b: 6370997,
|
|
560
|
+
ellipseName: "Normal Sphere (r=6370997)"
|
|
561
|
+
}
|
|
562
|
+
};
|
|
563
|
+
const ri = ds.WGS84;
|
|
564
|
+
function ni(t, s, i, h) {
|
|
565
|
+
var a = t * t, e = s * s, n = (a - e) / a, r = 0;
|
|
566
|
+
h ? (t *= 1 - n * (Ts + n * (Fs + n * Bs)), a = t * t, n = 0) : r = Math.sqrt(n);
|
|
567
|
+
var o = (a - e) / e;
|
|
568
|
+
return {
|
|
569
|
+
es: n,
|
|
570
|
+
e: r,
|
|
571
|
+
ep2: o
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
function oi(t, s, i, h, a) {
|
|
575
|
+
if (!t) {
|
|
576
|
+
var e = X(ds, h);
|
|
577
|
+
e || (e = ri), t = e.a, s = e.b, i = e.rf;
|
|
578
|
+
}
|
|
579
|
+
return i && !s && (s = (1 - 1 / i) * t), (i === 0 || Math.abs(t - s) < y) && (a = !0, s = t), {
|
|
580
|
+
a: t,
|
|
581
|
+
b: s,
|
|
582
|
+
rf: i,
|
|
583
|
+
sphere: a
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
var Nt = {
|
|
587
|
+
wgs84: {
|
|
588
|
+
towgs84: "0,0,0",
|
|
589
|
+
ellipse: "WGS84",
|
|
590
|
+
datumName: "WGS84"
|
|
591
|
+
},
|
|
592
|
+
ch1903: {
|
|
593
|
+
towgs84: "674.374,15.056,405.346",
|
|
594
|
+
ellipse: "bessel",
|
|
595
|
+
datumName: "swiss"
|
|
596
|
+
},
|
|
597
|
+
ggrs87: {
|
|
598
|
+
towgs84: "-199.87,74.79,246.62",
|
|
599
|
+
ellipse: "GRS80",
|
|
600
|
+
datumName: "Greek_Geodetic_Reference_System_1987"
|
|
601
|
+
},
|
|
602
|
+
nad83: {
|
|
603
|
+
towgs84: "0,0,0",
|
|
604
|
+
ellipse: "GRS80",
|
|
605
|
+
datumName: "North_American_Datum_1983"
|
|
606
|
+
},
|
|
607
|
+
nad27: {
|
|
608
|
+
nadgrids: "@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",
|
|
609
|
+
ellipse: "clrk66",
|
|
610
|
+
datumName: "North_American_Datum_1927"
|
|
611
|
+
},
|
|
612
|
+
potsdam: {
|
|
613
|
+
towgs84: "598.1,73.7,418.2,0.202,0.045,-2.455,6.7",
|
|
614
|
+
ellipse: "bessel",
|
|
615
|
+
datumName: "Potsdam Rauenberg 1950 DHDN"
|
|
616
|
+
},
|
|
617
|
+
carthage: {
|
|
618
|
+
towgs84: "-263.0,6.0,431.0",
|
|
619
|
+
ellipse: "clark80",
|
|
620
|
+
datumName: "Carthage 1934 Tunisia"
|
|
621
|
+
},
|
|
622
|
+
hermannskogel: {
|
|
623
|
+
towgs84: "577.326,90.129,463.919,5.137,1.474,5.297,2.4232",
|
|
624
|
+
ellipse: "bessel",
|
|
625
|
+
datumName: "Hermannskogel"
|
|
626
|
+
},
|
|
627
|
+
mgi: {
|
|
628
|
+
towgs84: "577.326,90.129,463.919,5.137,1.474,5.297,2.4232",
|
|
629
|
+
ellipse: "bessel",
|
|
630
|
+
datumName: "Militar-Geographische Institut"
|
|
631
|
+
},
|
|
632
|
+
osni52: {
|
|
633
|
+
towgs84: "482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",
|
|
634
|
+
ellipse: "airy",
|
|
635
|
+
datumName: "Irish National"
|
|
636
|
+
},
|
|
637
|
+
ire65: {
|
|
638
|
+
towgs84: "482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",
|
|
639
|
+
ellipse: "mod_airy",
|
|
640
|
+
datumName: "Ireland 1965"
|
|
641
|
+
},
|
|
642
|
+
rassadiran: {
|
|
643
|
+
towgs84: "-133.63,-157.5,-158.62",
|
|
644
|
+
ellipse: "intl",
|
|
645
|
+
datumName: "Rassadiran"
|
|
646
|
+
},
|
|
647
|
+
nzgd49: {
|
|
648
|
+
towgs84: "59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",
|
|
649
|
+
ellipse: "intl",
|
|
650
|
+
datumName: "New Zealand Geodetic Datum 1949"
|
|
651
|
+
},
|
|
652
|
+
osgb36: {
|
|
653
|
+
towgs84: "446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",
|
|
654
|
+
ellipse: "airy",
|
|
655
|
+
datumName: "Ordnance Survey of Great Britain 1936"
|
|
656
|
+
},
|
|
657
|
+
s_jtsk: {
|
|
658
|
+
towgs84: "589,76,480",
|
|
659
|
+
ellipse: "bessel",
|
|
660
|
+
datumName: "S-JTSK (Ferro)"
|
|
661
|
+
},
|
|
662
|
+
beduaram: {
|
|
663
|
+
towgs84: "-106,-87,188",
|
|
664
|
+
ellipse: "clrk80",
|
|
665
|
+
datumName: "Beduaram"
|
|
666
|
+
},
|
|
667
|
+
gunung_segara: {
|
|
668
|
+
towgs84: "-403,684,41",
|
|
669
|
+
ellipse: "bessel",
|
|
670
|
+
datumName: "Gunung Segara Jakarta"
|
|
671
|
+
},
|
|
672
|
+
rnb72: {
|
|
673
|
+
towgs84: "106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",
|
|
674
|
+
ellipse: "intl",
|
|
675
|
+
datumName: "Reseau National Belge 1972"
|
|
676
|
+
},
|
|
677
|
+
EPSG_5451: {
|
|
678
|
+
towgs84: "6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"
|
|
679
|
+
},
|
|
680
|
+
IGNF_LURESG: {
|
|
681
|
+
towgs84: "-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"
|
|
682
|
+
},
|
|
683
|
+
EPSG_4614: {
|
|
684
|
+
towgs84: "-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"
|
|
685
|
+
},
|
|
686
|
+
EPSG_4615: {
|
|
687
|
+
towgs84: "-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"
|
|
688
|
+
},
|
|
689
|
+
ESRI_37241: {
|
|
690
|
+
towgs84: "-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"
|
|
691
|
+
},
|
|
692
|
+
ESRI_37249: {
|
|
693
|
+
towgs84: "-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"
|
|
694
|
+
},
|
|
695
|
+
ESRI_37245: {
|
|
696
|
+
towgs84: "-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"
|
|
697
|
+
},
|
|
698
|
+
EPSG_4178: {
|
|
699
|
+
towgs84: "24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"
|
|
700
|
+
},
|
|
701
|
+
EPSG_4622: {
|
|
702
|
+
towgs84: "-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"
|
|
703
|
+
},
|
|
704
|
+
EPSG_4625: {
|
|
705
|
+
towgs84: "126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"
|
|
706
|
+
},
|
|
707
|
+
EPSG_5252: {
|
|
708
|
+
towgs84: "0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"
|
|
709
|
+
},
|
|
710
|
+
EPSG_4314: {
|
|
711
|
+
towgs84: "597.1,71.4,412.1,0.894,0.068,-1.563,7.58"
|
|
712
|
+
},
|
|
713
|
+
EPSG_4282: {
|
|
714
|
+
towgs84: "-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"
|
|
715
|
+
},
|
|
716
|
+
EPSG_4231: {
|
|
717
|
+
towgs84: "-83.11,-97.38,-117.22,0.005693,-0.044698,0.044285,0.1218"
|
|
718
|
+
},
|
|
719
|
+
EPSG_4274: {
|
|
720
|
+
towgs84: "-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"
|
|
721
|
+
},
|
|
722
|
+
EPSG_4134: {
|
|
723
|
+
towgs84: "-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"
|
|
724
|
+
},
|
|
725
|
+
EPSG_4254: {
|
|
726
|
+
towgs84: "18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"
|
|
727
|
+
},
|
|
728
|
+
EPSG_4159: {
|
|
729
|
+
towgs84: "-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"
|
|
730
|
+
},
|
|
731
|
+
EPSG_4687: {
|
|
732
|
+
towgs84: "0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"
|
|
733
|
+
},
|
|
734
|
+
EPSG_4227: {
|
|
735
|
+
towgs84: "-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"
|
|
736
|
+
},
|
|
737
|
+
EPSG_4746: {
|
|
738
|
+
towgs84: "599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"
|
|
739
|
+
},
|
|
740
|
+
EPSG_4745: {
|
|
741
|
+
towgs84: "612.4,77,440.2,-0.054,0.057,-2.797,2.55"
|
|
742
|
+
},
|
|
743
|
+
EPSG_6311: {
|
|
744
|
+
towgs84: "8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"
|
|
745
|
+
},
|
|
746
|
+
EPSG_4289: {
|
|
747
|
+
towgs84: "565.7381,50.4018,465.2904,-0.395026,0.330772,-1.876073,4.07244"
|
|
748
|
+
},
|
|
749
|
+
EPSG_4230: {
|
|
750
|
+
towgs84: "-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"
|
|
751
|
+
},
|
|
752
|
+
EPSG_4154: {
|
|
753
|
+
towgs84: "-123.02,-158.95,-168.47"
|
|
754
|
+
},
|
|
755
|
+
EPSG_4156: {
|
|
756
|
+
towgs84: "570.8,85.7,462.8,4.998,1.587,5.261,3.56"
|
|
757
|
+
},
|
|
758
|
+
EPSG_4299: {
|
|
759
|
+
towgs84: "482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"
|
|
760
|
+
},
|
|
761
|
+
EPSG_4179: {
|
|
762
|
+
towgs84: "33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"
|
|
763
|
+
},
|
|
764
|
+
EPSG_4313: {
|
|
765
|
+
towgs84: "-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"
|
|
766
|
+
},
|
|
767
|
+
EPSG_4194: {
|
|
768
|
+
towgs84: "163.511,127.533,-159.789"
|
|
769
|
+
},
|
|
770
|
+
EPSG_4195: {
|
|
771
|
+
towgs84: "105,326,-102.5"
|
|
772
|
+
},
|
|
773
|
+
EPSG_4196: {
|
|
774
|
+
towgs84: "-45,417,-3.5"
|
|
775
|
+
},
|
|
776
|
+
EPSG_4611: {
|
|
777
|
+
towgs84: "-162.619,-276.959,-161.764,0.067753,-2.243648,-1.158828,-1.094246"
|
|
778
|
+
},
|
|
779
|
+
EPSG_4633: {
|
|
780
|
+
towgs84: "137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"
|
|
781
|
+
},
|
|
782
|
+
EPSG_4641: {
|
|
783
|
+
towgs84: "-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"
|
|
784
|
+
},
|
|
785
|
+
EPSG_4643: {
|
|
786
|
+
towgs84: "-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"
|
|
787
|
+
},
|
|
788
|
+
EPSG_4300: {
|
|
789
|
+
towgs84: "482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"
|
|
790
|
+
},
|
|
791
|
+
EPSG_4188: {
|
|
792
|
+
towgs84: "482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"
|
|
793
|
+
},
|
|
794
|
+
EPSG_4660: {
|
|
795
|
+
towgs84: "982.6087,552.753,-540.873,6.681627,-31.611492,-19.848161,16.805"
|
|
796
|
+
},
|
|
797
|
+
EPSG_4662: {
|
|
798
|
+
towgs84: "97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"
|
|
799
|
+
},
|
|
800
|
+
EPSG_3906: {
|
|
801
|
+
towgs84: "577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"
|
|
802
|
+
},
|
|
803
|
+
EPSG_4307: {
|
|
804
|
+
towgs84: "-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"
|
|
805
|
+
},
|
|
806
|
+
EPSG_6892: {
|
|
807
|
+
towgs84: "-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"
|
|
808
|
+
},
|
|
809
|
+
EPSG_4690: {
|
|
810
|
+
towgs84: "221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"
|
|
811
|
+
},
|
|
812
|
+
EPSG_4691: {
|
|
813
|
+
towgs84: "218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"
|
|
814
|
+
},
|
|
815
|
+
EPSG_4629: {
|
|
816
|
+
towgs84: "72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"
|
|
817
|
+
},
|
|
818
|
+
EPSG_4630: {
|
|
819
|
+
towgs84: "165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"
|
|
820
|
+
},
|
|
821
|
+
EPSG_4692: {
|
|
822
|
+
towgs84: "217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"
|
|
823
|
+
},
|
|
824
|
+
EPSG_9333: {
|
|
825
|
+
towgs84: "0,0,0,-0.008393,0.000749,-0.010276,0"
|
|
826
|
+
},
|
|
827
|
+
EPSG_9059: {
|
|
828
|
+
towgs84: "0,0,0"
|
|
829
|
+
},
|
|
830
|
+
EPSG_4312: {
|
|
831
|
+
towgs84: "601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"
|
|
832
|
+
},
|
|
833
|
+
EPSG_4123: {
|
|
834
|
+
towgs84: "-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"
|
|
835
|
+
},
|
|
836
|
+
EPSG_4309: {
|
|
837
|
+
towgs84: "-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"
|
|
838
|
+
},
|
|
839
|
+
ESRI_104106: {
|
|
840
|
+
towgs84: "-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"
|
|
841
|
+
},
|
|
842
|
+
EPSG_4281: {
|
|
843
|
+
towgs84: "-219.247,-73.802,269.529"
|
|
844
|
+
},
|
|
845
|
+
EPSG_4322: {
|
|
846
|
+
towgs84: "0,0,4.5"
|
|
847
|
+
},
|
|
848
|
+
EPSG_4324: {
|
|
849
|
+
towgs84: "0,0,1.9"
|
|
850
|
+
},
|
|
851
|
+
EPSG_4284: {
|
|
852
|
+
towgs84: "43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"
|
|
853
|
+
},
|
|
854
|
+
EPSG_4277: {
|
|
855
|
+
towgs84: "446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"
|
|
856
|
+
},
|
|
857
|
+
EPSG_4207: {
|
|
858
|
+
towgs84: "-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"
|
|
859
|
+
},
|
|
860
|
+
EPSG_4688: {
|
|
861
|
+
towgs84: "347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"
|
|
862
|
+
},
|
|
863
|
+
EPSG_4689: {
|
|
864
|
+
towgs84: "410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"
|
|
865
|
+
},
|
|
866
|
+
EPSG_4720: {
|
|
867
|
+
towgs84: "0,0,4.5"
|
|
868
|
+
},
|
|
869
|
+
EPSG_4273: {
|
|
870
|
+
towgs84: "278.3,93,474.5,7.889,0.05,-6.61,6.21"
|
|
871
|
+
},
|
|
872
|
+
EPSG_4240: {
|
|
873
|
+
towgs84: "204.64,834.74,293.8"
|
|
874
|
+
},
|
|
875
|
+
EPSG_4817: {
|
|
876
|
+
towgs84: "278.3,93,474.5,7.889,0.05,-6.61,6.21"
|
|
877
|
+
},
|
|
878
|
+
ESRI_104131: {
|
|
879
|
+
towgs84: "426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"
|
|
880
|
+
},
|
|
881
|
+
EPSG_4265: {
|
|
882
|
+
towgs84: "-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"
|
|
883
|
+
},
|
|
884
|
+
EPSG_4263: {
|
|
885
|
+
towgs84: "-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"
|
|
886
|
+
},
|
|
887
|
+
EPSG_4298: {
|
|
888
|
+
towgs84: "-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"
|
|
889
|
+
},
|
|
890
|
+
EPSG_4270: {
|
|
891
|
+
towgs84: "-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"
|
|
892
|
+
},
|
|
893
|
+
EPSG_4229: {
|
|
894
|
+
towgs84: "-121.8,98.1,-10.7"
|
|
895
|
+
},
|
|
896
|
+
EPSG_4220: {
|
|
897
|
+
towgs84: "-55.5,-348,-229.2"
|
|
898
|
+
},
|
|
899
|
+
EPSG_4214: {
|
|
900
|
+
towgs84: "12.646,-155.176,-80.863"
|
|
901
|
+
},
|
|
902
|
+
EPSG_4232: {
|
|
903
|
+
towgs84: "-345,3,223"
|
|
904
|
+
},
|
|
905
|
+
EPSG_4238: {
|
|
906
|
+
towgs84: "-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"
|
|
907
|
+
},
|
|
908
|
+
EPSG_4168: {
|
|
909
|
+
towgs84: "-170,33,326"
|
|
910
|
+
},
|
|
911
|
+
EPSG_4131: {
|
|
912
|
+
towgs84: "199,931,318.9"
|
|
913
|
+
},
|
|
914
|
+
EPSG_4152: {
|
|
915
|
+
towgs84: "-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"
|
|
916
|
+
},
|
|
917
|
+
EPSG_5228: {
|
|
918
|
+
towgs84: "572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"
|
|
919
|
+
},
|
|
920
|
+
EPSG_8351: {
|
|
921
|
+
towgs84: "485.021,169.465,483.839,7.786342,4.397554,4.102655,0"
|
|
922
|
+
},
|
|
923
|
+
EPSG_4683: {
|
|
924
|
+
towgs84: "-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"
|
|
925
|
+
},
|
|
926
|
+
EPSG_4133: {
|
|
927
|
+
towgs84: "0,0,0"
|
|
928
|
+
},
|
|
929
|
+
EPSG_7373: {
|
|
930
|
+
towgs84: "0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"
|
|
931
|
+
},
|
|
932
|
+
EPSG_9075: {
|
|
933
|
+
towgs84: "-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"
|
|
934
|
+
},
|
|
935
|
+
EPSG_9072: {
|
|
936
|
+
towgs84: "-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"
|
|
937
|
+
},
|
|
938
|
+
EPSG_9294: {
|
|
939
|
+
towgs84: "1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"
|
|
940
|
+
},
|
|
941
|
+
EPSG_4212: {
|
|
942
|
+
towgs84: "-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"
|
|
943
|
+
},
|
|
944
|
+
EPSG_4191: {
|
|
945
|
+
towgs84: "-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"
|
|
946
|
+
},
|
|
947
|
+
EPSG_4237: {
|
|
948
|
+
towgs84: "52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"
|
|
949
|
+
},
|
|
950
|
+
EPSG_4740: {
|
|
951
|
+
towgs84: "-1.08,-0.27,-0.9"
|
|
952
|
+
},
|
|
953
|
+
EPSG_4124: {
|
|
954
|
+
towgs84: "419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"
|
|
955
|
+
},
|
|
956
|
+
EPSG_5681: {
|
|
957
|
+
towgs84: "584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"
|
|
958
|
+
},
|
|
959
|
+
EPSG_4141: {
|
|
960
|
+
towgs84: "23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"
|
|
961
|
+
},
|
|
962
|
+
EPSG_4204: {
|
|
963
|
+
towgs84: "-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"
|
|
964
|
+
},
|
|
965
|
+
EPSG_4319: {
|
|
966
|
+
towgs84: "226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"
|
|
967
|
+
},
|
|
968
|
+
EPSG_4200: {
|
|
969
|
+
towgs84: "24.82,-131.21,-82.66"
|
|
970
|
+
},
|
|
971
|
+
EPSG_4130: {
|
|
972
|
+
towgs84: "0,0,0"
|
|
973
|
+
},
|
|
974
|
+
EPSG_4127: {
|
|
975
|
+
towgs84: "-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"
|
|
976
|
+
},
|
|
977
|
+
EPSG_4149: {
|
|
978
|
+
towgs84: "674.374,15.056,405.346"
|
|
979
|
+
},
|
|
980
|
+
EPSG_4617: {
|
|
981
|
+
towgs84: "-0.991,1.9072,0.5129,0.02579,0.00965,0.01166,0"
|
|
982
|
+
},
|
|
983
|
+
EPSG_4663: {
|
|
984
|
+
towgs84: "-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"
|
|
985
|
+
},
|
|
986
|
+
EPSG_4664: {
|
|
987
|
+
towgs84: "-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"
|
|
988
|
+
},
|
|
989
|
+
EPSG_4665: {
|
|
990
|
+
towgs84: "-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"
|
|
991
|
+
},
|
|
992
|
+
EPSG_4666: {
|
|
993
|
+
towgs84: "631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"
|
|
994
|
+
},
|
|
995
|
+
EPSG_4756: {
|
|
996
|
+
towgs84: "-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"
|
|
997
|
+
},
|
|
998
|
+
EPSG_4723: {
|
|
999
|
+
towgs84: "-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"
|
|
1000
|
+
},
|
|
1001
|
+
EPSG_4726: {
|
|
1002
|
+
towgs84: "8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"
|
|
1003
|
+
},
|
|
1004
|
+
EPSG_4267: {
|
|
1005
|
+
towgs84: "-8.0,160.0,176.0"
|
|
1006
|
+
},
|
|
1007
|
+
EPSG_5365: {
|
|
1008
|
+
towgs84: "-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"
|
|
1009
|
+
},
|
|
1010
|
+
EPSG_4218: {
|
|
1011
|
+
towgs84: "304.5,306.5,-318.1"
|
|
1012
|
+
},
|
|
1013
|
+
EPSG_4242: {
|
|
1014
|
+
towgs84: "-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"
|
|
1015
|
+
},
|
|
1016
|
+
EPSG_4216: {
|
|
1017
|
+
towgs84: "-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"
|
|
1018
|
+
},
|
|
1019
|
+
ESRI_104105: {
|
|
1020
|
+
towgs84: "631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"
|
|
1021
|
+
},
|
|
1022
|
+
ESRI_104129: {
|
|
1023
|
+
towgs84: "0,0,0"
|
|
1024
|
+
},
|
|
1025
|
+
EPSG_4673: {
|
|
1026
|
+
towgs84: "174.05,-25.49,112.57"
|
|
1027
|
+
},
|
|
1028
|
+
EPSG_4202: {
|
|
1029
|
+
towgs84: "-124,-60,154"
|
|
1030
|
+
},
|
|
1031
|
+
EPSG_4203: {
|
|
1032
|
+
towgs84: "-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"
|
|
1033
|
+
},
|
|
1034
|
+
EPSG_3819: {
|
|
1035
|
+
towgs84: "595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"
|
|
1036
|
+
},
|
|
1037
|
+
EPSG_8694: {
|
|
1038
|
+
towgs84: "-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"
|
|
1039
|
+
},
|
|
1040
|
+
EPSG_4145: {
|
|
1041
|
+
towgs84: "275.57,676.78,229.6"
|
|
1042
|
+
},
|
|
1043
|
+
EPSG_4283: {
|
|
1044
|
+
towgs84: "0.06155,-0.01087,-0.04019,0.039492,0.032722,0.032898,-0.009994"
|
|
1045
|
+
},
|
|
1046
|
+
EPSG_4317: {
|
|
1047
|
+
towgs84: "2.3287,-147.0425,-92.0802,-0.309248,0.324822,0.497299,5.689063"
|
|
1048
|
+
},
|
|
1049
|
+
EPSG_4272: {
|
|
1050
|
+
towgs84: "59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"
|
|
1051
|
+
},
|
|
1052
|
+
EPSG_4248: {
|
|
1053
|
+
towgs84: "-307.7,265.3,-363.5"
|
|
1054
|
+
},
|
|
1055
|
+
EPSG_5561: {
|
|
1056
|
+
towgs84: "24,-121,-76"
|
|
1057
|
+
},
|
|
1058
|
+
EPSG_5233: {
|
|
1059
|
+
towgs84: "-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"
|
|
1060
|
+
},
|
|
1061
|
+
ESRI_104130: {
|
|
1062
|
+
towgs84: "-86,-98,-119"
|
|
1063
|
+
},
|
|
1064
|
+
ESRI_104102: {
|
|
1065
|
+
towgs84: "682,-203,480"
|
|
1066
|
+
},
|
|
1067
|
+
ESRI_37207: {
|
|
1068
|
+
towgs84: "7,-10,-26"
|
|
1069
|
+
},
|
|
1070
|
+
EPSG_4675: {
|
|
1071
|
+
towgs84: "59.935,118.4,-10.871"
|
|
1072
|
+
},
|
|
1073
|
+
ESRI_104109: {
|
|
1074
|
+
towgs84: "-89.121,-348.182,260.871"
|
|
1075
|
+
},
|
|
1076
|
+
ESRI_104112: {
|
|
1077
|
+
towgs84: "-185.583,-230.096,281.361"
|
|
1078
|
+
},
|
|
1079
|
+
ESRI_104113: {
|
|
1080
|
+
towgs84: "25.1,-275.6,222.6"
|
|
1081
|
+
},
|
|
1082
|
+
IGNF_WGS72G: {
|
|
1083
|
+
towgs84: "0,12,6"
|
|
1084
|
+
},
|
|
1085
|
+
IGNF_NTFG: {
|
|
1086
|
+
towgs84: "-168,-60,320"
|
|
1087
|
+
},
|
|
1088
|
+
IGNF_EFATE57G: {
|
|
1089
|
+
towgs84: "-127,-769,472"
|
|
1090
|
+
},
|
|
1091
|
+
IGNF_PGP50G: {
|
|
1092
|
+
towgs84: "324.8,153.6,172.1"
|
|
1093
|
+
},
|
|
1094
|
+
IGNF_REUN47G: {
|
|
1095
|
+
towgs84: "94,-948,-1262"
|
|
1096
|
+
},
|
|
1097
|
+
IGNF_CSG67G: {
|
|
1098
|
+
towgs84: "-186,230,110"
|
|
1099
|
+
},
|
|
1100
|
+
IGNF_GUAD48G: {
|
|
1101
|
+
towgs84: "-467,-16,-300"
|
|
1102
|
+
},
|
|
1103
|
+
IGNF_TAHI51G: {
|
|
1104
|
+
towgs84: "162,117,154"
|
|
1105
|
+
},
|
|
1106
|
+
IGNF_TAHAAG: {
|
|
1107
|
+
towgs84: "65,342,77"
|
|
1108
|
+
},
|
|
1109
|
+
IGNF_NUKU72G: {
|
|
1110
|
+
towgs84: "84,274,65"
|
|
1111
|
+
},
|
|
1112
|
+
IGNF_PETRELS72G: {
|
|
1113
|
+
towgs84: "365,194,166"
|
|
1114
|
+
},
|
|
1115
|
+
IGNF_WALL78G: {
|
|
1116
|
+
towgs84: "253,-133,-127"
|
|
1117
|
+
},
|
|
1118
|
+
IGNF_MAYO50G: {
|
|
1119
|
+
towgs84: "-382,-59,-262"
|
|
1120
|
+
},
|
|
1121
|
+
IGNF_TANNAG: {
|
|
1122
|
+
towgs84: "-139,-967,436"
|
|
1123
|
+
},
|
|
1124
|
+
IGNF_IGN72G: {
|
|
1125
|
+
towgs84: "-13,-348,292"
|
|
1126
|
+
},
|
|
1127
|
+
IGNF_ATIGG: {
|
|
1128
|
+
towgs84: "1118,23,66"
|
|
1129
|
+
},
|
|
1130
|
+
IGNF_FANGA84G: {
|
|
1131
|
+
towgs84: "150.57,158.33,118.32"
|
|
1132
|
+
},
|
|
1133
|
+
IGNF_RUSAT84G: {
|
|
1134
|
+
towgs84: "202.13,174.6,-15.74"
|
|
1135
|
+
},
|
|
1136
|
+
IGNF_KAUE70G: {
|
|
1137
|
+
towgs84: "126.74,300.1,-75.49"
|
|
1138
|
+
},
|
|
1139
|
+
IGNF_MOP90G: {
|
|
1140
|
+
towgs84: "-10.8,-1.8,12.77"
|
|
1141
|
+
},
|
|
1142
|
+
IGNF_MHPF67G: {
|
|
1143
|
+
towgs84: "338.08,212.58,-296.17"
|
|
1144
|
+
},
|
|
1145
|
+
IGNF_TAHI79G: {
|
|
1146
|
+
towgs84: "160.61,116.05,153.69"
|
|
1147
|
+
},
|
|
1148
|
+
IGNF_ANAA92G: {
|
|
1149
|
+
towgs84: "1.5,3.84,4.81"
|
|
1150
|
+
},
|
|
1151
|
+
IGNF_MARQUI72G: {
|
|
1152
|
+
towgs84: "330.91,-13.92,58.56"
|
|
1153
|
+
},
|
|
1154
|
+
IGNF_APAT86G: {
|
|
1155
|
+
towgs84: "143.6,197.82,74.05"
|
|
1156
|
+
},
|
|
1157
|
+
IGNF_TUBU69G: {
|
|
1158
|
+
towgs84: "237.17,171.61,-77.84"
|
|
1159
|
+
},
|
|
1160
|
+
IGNF_STPM50G: {
|
|
1161
|
+
towgs84: "11.363,424.148,373.13"
|
|
1162
|
+
},
|
|
1163
|
+
EPSG_4150: {
|
|
1164
|
+
towgs84: "674.374,15.056,405.346"
|
|
1165
|
+
},
|
|
1166
|
+
EPSG_4754: {
|
|
1167
|
+
towgs84: "-208.4058,-109.8777,-2.5764"
|
|
1168
|
+
},
|
|
1169
|
+
ESRI_104101: {
|
|
1170
|
+
towgs84: "372.87,149.23,585.29"
|
|
1171
|
+
},
|
|
1172
|
+
EPSG_4693: {
|
|
1173
|
+
towgs84: "0,-0.15,0.68"
|
|
1174
|
+
},
|
|
1175
|
+
EPSG_6207: {
|
|
1176
|
+
towgs84: "293.17,726.18,245.36"
|
|
1177
|
+
},
|
|
1178
|
+
EPSG_4153: {
|
|
1179
|
+
towgs84: "-133.63,-157.5,-158.62"
|
|
1180
|
+
},
|
|
1181
|
+
EPSG_4132: {
|
|
1182
|
+
towgs84: "-241.54,-163.64,396.06"
|
|
1183
|
+
},
|
|
1184
|
+
EPSG_4221: {
|
|
1185
|
+
towgs84: "-154.5,150.7,100.4"
|
|
1186
|
+
},
|
|
1187
|
+
EPSG_4266: {
|
|
1188
|
+
towgs84: "-80.7,-132.5,41.1"
|
|
1189
|
+
},
|
|
1190
|
+
EPSG_4193: {
|
|
1191
|
+
towgs84: "-70.9,-151.8,-41.4"
|
|
1192
|
+
},
|
|
1193
|
+
EPSG_5340: {
|
|
1194
|
+
towgs84: "-0.41,0.46,-0.35"
|
|
1195
|
+
},
|
|
1196
|
+
EPSG_4246: {
|
|
1197
|
+
towgs84: "-294.7,-200.1,525.5"
|
|
1198
|
+
},
|
|
1199
|
+
EPSG_4318: {
|
|
1200
|
+
towgs84: "-3.2,-5.7,2.8"
|
|
1201
|
+
},
|
|
1202
|
+
EPSG_4121: {
|
|
1203
|
+
towgs84: "-199.87,74.79,246.62"
|
|
1204
|
+
},
|
|
1205
|
+
EPSG_4223: {
|
|
1206
|
+
towgs84: "-260.1,5.5,432.2"
|
|
1207
|
+
},
|
|
1208
|
+
EPSG_4158: {
|
|
1209
|
+
towgs84: "-0.465,372.095,171.736"
|
|
1210
|
+
},
|
|
1211
|
+
EPSG_4285: {
|
|
1212
|
+
towgs84: "-128.16,-282.42,21.93"
|
|
1213
|
+
},
|
|
1214
|
+
EPSG_4613: {
|
|
1215
|
+
towgs84: "-404.78,685.68,45.47"
|
|
1216
|
+
},
|
|
1217
|
+
EPSG_4607: {
|
|
1218
|
+
towgs84: "195.671,332.517,274.607"
|
|
1219
|
+
},
|
|
1220
|
+
EPSG_4475: {
|
|
1221
|
+
towgs84: "-381.788,-57.501,-256.673"
|
|
1222
|
+
},
|
|
1223
|
+
EPSG_4208: {
|
|
1224
|
+
towgs84: "-157.84,308.54,-146.6"
|
|
1225
|
+
},
|
|
1226
|
+
EPSG_4743: {
|
|
1227
|
+
towgs84: "70.995,-335.916,262.898"
|
|
1228
|
+
},
|
|
1229
|
+
EPSG_4710: {
|
|
1230
|
+
towgs84: "-323.65,551.39,-491.22"
|
|
1231
|
+
},
|
|
1232
|
+
EPSG_7881: {
|
|
1233
|
+
towgs84: "-0.077,0.079,0.086"
|
|
1234
|
+
},
|
|
1235
|
+
EPSG_4682: {
|
|
1236
|
+
towgs84: "283.729,735.942,261.143"
|
|
1237
|
+
},
|
|
1238
|
+
EPSG_4739: {
|
|
1239
|
+
towgs84: "-156,-271,-189"
|
|
1240
|
+
},
|
|
1241
|
+
EPSG_4679: {
|
|
1242
|
+
towgs84: "-80.01,253.26,291.19"
|
|
1243
|
+
},
|
|
1244
|
+
EPSG_4750: {
|
|
1245
|
+
towgs84: "-56.263,16.136,-22.856"
|
|
1246
|
+
},
|
|
1247
|
+
EPSG_4644: {
|
|
1248
|
+
towgs84: "-10.18,-350.43,291.37"
|
|
1249
|
+
},
|
|
1250
|
+
EPSG_4695: {
|
|
1251
|
+
towgs84: "-103.746,-9.614,-255.95"
|
|
1252
|
+
},
|
|
1253
|
+
EPSG_4292: {
|
|
1254
|
+
towgs84: "-355,21,72"
|
|
1255
|
+
},
|
|
1256
|
+
EPSG_4302: {
|
|
1257
|
+
towgs84: "-61.702,284.488,472.052"
|
|
1258
|
+
},
|
|
1259
|
+
EPSG_4143: {
|
|
1260
|
+
towgs84: "-124.76,53,466.79"
|
|
1261
|
+
},
|
|
1262
|
+
EPSG_4606: {
|
|
1263
|
+
towgs84: "-153,153,307"
|
|
1264
|
+
},
|
|
1265
|
+
EPSG_4699: {
|
|
1266
|
+
towgs84: "-770.1,158.4,-498.2"
|
|
1267
|
+
},
|
|
1268
|
+
EPSG_4247: {
|
|
1269
|
+
towgs84: "-273.5,110.6,-357.9"
|
|
1270
|
+
},
|
|
1271
|
+
EPSG_4160: {
|
|
1272
|
+
towgs84: "8.88,184.86,106.69"
|
|
1273
|
+
},
|
|
1274
|
+
EPSG_4161: {
|
|
1275
|
+
towgs84: "-233.43,6.65,173.64"
|
|
1276
|
+
},
|
|
1277
|
+
EPSG_9251: {
|
|
1278
|
+
towgs84: "-9.5,122.9,138.2"
|
|
1279
|
+
},
|
|
1280
|
+
EPSG_9253: {
|
|
1281
|
+
towgs84: "-78.1,101.6,133.3"
|
|
1282
|
+
},
|
|
1283
|
+
EPSG_4297: {
|
|
1284
|
+
towgs84: "-198.383,-240.517,-107.909"
|
|
1285
|
+
},
|
|
1286
|
+
EPSG_4269: {
|
|
1287
|
+
towgs84: "0,0,0"
|
|
1288
|
+
},
|
|
1289
|
+
EPSG_4301: {
|
|
1290
|
+
towgs84: "-147,506,687"
|
|
1291
|
+
},
|
|
1292
|
+
EPSG_4618: {
|
|
1293
|
+
towgs84: "-59,-11,-52"
|
|
1294
|
+
},
|
|
1295
|
+
EPSG_4612: {
|
|
1296
|
+
towgs84: "0,0,0"
|
|
1297
|
+
},
|
|
1298
|
+
EPSG_4678: {
|
|
1299
|
+
towgs84: "44.585,-131.212,-39.544"
|
|
1300
|
+
},
|
|
1301
|
+
EPSG_4250: {
|
|
1302
|
+
towgs84: "-130,29,364"
|
|
1303
|
+
},
|
|
1304
|
+
EPSG_4144: {
|
|
1305
|
+
towgs84: "214,804,268"
|
|
1306
|
+
},
|
|
1307
|
+
EPSG_4147: {
|
|
1308
|
+
towgs84: "-17.51,-108.32,-62.39"
|
|
1309
|
+
},
|
|
1310
|
+
EPSG_4259: {
|
|
1311
|
+
towgs84: "-254.1,-5.36,-100.29"
|
|
1312
|
+
},
|
|
1313
|
+
EPSG_4164: {
|
|
1314
|
+
towgs84: "-76,-138,67"
|
|
1315
|
+
},
|
|
1316
|
+
EPSG_4211: {
|
|
1317
|
+
towgs84: "-378.873,676.002,-46.255"
|
|
1318
|
+
},
|
|
1319
|
+
EPSG_4182: {
|
|
1320
|
+
towgs84: "-422.651,-172.995,84.02"
|
|
1321
|
+
},
|
|
1322
|
+
EPSG_4224: {
|
|
1323
|
+
towgs84: "-143.87,243.37,-33.52"
|
|
1324
|
+
},
|
|
1325
|
+
EPSG_4225: {
|
|
1326
|
+
towgs84: "-205.57,168.77,-4.12"
|
|
1327
|
+
},
|
|
1328
|
+
EPSG_5527: {
|
|
1329
|
+
towgs84: "-67.35,3.88,-38.22"
|
|
1330
|
+
},
|
|
1331
|
+
EPSG_4752: {
|
|
1332
|
+
towgs84: "98,390,-22"
|
|
1333
|
+
},
|
|
1334
|
+
EPSG_4310: {
|
|
1335
|
+
towgs84: "-30,190,89"
|
|
1336
|
+
},
|
|
1337
|
+
EPSG_9248: {
|
|
1338
|
+
towgs84: "-192.26,65.72,132.08"
|
|
1339
|
+
},
|
|
1340
|
+
EPSG_4680: {
|
|
1341
|
+
towgs84: "124.5,-63.5,-281"
|
|
1342
|
+
},
|
|
1343
|
+
EPSG_4701: {
|
|
1344
|
+
towgs84: "-79.9,-158,-168.9"
|
|
1345
|
+
},
|
|
1346
|
+
EPSG_4706: {
|
|
1347
|
+
towgs84: "-146.21,112.63,4.05"
|
|
1348
|
+
},
|
|
1349
|
+
EPSG_4805: {
|
|
1350
|
+
towgs84: "682,-203,480"
|
|
1351
|
+
},
|
|
1352
|
+
EPSG_4201: {
|
|
1353
|
+
towgs84: "-165,-11,206"
|
|
1354
|
+
},
|
|
1355
|
+
EPSG_4210: {
|
|
1356
|
+
towgs84: "-157,-2,-299"
|
|
1357
|
+
},
|
|
1358
|
+
EPSG_4183: {
|
|
1359
|
+
towgs84: "-104,167,-38"
|
|
1360
|
+
},
|
|
1361
|
+
EPSG_4139: {
|
|
1362
|
+
towgs84: "11,72,-101"
|
|
1363
|
+
},
|
|
1364
|
+
EPSG_4668: {
|
|
1365
|
+
towgs84: "-86,-98,-119"
|
|
1366
|
+
},
|
|
1367
|
+
EPSG_4717: {
|
|
1368
|
+
towgs84: "-2,151,181"
|
|
1369
|
+
},
|
|
1370
|
+
EPSG_4732: {
|
|
1371
|
+
towgs84: "102,52,-38"
|
|
1372
|
+
},
|
|
1373
|
+
EPSG_4280: {
|
|
1374
|
+
towgs84: "-377,681,-50"
|
|
1375
|
+
},
|
|
1376
|
+
EPSG_4209: {
|
|
1377
|
+
towgs84: "-138,-105,-289"
|
|
1378
|
+
},
|
|
1379
|
+
EPSG_4261: {
|
|
1380
|
+
towgs84: "31,146,47"
|
|
1381
|
+
},
|
|
1382
|
+
EPSG_4658: {
|
|
1383
|
+
towgs84: "-73,46,-86"
|
|
1384
|
+
},
|
|
1385
|
+
EPSG_4721: {
|
|
1386
|
+
towgs84: "265.025,384.929,-194.046"
|
|
1387
|
+
},
|
|
1388
|
+
EPSG_4222: {
|
|
1389
|
+
towgs84: "-136,-108,-292"
|
|
1390
|
+
},
|
|
1391
|
+
EPSG_4601: {
|
|
1392
|
+
towgs84: "-255,-15,71"
|
|
1393
|
+
},
|
|
1394
|
+
EPSG_4602: {
|
|
1395
|
+
towgs84: "725,685,536"
|
|
1396
|
+
},
|
|
1397
|
+
EPSG_4603: {
|
|
1398
|
+
towgs84: "72,213.7,93"
|
|
1399
|
+
},
|
|
1400
|
+
EPSG_4605: {
|
|
1401
|
+
towgs84: "9,183,236"
|
|
1402
|
+
},
|
|
1403
|
+
EPSG_4621: {
|
|
1404
|
+
towgs84: "137,248,-430"
|
|
1405
|
+
},
|
|
1406
|
+
EPSG_4657: {
|
|
1407
|
+
towgs84: "-28,199,5"
|
|
1408
|
+
},
|
|
1409
|
+
EPSG_4316: {
|
|
1410
|
+
towgs84: "103.25,-100.4,-307.19"
|
|
1411
|
+
},
|
|
1412
|
+
EPSG_4642: {
|
|
1413
|
+
towgs84: "-13,-348,292"
|
|
1414
|
+
},
|
|
1415
|
+
EPSG_4698: {
|
|
1416
|
+
towgs84: "145,-187,103"
|
|
1417
|
+
},
|
|
1418
|
+
EPSG_4192: {
|
|
1419
|
+
towgs84: "-206.1,-174.7,-87.7"
|
|
1420
|
+
},
|
|
1421
|
+
EPSG_4311: {
|
|
1422
|
+
towgs84: "-265,120,-358"
|
|
1423
|
+
},
|
|
1424
|
+
EPSG_4135: {
|
|
1425
|
+
towgs84: "58,-283,-182"
|
|
1426
|
+
},
|
|
1427
|
+
ESRI_104138: {
|
|
1428
|
+
towgs84: "198,-226,-347"
|
|
1429
|
+
},
|
|
1430
|
+
EPSG_4245: {
|
|
1431
|
+
towgs84: "-11,851,5"
|
|
1432
|
+
},
|
|
1433
|
+
EPSG_4142: {
|
|
1434
|
+
towgs84: "-125,53,467"
|
|
1435
|
+
},
|
|
1436
|
+
EPSG_4213: {
|
|
1437
|
+
towgs84: "-106,-87,188"
|
|
1438
|
+
},
|
|
1439
|
+
EPSG_4253: {
|
|
1440
|
+
towgs84: "-133,-77,-51"
|
|
1441
|
+
},
|
|
1442
|
+
EPSG_4129: {
|
|
1443
|
+
towgs84: "-132,-110,-335"
|
|
1444
|
+
},
|
|
1445
|
+
EPSG_4713: {
|
|
1446
|
+
towgs84: "-77,-128,142"
|
|
1447
|
+
},
|
|
1448
|
+
EPSG_4239: {
|
|
1449
|
+
towgs84: "217,823,299"
|
|
1450
|
+
},
|
|
1451
|
+
EPSG_4146: {
|
|
1452
|
+
towgs84: "295,736,257"
|
|
1453
|
+
},
|
|
1454
|
+
EPSG_4155: {
|
|
1455
|
+
towgs84: "-83,37,124"
|
|
1456
|
+
},
|
|
1457
|
+
EPSG_4165: {
|
|
1458
|
+
towgs84: "-173,253,27"
|
|
1459
|
+
},
|
|
1460
|
+
EPSG_4672: {
|
|
1461
|
+
towgs84: "175,-38,113"
|
|
1462
|
+
},
|
|
1463
|
+
EPSG_4236: {
|
|
1464
|
+
towgs84: "-637,-549,-203"
|
|
1465
|
+
},
|
|
1466
|
+
EPSG_4251: {
|
|
1467
|
+
towgs84: "-90,40,88"
|
|
1468
|
+
},
|
|
1469
|
+
EPSG_4271: {
|
|
1470
|
+
towgs84: "-2,374,172"
|
|
1471
|
+
},
|
|
1472
|
+
EPSG_4175: {
|
|
1473
|
+
towgs84: "-88,4,101"
|
|
1474
|
+
},
|
|
1475
|
+
EPSG_4716: {
|
|
1476
|
+
towgs84: "298,-304,-375"
|
|
1477
|
+
},
|
|
1478
|
+
EPSG_4315: {
|
|
1479
|
+
towgs84: "-23,259,-9"
|
|
1480
|
+
},
|
|
1481
|
+
EPSG_4744: {
|
|
1482
|
+
towgs84: "-242.2,-144.9,370.3"
|
|
1483
|
+
},
|
|
1484
|
+
EPSG_4244: {
|
|
1485
|
+
towgs84: "-97,787,86"
|
|
1486
|
+
},
|
|
1487
|
+
EPSG_4293: {
|
|
1488
|
+
towgs84: "616,97,-251"
|
|
1489
|
+
},
|
|
1490
|
+
EPSG_4714: {
|
|
1491
|
+
towgs84: "-127,-769,472"
|
|
1492
|
+
},
|
|
1493
|
+
EPSG_4736: {
|
|
1494
|
+
towgs84: "260,12,-147"
|
|
1495
|
+
},
|
|
1496
|
+
EPSG_6883: {
|
|
1497
|
+
towgs84: "-235,-110,393"
|
|
1498
|
+
},
|
|
1499
|
+
EPSG_6894: {
|
|
1500
|
+
towgs84: "-63,176,185"
|
|
1501
|
+
},
|
|
1502
|
+
EPSG_4205: {
|
|
1503
|
+
towgs84: "-43,-163,45"
|
|
1504
|
+
},
|
|
1505
|
+
EPSG_4256: {
|
|
1506
|
+
towgs84: "41,-220,-134"
|
|
1507
|
+
},
|
|
1508
|
+
EPSG_4262: {
|
|
1509
|
+
towgs84: "639,405,60"
|
|
1510
|
+
},
|
|
1511
|
+
EPSG_4604: {
|
|
1512
|
+
towgs84: "174,359,365"
|
|
1513
|
+
},
|
|
1514
|
+
EPSG_4169: {
|
|
1515
|
+
towgs84: "-115,118,426"
|
|
1516
|
+
},
|
|
1517
|
+
EPSG_4620: {
|
|
1518
|
+
towgs84: "-106,-129,165"
|
|
1519
|
+
},
|
|
1520
|
+
EPSG_4184: {
|
|
1521
|
+
towgs84: "-203,141,53"
|
|
1522
|
+
},
|
|
1523
|
+
EPSG_4616: {
|
|
1524
|
+
towgs84: "-289,-124,60"
|
|
1525
|
+
},
|
|
1526
|
+
EPSG_9403: {
|
|
1527
|
+
towgs84: "-307,-92,127"
|
|
1528
|
+
},
|
|
1529
|
+
EPSG_4684: {
|
|
1530
|
+
towgs84: "-133,-321,50"
|
|
1531
|
+
},
|
|
1532
|
+
EPSG_4708: {
|
|
1533
|
+
towgs84: "-491,-22,435"
|
|
1534
|
+
},
|
|
1535
|
+
EPSG_4707: {
|
|
1536
|
+
towgs84: "114,-116,-333"
|
|
1537
|
+
},
|
|
1538
|
+
EPSG_4709: {
|
|
1539
|
+
towgs84: "145,75,-272"
|
|
1540
|
+
},
|
|
1541
|
+
EPSG_4712: {
|
|
1542
|
+
towgs84: "-205,107,53"
|
|
1543
|
+
},
|
|
1544
|
+
EPSG_4711: {
|
|
1545
|
+
towgs84: "124,-234,-25"
|
|
1546
|
+
},
|
|
1547
|
+
EPSG_4718: {
|
|
1548
|
+
towgs84: "230,-199,-752"
|
|
1549
|
+
},
|
|
1550
|
+
EPSG_4719: {
|
|
1551
|
+
towgs84: "211,147,111"
|
|
1552
|
+
},
|
|
1553
|
+
EPSG_4724: {
|
|
1554
|
+
towgs84: "208,-435,-229"
|
|
1555
|
+
},
|
|
1556
|
+
EPSG_4725: {
|
|
1557
|
+
towgs84: "189,-79,-202"
|
|
1558
|
+
},
|
|
1559
|
+
EPSG_4735: {
|
|
1560
|
+
towgs84: "647,1777,-1124"
|
|
1561
|
+
},
|
|
1562
|
+
EPSG_4722: {
|
|
1563
|
+
towgs84: "-794,119,-298"
|
|
1564
|
+
},
|
|
1565
|
+
EPSG_4728: {
|
|
1566
|
+
towgs84: "-307,-92,127"
|
|
1567
|
+
},
|
|
1568
|
+
EPSG_4734: {
|
|
1569
|
+
towgs84: "-632,438,-609"
|
|
1570
|
+
},
|
|
1571
|
+
EPSG_4727: {
|
|
1572
|
+
towgs84: "912,-58,1227"
|
|
1573
|
+
},
|
|
1574
|
+
EPSG_4729: {
|
|
1575
|
+
towgs84: "185,165,42"
|
|
1576
|
+
},
|
|
1577
|
+
EPSG_4730: {
|
|
1578
|
+
towgs84: "170,42,84"
|
|
1579
|
+
},
|
|
1580
|
+
EPSG_4733: {
|
|
1581
|
+
towgs84: "276,-57,149"
|
|
1582
|
+
},
|
|
1583
|
+
ESRI_37218: {
|
|
1584
|
+
towgs84: "230,-199,-752"
|
|
1585
|
+
},
|
|
1586
|
+
ESRI_37240: {
|
|
1587
|
+
towgs84: "-7,215,225"
|
|
1588
|
+
},
|
|
1589
|
+
ESRI_37221: {
|
|
1590
|
+
towgs84: "252,-209,-751"
|
|
1591
|
+
},
|
|
1592
|
+
ESRI_4305: {
|
|
1593
|
+
towgs84: "-123,-206,219"
|
|
1594
|
+
},
|
|
1595
|
+
ESRI_104139: {
|
|
1596
|
+
towgs84: "-73,-247,227"
|
|
1597
|
+
},
|
|
1598
|
+
EPSG_4748: {
|
|
1599
|
+
towgs84: "51,391,-36"
|
|
1600
|
+
},
|
|
1601
|
+
EPSG_4219: {
|
|
1602
|
+
towgs84: "-384,664,-48"
|
|
1603
|
+
},
|
|
1604
|
+
EPSG_4255: {
|
|
1605
|
+
towgs84: "-333,-222,114"
|
|
1606
|
+
},
|
|
1607
|
+
EPSG_4257: {
|
|
1608
|
+
towgs84: "-587.8,519.75,145.76"
|
|
1609
|
+
},
|
|
1610
|
+
EPSG_4646: {
|
|
1611
|
+
towgs84: "-963,510,-359"
|
|
1612
|
+
},
|
|
1613
|
+
EPSG_6881: {
|
|
1614
|
+
towgs84: "-24,-203,268"
|
|
1615
|
+
},
|
|
1616
|
+
EPSG_6882: {
|
|
1617
|
+
towgs84: "-183,-15,273"
|
|
1618
|
+
},
|
|
1619
|
+
EPSG_4715: {
|
|
1620
|
+
towgs84: "-104,-129,239"
|
|
1621
|
+
},
|
|
1622
|
+
IGNF_RGF93GDD: {
|
|
1623
|
+
towgs84: "0,0,0"
|
|
1624
|
+
},
|
|
1625
|
+
IGNF_RGM04GDD: {
|
|
1626
|
+
towgs84: "0,0,0"
|
|
1627
|
+
},
|
|
1628
|
+
IGNF_RGSPM06GDD: {
|
|
1629
|
+
towgs84: "0,0,0"
|
|
1630
|
+
},
|
|
1631
|
+
IGNF_RGTAAF07GDD: {
|
|
1632
|
+
towgs84: "0,0,0"
|
|
1633
|
+
},
|
|
1634
|
+
IGNF_RGFG95GDD: {
|
|
1635
|
+
towgs84: "0,0,0"
|
|
1636
|
+
},
|
|
1637
|
+
IGNF_RGNCG: {
|
|
1638
|
+
towgs84: "0,0,0"
|
|
1639
|
+
},
|
|
1640
|
+
IGNF_RGPFGDD: {
|
|
1641
|
+
towgs84: "0,0,0"
|
|
1642
|
+
},
|
|
1643
|
+
IGNF_ETRS89G: {
|
|
1644
|
+
towgs84: "0,0,0"
|
|
1645
|
+
},
|
|
1646
|
+
IGNF_RGR92GDD: {
|
|
1647
|
+
towgs84: "0,0,0"
|
|
1648
|
+
},
|
|
1649
|
+
EPSG_4173: {
|
|
1650
|
+
towgs84: "0,0,0"
|
|
1651
|
+
},
|
|
1652
|
+
EPSG_4180: {
|
|
1653
|
+
towgs84: "0,0,0"
|
|
1654
|
+
},
|
|
1655
|
+
EPSG_4619: {
|
|
1656
|
+
towgs84: "0,0,0"
|
|
1657
|
+
},
|
|
1658
|
+
EPSG_4667: {
|
|
1659
|
+
towgs84: "0,0,0"
|
|
1660
|
+
},
|
|
1661
|
+
EPSG_4075: {
|
|
1662
|
+
towgs84: "0,0,0"
|
|
1663
|
+
},
|
|
1664
|
+
EPSG_6706: {
|
|
1665
|
+
towgs84: "0,0,0"
|
|
1666
|
+
},
|
|
1667
|
+
EPSG_7798: {
|
|
1668
|
+
towgs84: "0,0,0"
|
|
1669
|
+
},
|
|
1670
|
+
EPSG_4661: {
|
|
1671
|
+
towgs84: "0,0,0"
|
|
1672
|
+
},
|
|
1673
|
+
EPSG_4669: {
|
|
1674
|
+
towgs84: "0,0,0"
|
|
1675
|
+
},
|
|
1676
|
+
EPSG_8685: {
|
|
1677
|
+
towgs84: "0,0,0"
|
|
1678
|
+
},
|
|
1679
|
+
EPSG_4151: {
|
|
1680
|
+
towgs84: "0,0,0"
|
|
1681
|
+
},
|
|
1682
|
+
EPSG_9702: {
|
|
1683
|
+
towgs84: "0,0,0"
|
|
1684
|
+
},
|
|
1685
|
+
EPSG_4758: {
|
|
1686
|
+
towgs84: "0,0,0"
|
|
1687
|
+
},
|
|
1688
|
+
EPSG_4761: {
|
|
1689
|
+
towgs84: "0,0,0"
|
|
1690
|
+
},
|
|
1691
|
+
EPSG_4765: {
|
|
1692
|
+
towgs84: "0,0,0"
|
|
1693
|
+
},
|
|
1694
|
+
EPSG_8997: {
|
|
1695
|
+
towgs84: "0,0,0"
|
|
1696
|
+
},
|
|
1697
|
+
EPSG_4023: {
|
|
1698
|
+
towgs84: "0,0,0"
|
|
1699
|
+
},
|
|
1700
|
+
EPSG_4670: {
|
|
1701
|
+
towgs84: "0,0,0"
|
|
1702
|
+
},
|
|
1703
|
+
EPSG_4694: {
|
|
1704
|
+
towgs84: "0,0,0"
|
|
1705
|
+
},
|
|
1706
|
+
EPSG_4148: {
|
|
1707
|
+
towgs84: "0,0,0"
|
|
1708
|
+
},
|
|
1709
|
+
EPSG_4163: {
|
|
1710
|
+
towgs84: "0,0,0"
|
|
1711
|
+
},
|
|
1712
|
+
EPSG_4167: {
|
|
1713
|
+
towgs84: "0,0,0"
|
|
1714
|
+
},
|
|
1715
|
+
EPSG_4189: {
|
|
1716
|
+
towgs84: "0,0,0"
|
|
1717
|
+
},
|
|
1718
|
+
EPSG_4190: {
|
|
1719
|
+
towgs84: "0,0,0"
|
|
1720
|
+
},
|
|
1721
|
+
EPSG_4176: {
|
|
1722
|
+
towgs84: "0,0,0"
|
|
1723
|
+
},
|
|
1724
|
+
EPSG_4659: {
|
|
1725
|
+
towgs84: "0,0,0"
|
|
1726
|
+
},
|
|
1727
|
+
EPSG_3824: {
|
|
1728
|
+
towgs84: "0,0,0"
|
|
1729
|
+
},
|
|
1730
|
+
EPSG_3889: {
|
|
1731
|
+
towgs84: "0,0,0"
|
|
1732
|
+
},
|
|
1733
|
+
EPSG_4046: {
|
|
1734
|
+
towgs84: "0,0,0"
|
|
1735
|
+
},
|
|
1736
|
+
EPSG_4081: {
|
|
1737
|
+
towgs84: "0,0,0"
|
|
1738
|
+
},
|
|
1739
|
+
EPSG_4558: {
|
|
1740
|
+
towgs84: "0,0,0"
|
|
1741
|
+
},
|
|
1742
|
+
EPSG_4483: {
|
|
1743
|
+
towgs84: "0,0,0"
|
|
1744
|
+
},
|
|
1745
|
+
EPSG_5013: {
|
|
1746
|
+
towgs84: "0,0,0"
|
|
1747
|
+
},
|
|
1748
|
+
EPSG_5264: {
|
|
1749
|
+
towgs84: "0,0,0"
|
|
1750
|
+
},
|
|
1751
|
+
EPSG_5324: {
|
|
1752
|
+
towgs84: "0,0,0"
|
|
1753
|
+
},
|
|
1754
|
+
EPSG_5354: {
|
|
1755
|
+
towgs84: "0,0,0"
|
|
1756
|
+
},
|
|
1757
|
+
EPSG_5371: {
|
|
1758
|
+
towgs84: "0,0,0"
|
|
1759
|
+
},
|
|
1760
|
+
EPSG_5373: {
|
|
1761
|
+
towgs84: "0,0,0"
|
|
1762
|
+
},
|
|
1763
|
+
EPSG_5381: {
|
|
1764
|
+
towgs84: "0,0,0"
|
|
1765
|
+
},
|
|
1766
|
+
EPSG_5393: {
|
|
1767
|
+
towgs84: "0,0,0"
|
|
1768
|
+
},
|
|
1769
|
+
EPSG_5489: {
|
|
1770
|
+
towgs84: "0,0,0"
|
|
1771
|
+
},
|
|
1772
|
+
EPSG_5593: {
|
|
1773
|
+
towgs84: "0,0,0"
|
|
1774
|
+
},
|
|
1775
|
+
EPSG_6135: {
|
|
1776
|
+
towgs84: "0,0,0"
|
|
1777
|
+
},
|
|
1778
|
+
EPSG_6365: {
|
|
1779
|
+
towgs84: "0,0,0"
|
|
1780
|
+
},
|
|
1781
|
+
EPSG_5246: {
|
|
1782
|
+
towgs84: "0,0,0"
|
|
1783
|
+
},
|
|
1784
|
+
EPSG_7886: {
|
|
1785
|
+
towgs84: "0,0,0"
|
|
1786
|
+
},
|
|
1787
|
+
EPSG_8431: {
|
|
1788
|
+
towgs84: "0,0,0"
|
|
1789
|
+
},
|
|
1790
|
+
EPSG_8427: {
|
|
1791
|
+
towgs84: "0,0,0"
|
|
1792
|
+
},
|
|
1793
|
+
EPSG_8699: {
|
|
1794
|
+
towgs84: "0,0,0"
|
|
1795
|
+
},
|
|
1796
|
+
EPSG_8818: {
|
|
1797
|
+
towgs84: "0,0,0"
|
|
1798
|
+
},
|
|
1799
|
+
EPSG_4757: {
|
|
1800
|
+
towgs84: "0,0,0"
|
|
1801
|
+
},
|
|
1802
|
+
EPSG_9140: {
|
|
1803
|
+
towgs84: "0,0,0"
|
|
1804
|
+
},
|
|
1805
|
+
EPSG_8086: {
|
|
1806
|
+
towgs84: "0,0,0"
|
|
1807
|
+
},
|
|
1808
|
+
EPSG_4686: {
|
|
1809
|
+
towgs84: "0,0,0"
|
|
1810
|
+
},
|
|
1811
|
+
EPSG_4737: {
|
|
1812
|
+
towgs84: "0,0,0"
|
|
1813
|
+
},
|
|
1814
|
+
EPSG_4702: {
|
|
1815
|
+
towgs84: "0,0,0"
|
|
1816
|
+
},
|
|
1817
|
+
EPSG_4747: {
|
|
1818
|
+
towgs84: "0,0,0"
|
|
1819
|
+
},
|
|
1820
|
+
EPSG_4749: {
|
|
1821
|
+
towgs84: "0,0,0"
|
|
1822
|
+
},
|
|
1823
|
+
EPSG_4674: {
|
|
1824
|
+
towgs84: "0,0,0"
|
|
1825
|
+
},
|
|
1826
|
+
EPSG_4755: {
|
|
1827
|
+
towgs84: "0,0,0"
|
|
1828
|
+
},
|
|
1829
|
+
EPSG_4759: {
|
|
1830
|
+
towgs84: "0,0,0"
|
|
1831
|
+
},
|
|
1832
|
+
EPSG_4762: {
|
|
1833
|
+
towgs84: "0,0,0"
|
|
1834
|
+
},
|
|
1835
|
+
EPSG_4763: {
|
|
1836
|
+
towgs84: "0,0,0"
|
|
1837
|
+
},
|
|
1838
|
+
EPSG_4764: {
|
|
1839
|
+
towgs84: "0,0,0"
|
|
1840
|
+
},
|
|
1841
|
+
EPSG_4166: {
|
|
1842
|
+
towgs84: "0,0,0"
|
|
1843
|
+
},
|
|
1844
|
+
EPSG_4170: {
|
|
1845
|
+
towgs84: "0,0,0"
|
|
1846
|
+
},
|
|
1847
|
+
EPSG_5546: {
|
|
1848
|
+
towgs84: "0,0,0"
|
|
1849
|
+
},
|
|
1850
|
+
EPSG_7844: {
|
|
1851
|
+
towgs84: "0,0,0"
|
|
1852
|
+
},
|
|
1853
|
+
EPSG_4818: {
|
|
1854
|
+
towgs84: "589,76,480"
|
|
1855
|
+
},
|
|
1856
|
+
EPSG_10328: {
|
|
1857
|
+
towgs84: "0,0,0"
|
|
1858
|
+
},
|
|
1859
|
+
EPSG_9782: {
|
|
1860
|
+
towgs84: "0,0,0"
|
|
1861
|
+
},
|
|
1862
|
+
EPSG_9777: {
|
|
1863
|
+
towgs84: "0,0,0"
|
|
1864
|
+
},
|
|
1865
|
+
EPSG_10690: {
|
|
1866
|
+
towgs84: "0,0,0"
|
|
1867
|
+
},
|
|
1868
|
+
EPSG_10639: {
|
|
1869
|
+
towgs84: "0,0,0"
|
|
1870
|
+
},
|
|
1871
|
+
EPSG_10739: {
|
|
1872
|
+
towgs84: "0,0,0"
|
|
1873
|
+
},
|
|
1874
|
+
EPSG_7686: {
|
|
1875
|
+
towgs84: "0,0,0"
|
|
1876
|
+
},
|
|
1877
|
+
EPSG_8900: {
|
|
1878
|
+
towgs84: "0,0,0"
|
|
1879
|
+
},
|
|
1880
|
+
EPSG_5886: {
|
|
1881
|
+
towgs84: "0,0,0"
|
|
1882
|
+
},
|
|
1883
|
+
EPSG_7683: {
|
|
1884
|
+
towgs84: "0,0,0"
|
|
1885
|
+
},
|
|
1886
|
+
EPSG_6668: {
|
|
1887
|
+
towgs84: "0,0,0"
|
|
1888
|
+
},
|
|
1889
|
+
EPSG_20046: {
|
|
1890
|
+
towgs84: "0,0,0"
|
|
1891
|
+
},
|
|
1892
|
+
EPSG_10299: {
|
|
1893
|
+
towgs84: "0,0,0"
|
|
1894
|
+
},
|
|
1895
|
+
EPSG_10310: {
|
|
1896
|
+
towgs84: "0,0,0"
|
|
1897
|
+
},
|
|
1898
|
+
EPSG_10475: {
|
|
1899
|
+
towgs84: "0,0,0"
|
|
1900
|
+
},
|
|
1901
|
+
EPSG_4742: {
|
|
1902
|
+
towgs84: "0,0,0"
|
|
1903
|
+
},
|
|
1904
|
+
EPSG_10671: {
|
|
1905
|
+
towgs84: "0,0,0"
|
|
1906
|
+
},
|
|
1907
|
+
EPSG_10762: {
|
|
1908
|
+
towgs84: "0,0,0"
|
|
1909
|
+
},
|
|
1910
|
+
EPSG_10725: {
|
|
1911
|
+
towgs84: "0,0,0"
|
|
1912
|
+
},
|
|
1913
|
+
EPSG_10791: {
|
|
1914
|
+
towgs84: "0,0,0"
|
|
1915
|
+
},
|
|
1916
|
+
EPSG_10800: {
|
|
1917
|
+
towgs84: "0,0,0"
|
|
1918
|
+
},
|
|
1919
|
+
EPSG_10305: {
|
|
1920
|
+
towgs84: "0,0,0"
|
|
1921
|
+
},
|
|
1922
|
+
EPSG_10941: {
|
|
1923
|
+
towgs84: "0,0,0"
|
|
1924
|
+
},
|
|
1925
|
+
EPSG_10968: {
|
|
1926
|
+
towgs84: "0,0,0"
|
|
1927
|
+
},
|
|
1928
|
+
EPSG_10875: {
|
|
1929
|
+
towgs84: "0,0,0"
|
|
1930
|
+
},
|
|
1931
|
+
EPSG_6318: {
|
|
1932
|
+
towgs84: "0,0,0"
|
|
1933
|
+
},
|
|
1934
|
+
EPSG_10910: {
|
|
1935
|
+
towgs84: "0,0,0"
|
|
1936
|
+
}
|
|
1937
|
+
};
|
|
1938
|
+
for (var li in Nt) {
|
|
1939
|
+
var Lt = Nt[li];
|
|
1940
|
+
Lt.datumName && (Nt[Lt.datumName] = Lt);
|
|
1941
|
+
}
|
|
1942
|
+
function fi(t, s, i, h, a, e, n) {
|
|
1943
|
+
var r = {};
|
|
1944
|
+
return r.datum_type = Ft, s && (r.datum_type = Os, r.datum_params = s.map(parseFloat), (r.datum_params[0] !== 0 || r.datum_params[1] !== 0 || r.datum_params[2] !== 0) && (r.datum_type = Z), r.datum_params.length > 3 && (r.datum_params[3] !== 0 || r.datum_params[4] !== 0 || r.datum_params[5] !== 0 || r.datum_params[6] !== 0) && (r.datum_type = Y, r.datum_params[3] *= Mt, r.datum_params[4] *= Mt, r.datum_params[5] *= Mt, r.datum_params[6] = r.datum_params[6] / 1e6 + 1)), n && (r.datum_type = et, r.grids = n), r.a = i, r.b = h, r.es = a, r.ep2 = e, r;
|
|
1945
|
+
}
|
|
1946
|
+
var pt = {};
|
|
1947
|
+
function Mi(t, s, i) {
|
|
1948
|
+
return s instanceof ArrayBuffer ? ui(t, s, i) : { ready: _i(t, s) };
|
|
1949
|
+
}
|
|
1950
|
+
function ui(t, s, i) {
|
|
1951
|
+
var h = !0;
|
|
1952
|
+
i !== void 0 && i.includeErrorFields === !1 && (h = !1);
|
|
1953
|
+
var a = new DataView(s), e = gi(a), n = yi(a, e), r = mi(a, n, e, h), o = { header: n, subgrids: r };
|
|
1954
|
+
return pt[t] = o, o;
|
|
1955
|
+
}
|
|
1956
|
+
async function _i(t, s) {
|
|
1957
|
+
for (var i = [], h = await s.getImageCount(), a = h - 1; a >= 0; a--) {
|
|
1958
|
+
var e = await s.getImage(a), n = await e.readRasters(), r = n, o = [e.getWidth(), e.getHeight()], l = e.getBoundingBox().map(ns), M = typeof e.fileDirectory.getValue == "function" ? e.fileDirectory.getValue("ModelPixelScale") : (
|
|
1959
|
+
/** @type {any} */
|
|
1960
|
+
e.fileDirectory.ModelPixelScale
|
|
1961
|
+
), f = [M[0], M[1]].map(ns), u = l[0] + (o[0] - 1) * f[0], c = l[3] - (o[1] - 1) * f[1], v = r[0], g = r[1], w = [];
|
|
1962
|
+
for (let S = o[1] - 1; S >= 0; S--)
|
|
1963
|
+
for (let P = o[0] - 1; P >= 0; P--) {
|
|
1964
|
+
var d = S * o[0] + P;
|
|
1965
|
+
w.push([-p(g[d]), p(v[d])]);
|
|
1966
|
+
}
|
|
1967
|
+
i.push({
|
|
1968
|
+
del: f,
|
|
1969
|
+
lim: o,
|
|
1970
|
+
ll: [-u, c],
|
|
1971
|
+
cvs: w
|
|
1972
|
+
});
|
|
1973
|
+
}
|
|
1974
|
+
var E = {
|
|
1975
|
+
header: {
|
|
1976
|
+
nSubgrids: h
|
|
1977
|
+
},
|
|
1978
|
+
subgrids: i
|
|
1979
|
+
};
|
|
1980
|
+
return pt[t] = E, E;
|
|
1981
|
+
}
|
|
1982
|
+
function ci(t) {
|
|
1983
|
+
if (t === void 0)
|
|
1984
|
+
return null;
|
|
1985
|
+
var s = t.split(",");
|
|
1986
|
+
return s.map(vi);
|
|
1987
|
+
}
|
|
1988
|
+
function vi(t) {
|
|
1989
|
+
if (t.length === 0)
|
|
1990
|
+
return null;
|
|
1991
|
+
var s = t[0] === "@";
|
|
1992
|
+
return s && (t = t.slice(1)), t === "null" ? { name: "null", mandatory: !s, grid: null, isNull: !0 } : {
|
|
1993
|
+
name: t,
|
|
1994
|
+
mandatory: !s,
|
|
1995
|
+
grid: pt[t] || null,
|
|
1996
|
+
isNull: !1
|
|
1997
|
+
};
|
|
1998
|
+
}
|
|
1999
|
+
function ns(t) {
|
|
2000
|
+
return t * Math.PI / 180;
|
|
2001
|
+
}
|
|
2002
|
+
function p(t) {
|
|
2003
|
+
return t / 3600 * Math.PI / 180;
|
|
2004
|
+
}
|
|
2005
|
+
function gi(t) {
|
|
2006
|
+
var s = t.getInt32(8, !1);
|
|
2007
|
+
return s === 11 ? !1 : (s = t.getInt32(8, !0), s !== 11 && console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"), !0);
|
|
2008
|
+
}
|
|
2009
|
+
function yi(t, s) {
|
|
2010
|
+
return {
|
|
2011
|
+
nFields: t.getInt32(8, s),
|
|
2012
|
+
nSubgridFields: t.getInt32(24, s),
|
|
2013
|
+
nSubgrids: t.getInt32(40, s),
|
|
2014
|
+
shiftType: zt(t, 56, 64).trim(),
|
|
2015
|
+
fromSemiMajorAxis: t.getFloat64(120, s),
|
|
2016
|
+
fromSemiMinorAxis: t.getFloat64(136, s),
|
|
2017
|
+
toSemiMajorAxis: t.getFloat64(152, s),
|
|
2018
|
+
toSemiMinorAxis: t.getFloat64(168, s)
|
|
2019
|
+
};
|
|
2020
|
+
}
|
|
2021
|
+
function zt(t, s, i) {
|
|
2022
|
+
return String.fromCharCode.apply(null, new Uint8Array(t.buffer.slice(s, i)));
|
|
2023
|
+
}
|
|
2024
|
+
function mi(t, s, i, h) {
|
|
2025
|
+
for (var a = 176, e = [], n = 0; n < s.nSubgrids; n++) {
|
|
2026
|
+
var r = di(t, a, i), o = Si(t, a, r, i, h), l = Math.round(
|
|
2027
|
+
1 + (r.upperLongitude - r.lowerLongitude) / r.longitudeInterval
|
|
2028
|
+
), M = Math.round(
|
|
2029
|
+
1 + (r.upperLatitude - r.lowerLatitude) / r.latitudeInterval
|
|
2030
|
+
);
|
|
2031
|
+
e.push({
|
|
2032
|
+
ll: [p(r.lowerLongitude), p(r.lowerLatitude)],
|
|
2033
|
+
del: [p(r.longitudeInterval), p(r.latitudeInterval)],
|
|
2034
|
+
lim: [l, M],
|
|
2035
|
+
count: r.gridNodeCount,
|
|
2036
|
+
cvs: wi(o)
|
|
2037
|
+
});
|
|
2038
|
+
var f = 16;
|
|
2039
|
+
h === !1 && (f = 8), a += 176 + r.gridNodeCount * f;
|
|
2040
|
+
}
|
|
2041
|
+
return e;
|
|
2042
|
+
}
|
|
2043
|
+
function wi(t) {
|
|
2044
|
+
return t.map(function(s) {
|
|
2045
|
+
return [p(s.longitudeShift), p(s.latitudeShift)];
|
|
2046
|
+
});
|
|
2047
|
+
}
|
|
2048
|
+
function di(t, s, i) {
|
|
2049
|
+
return {
|
|
2050
|
+
name: zt(t, s + 8, s + 16).trim(),
|
|
2051
|
+
parent: zt(t, s + 24, s + 24 + 8).trim(),
|
|
2052
|
+
lowerLatitude: t.getFloat64(s + 72, i),
|
|
2053
|
+
upperLatitude: t.getFloat64(s + 88, i),
|
|
2054
|
+
lowerLongitude: t.getFloat64(s + 104, i),
|
|
2055
|
+
upperLongitude: t.getFloat64(s + 120, i),
|
|
2056
|
+
latitudeInterval: t.getFloat64(s + 136, i),
|
|
2057
|
+
longitudeInterval: t.getFloat64(s + 152, i),
|
|
2058
|
+
gridNodeCount: t.getInt32(s + 168, i)
|
|
2059
|
+
};
|
|
2060
|
+
}
|
|
2061
|
+
function Si(t, s, i, h, a) {
|
|
2062
|
+
var e = s + 176, n = 16;
|
|
2063
|
+
a === !1 && (n = 8);
|
|
2064
|
+
for (var r = [], o = 0; o < i.gridNodeCount; o++) {
|
|
2065
|
+
var l = {
|
|
2066
|
+
latitudeShift: t.getFloat32(e + o * n, h),
|
|
2067
|
+
longitudeShift: t.getFloat32(e + o * n + 4, h)
|
|
2068
|
+
};
|
|
2069
|
+
a !== !1 && (l.latitudeAccuracy = t.getFloat32(e + o * n + 8, h), l.longitudeAccuracy = t.getFloat32(e + o * n + 12, h)), r.push(l);
|
|
2070
|
+
}
|
|
2071
|
+
return r;
|
|
2072
|
+
}
|
|
2073
|
+
function z(t, s) {
|
|
2074
|
+
if (!(this instanceof z))
|
|
2075
|
+
return new z(t);
|
|
2076
|
+
this.forward = null, this.inverse = null, this.init = null, this.name, this.axis, this.names = null, this.title, s = s || function(l) {
|
|
2077
|
+
if (l)
|
|
2078
|
+
throw l;
|
|
2079
|
+
};
|
|
2080
|
+
var i = Hs(t);
|
|
2081
|
+
if (typeof i != "object") {
|
|
2082
|
+
s("Could not parse to valid json: " + t);
|
|
2083
|
+
return;
|
|
2084
|
+
}
|
|
2085
|
+
var h = z.projections.get(i.projName);
|
|
2086
|
+
if (!h) {
|
|
2087
|
+
s("Could not get projection name from: " + t);
|
|
2088
|
+
return;
|
|
2089
|
+
}
|
|
2090
|
+
if (i.datumCode && i.datumCode !== "none") {
|
|
2091
|
+
var a = X(Nt, i.datumCode);
|
|
2092
|
+
a && (i.datum_params = i.datum_params || (a.towgs84 ? a.towgs84.split(",") : null), i.ellps = a.ellipse, i.datumName = a.datumName ? a.datumName : i.datumCode);
|
|
2093
|
+
}
|
|
2094
|
+
i.k0 = i.k0 || 1, i.axis = i.axis || "enu", i.ellps = i.ellps || "wgs84", i.lat1 = i.lat1 || i.lat0;
|
|
2095
|
+
var e = oi(i.a, i.b, i.rf, i.ellps, i.sphere), n = ni(e.a, e.b, e.rf, i.R_A), r = ci(i.nadgrids), o = i.datum || fi(
|
|
2096
|
+
i.datumCode,
|
|
2097
|
+
i.datum_params,
|
|
2098
|
+
e.a,
|
|
2099
|
+
e.b,
|
|
2100
|
+
n.es,
|
|
2101
|
+
n.ep2,
|
|
2102
|
+
r
|
|
2103
|
+
);
|
|
2104
|
+
es(this, i), es(this, h), this.a = e.a, this.b = e.b, this.rf = e.rf, this.sphere = e.sphere, this.es = n.es, this.e = n.e, this.ep2 = n.ep2, this.datum = o, "init" in this && typeof this.init == "function" && this.init(), s(null, this);
|
|
2105
|
+
}
|
|
2106
|
+
z.projections = ei;
|
|
2107
|
+
z.projections.start();
|
|
2108
|
+
function Ei(t, s) {
|
|
2109
|
+
return t.datum_type !== s.datum_type || t.a !== s.a || Math.abs(t.es - s.es) > 5e-11 ? !1 : t.datum_type === Z ? t.datum_params[0] === s.datum_params[0] && t.datum_params[1] === s.datum_params[1] && t.datum_params[2] === s.datum_params[2] : t.datum_type === Y ? t.datum_params[0] === s.datum_params[0] && t.datum_params[1] === s.datum_params[1] && t.datum_params[2] === s.datum_params[2] && t.datum_params[3] === s.datum_params[3] && t.datum_params[4] === s.datum_params[4] && t.datum_params[5] === s.datum_params[5] && t.datum_params[6] === s.datum_params[6] : !0;
|
|
2110
|
+
}
|
|
2111
|
+
function Ss(t, s, i) {
|
|
2112
|
+
var h = t.x, a = t.y, e = t.z ? t.z : 0, n, r, o, l;
|
|
2113
|
+
if (a < -_ && a > -1.001 * _)
|
|
2114
|
+
a = -_;
|
|
2115
|
+
else if (a > _ && a < 1.001 * _)
|
|
2116
|
+
a = _;
|
|
2117
|
+
else {
|
|
2118
|
+
if (a < -_)
|
|
2119
|
+
return { x: -1 / 0, y: -1 / 0, z: t.z };
|
|
2120
|
+
if (a > _)
|
|
2121
|
+
return { x: 1 / 0, y: 1 / 0, z: t.z };
|
|
2122
|
+
}
|
|
2123
|
+
return h > Math.PI && (h -= 2 * Math.PI), r = Math.sin(a), l = Math.cos(a), o = r * r, n = i / Math.sqrt(1 - s * o), {
|
|
2124
|
+
x: (n + e) * l * Math.cos(h),
|
|
2125
|
+
y: (n + e) * l * Math.sin(h),
|
|
2126
|
+
z: (n * (1 - s) + e) * r
|
|
2127
|
+
};
|
|
2128
|
+
}
|
|
2129
|
+
function Es(t, s, i, h) {
|
|
2130
|
+
var a = 1e-12, e = a * a, n = 30, r, o, l, M, f, u, c, v, g, w, d, E, S, P = t.x, b = t.y, N = t.z ? t.z : 0, q, F, R;
|
|
2131
|
+
if (r = Math.sqrt(P * P + b * b), o = Math.sqrt(P * P + b * b + N * N), r / i < a) {
|
|
2132
|
+
if (q = 0, o / i < a)
|
|
2133
|
+
return F = _, R = -h, {
|
|
2134
|
+
x: t.x,
|
|
2135
|
+
y: t.y,
|
|
2136
|
+
z: t.z
|
|
2137
|
+
};
|
|
2138
|
+
} else
|
|
2139
|
+
q = Math.atan2(b, P);
|
|
2140
|
+
l = N / o, M = r / o, f = 1 / Math.sqrt(1 - s * (2 - s) * M * M), v = M * (1 - s) * f, g = l * f, S = 0;
|
|
2141
|
+
do
|
|
2142
|
+
S++, c = i / Math.sqrt(1 - s * g * g), R = r * v + N * g - c * (1 - s * g * g), u = s * c / (c + R), f = 1 / Math.sqrt(1 - u * (2 - u) * M * M), w = M * (1 - u) * f, d = l * f, E = d * v - w * g, v = w, g = d;
|
|
2143
|
+
while (E * E > e && S < n);
|
|
2144
|
+
return F = Math.atan(d / Math.abs(w)), {
|
|
2145
|
+
x: q,
|
|
2146
|
+
y: F,
|
|
2147
|
+
z: R
|
|
2148
|
+
};
|
|
2149
|
+
}
|
|
2150
|
+
function Pi(t, s, i) {
|
|
2151
|
+
if (s === Z)
|
|
2152
|
+
return {
|
|
2153
|
+
x: t.x + i[0],
|
|
2154
|
+
y: t.y + i[1],
|
|
2155
|
+
z: t.z + i[2]
|
|
2156
|
+
};
|
|
2157
|
+
if (s === Y) {
|
|
2158
|
+
var h = i[0], a = i[1], e = i[2], n = i[3], r = i[4], o = i[5], l = i[6];
|
|
2159
|
+
return {
|
|
2160
|
+
x: l * (t.x - o * t.y + r * t.z) + h,
|
|
2161
|
+
y: l * (o * t.x + t.y - n * t.z) + a,
|
|
2162
|
+
z: l * (-r * t.x + n * t.y + t.z) + e
|
|
2163
|
+
};
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
function xi(t, s, i) {
|
|
2167
|
+
if (s === Z)
|
|
2168
|
+
return {
|
|
2169
|
+
x: t.x - i[0],
|
|
2170
|
+
y: t.y - i[1],
|
|
2171
|
+
z: t.z - i[2]
|
|
2172
|
+
};
|
|
2173
|
+
if (s === Y) {
|
|
2174
|
+
var h = i[0], a = i[1], e = i[2], n = i[3], r = i[4], o = i[5], l = i[6], M = (t.x - h) / l, f = (t.y - a) / l, u = (t.z - e) / l;
|
|
2175
|
+
return {
|
|
2176
|
+
x: M + o * f - r * u,
|
|
2177
|
+
y: -o * M + f + n * u,
|
|
2178
|
+
z: r * M - n * f + u
|
|
2179
|
+
};
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
function xt(t) {
|
|
2183
|
+
return t === Z || t === Y;
|
|
2184
|
+
}
|
|
2185
|
+
function Gi(t, s, i) {
|
|
2186
|
+
if (Ei(t, s) || t.datum_type === Ft || s.datum_type === Ft)
|
|
2187
|
+
return i;
|
|
2188
|
+
var h = t.a, a = t.es;
|
|
2189
|
+
if (t.datum_type === et) {
|
|
2190
|
+
var e = os(t, !1, i);
|
|
2191
|
+
if (e !== 0)
|
|
2192
|
+
return;
|
|
2193
|
+
h = ss, a = is;
|
|
2194
|
+
}
|
|
2195
|
+
var n = s.a, r = s.b, o = s.es;
|
|
2196
|
+
if (s.datum_type === et && (n = ss, r = Ls, o = is), a === o && h === n && !xt(t.datum_type) && !xt(s.datum_type))
|
|
2197
|
+
return i;
|
|
2198
|
+
if (i = Ss(i, a, h), xt(t.datum_type) && (i = Pi(i, t.datum_type, t.datum_params)), xt(s.datum_type) && (i = xi(i, s.datum_type, s.datum_params)), i = Es(i, o, n, r), s.datum_type === et) {
|
|
2199
|
+
var l = os(s, !0, i);
|
|
2200
|
+
if (l !== 0)
|
|
2201
|
+
return;
|
|
2202
|
+
}
|
|
2203
|
+
return i;
|
|
2204
|
+
}
|
|
2205
|
+
function os(t, s, i) {
|
|
2206
|
+
if (t.grids === null || t.grids.length === 0)
|
|
2207
|
+
return console.log("Grid shift grids not found"), -1;
|
|
2208
|
+
var h = { x: -i.x, y: i.y }, a = { x: Number.NaN, y: Number.NaN }, e = [];
|
|
2209
|
+
t:
|
|
2210
|
+
for (var n = 0; n < t.grids.length; n++) {
|
|
2211
|
+
var r = t.grids[n];
|
|
2212
|
+
if (e.push(r.name), r.isNull) {
|
|
2213
|
+
a = h;
|
|
2214
|
+
break;
|
|
2215
|
+
}
|
|
2216
|
+
if (r.grid === null) {
|
|
2217
|
+
if (r.mandatory)
|
|
2218
|
+
return console.log("Unable to find mandatory grid '" + r.name + "'"), -1;
|
|
2219
|
+
continue;
|
|
2220
|
+
}
|
|
2221
|
+
for (var o = r.grid.subgrids, l = 0, M = o.length; l < M; l++) {
|
|
2222
|
+
var f = o[l], u = (Math.abs(f.del[1]) + Math.abs(f.del[0])) / 1e4, c = f.ll[0] - u, v = f.ll[1] - u, g = f.ll[0] + (f.lim[0] - 1) * f.del[0] + u, w = f.ll[1] + (f.lim[1] - 1) * f.del[1] + u;
|
|
2223
|
+
if (!(v > h.y || c > h.x || w < h.y || g < h.x) && (a = bi(h, s, f), !isNaN(a.x)))
|
|
2224
|
+
break t;
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
return isNaN(a.x) ? (console.log("Failed to find a grid shift table for location '" + -h.x * L + " " + h.y * L + " tried: '" + e + "'"), -1) : (i.x = -a.x, i.y = a.y, 0);
|
|
2228
|
+
}
|
|
2229
|
+
function bi(t, s, i) {
|
|
2230
|
+
var h = { x: Number.NaN, y: Number.NaN };
|
|
2231
|
+
if (isNaN(t.x))
|
|
2232
|
+
return h;
|
|
2233
|
+
var a = { x: t.x, y: t.y };
|
|
2234
|
+
a.x -= i.ll[0], a.y -= i.ll[1], a.x = m(a.x - Math.PI) + Math.PI;
|
|
2235
|
+
var e = ls(a, i);
|
|
2236
|
+
if (s) {
|
|
2237
|
+
if (isNaN(e.x))
|
|
2238
|
+
return h;
|
|
2239
|
+
e.x = a.x - e.x, e.y = a.y - e.y;
|
|
2240
|
+
var n = 9, r = 1e-12, o, l;
|
|
2241
|
+
do {
|
|
2242
|
+
if (l = ls(e, i), isNaN(l.x)) {
|
|
2243
|
+
console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");
|
|
2244
|
+
break;
|
|
2245
|
+
}
|
|
2246
|
+
o = { x: a.x - (l.x + e.x), y: a.y - (l.y + e.y) }, e.x += o.x, e.y += o.y;
|
|
2247
|
+
} while (n-- && Math.abs(o.x) > r && Math.abs(o.y) > r);
|
|
2248
|
+
if (n < 0)
|
|
2249
|
+
return console.log("Inverse grid shift iterator failed to converge."), h;
|
|
2250
|
+
h.x = m(e.x + i.ll[0]), h.y = e.y + i.ll[1];
|
|
2251
|
+
} else
|
|
2252
|
+
isNaN(e.x) || (h.x = t.x + e.x, h.y = t.y + e.y);
|
|
2253
|
+
return h;
|
|
2254
|
+
}
|
|
2255
|
+
function ls(t, s) {
|
|
2256
|
+
var i = { x: t.x / s.del[0], y: t.y / s.del[1] }, h = { x: Math.floor(i.x), y: Math.floor(i.y) }, a = { x: i.x - 1 * h.x, y: i.y - 1 * h.y }, e = { x: Number.NaN, y: Number.NaN }, n;
|
|
2257
|
+
if (h.x < 0 || h.x >= s.lim[0] || h.y < 0 || h.y >= s.lim[1])
|
|
2258
|
+
return e;
|
|
2259
|
+
n = h.y * s.lim[0] + h.x;
|
|
2260
|
+
var r = { x: s.cvs[n][0], y: s.cvs[n][1] };
|
|
2261
|
+
n++;
|
|
2262
|
+
var o = { x: s.cvs[n][0], y: s.cvs[n][1] };
|
|
2263
|
+
n += s.lim[0];
|
|
2264
|
+
var l = { x: s.cvs[n][0], y: s.cvs[n][1] };
|
|
2265
|
+
n--;
|
|
2266
|
+
var M = { x: s.cvs[n][0], y: s.cvs[n][1] }, f = a.x * a.y, u = a.x * (1 - a.y), c = (1 - a.x) * (1 - a.y), v = (1 - a.x) * a.y;
|
|
2267
|
+
return e.x = c * r.x + u * o.x + v * M.x + f * l.x, e.y = c * r.y + u * o.y + v * M.y + f * l.y, e;
|
|
2268
|
+
}
|
|
2269
|
+
var J = ["x", "y", "z"];
|
|
2270
|
+
function Ni(t, s) {
|
|
2271
|
+
const i = {};
|
|
2272
|
+
for (let h = 0, a = t.axis.length; h < a; h++) {
|
|
2273
|
+
if (h === 2 && s.z === void 0)
|
|
2274
|
+
continue;
|
|
2275
|
+
let e = s[J[h]];
|
|
2276
|
+
switch (t.axis[h]) {
|
|
2277
|
+
case "e":
|
|
2278
|
+
i.x = e;
|
|
2279
|
+
break;
|
|
2280
|
+
case "w":
|
|
2281
|
+
i.x = -e;
|
|
2282
|
+
break;
|
|
2283
|
+
case "n":
|
|
2284
|
+
i.y = e;
|
|
2285
|
+
break;
|
|
2286
|
+
case "s":
|
|
2287
|
+
i.y = -e;
|
|
2288
|
+
break;
|
|
2289
|
+
case "u":
|
|
2290
|
+
i.z = e;
|
|
2291
|
+
break;
|
|
2292
|
+
case "d":
|
|
2293
|
+
i.z = -e;
|
|
2294
|
+
break;
|
|
2295
|
+
default:
|
|
2296
|
+
return null;
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
return i;
|
|
2300
|
+
}
|
|
2301
|
+
function Ii(t, s) {
|
|
2302
|
+
const i = (
|
|
2303
|
+
/** @type {import("./core").InterfaceCoordinates} */
|
|
2304
|
+
{}
|
|
2305
|
+
);
|
|
2306
|
+
for (let h = 0, a = t.axis.length; h < a; h++)
|
|
2307
|
+
if (!(h === 2 && s.z === void 0))
|
|
2308
|
+
switch (t.axis[h]) {
|
|
2309
|
+
case "e":
|
|
2310
|
+
i[J[h]] = s.x;
|
|
2311
|
+
break;
|
|
2312
|
+
case "w":
|
|
2313
|
+
i[J[h]] = -s.x;
|
|
2314
|
+
break;
|
|
2315
|
+
case "n":
|
|
2316
|
+
i[J[h]] = s.y;
|
|
2317
|
+
break;
|
|
2318
|
+
case "s":
|
|
2319
|
+
i[J[h]] = -s.y;
|
|
2320
|
+
break;
|
|
2321
|
+
case "u":
|
|
2322
|
+
i[J[h]] = s.z;
|
|
2323
|
+
break;
|
|
2324
|
+
case "d":
|
|
2325
|
+
i[J[h]] = -s.z;
|
|
2326
|
+
break;
|
|
2327
|
+
default:
|
|
2328
|
+
return null;
|
|
2329
|
+
}
|
|
2330
|
+
return i;
|
|
2331
|
+
}
|
|
2332
|
+
function Xt(t) {
|
|
2333
|
+
var s = {
|
|
2334
|
+
x: t[0],
|
|
2335
|
+
y: t[1]
|
|
2336
|
+
};
|
|
2337
|
+
return t.length > 2 && (s.z = t[2]), t.length > 3 && (s.m = t[3]), s;
|
|
2338
|
+
}
|
|
2339
|
+
function Ai(t) {
|
|
2340
|
+
fs(t.x), fs(t.y);
|
|
2341
|
+
}
|
|
2342
|
+
function fs(t) {
|
|
2343
|
+
if (typeof Number.isFinite == "function") {
|
|
2344
|
+
if (Number.isFinite(t))
|
|
2345
|
+
return;
|
|
2346
|
+
throw new TypeError("coordinates must be finite numbers");
|
|
2347
|
+
}
|
|
2348
|
+
if (typeof t != "number" || t !== t || !isFinite(t))
|
|
2349
|
+
throw new TypeError("coordinates must be finite numbers");
|
|
2350
|
+
}
|
|
2351
|
+
function ki(t, s) {
|
|
2352
|
+
return (t.datum.datum_type === Z || t.datum.datum_type === Y || t.datum.datum_type === et) && s.datumCode !== "WGS84" || (s.datum.datum_type === Z || s.datum.datum_type === Y || s.datum.datum_type === et) && t.datumCode !== "WGS84";
|
|
2353
|
+
}
|
|
2354
|
+
function Rt(t, s, i, h) {
|
|
2355
|
+
var a, e = i.z !== void 0;
|
|
2356
|
+
if (Ai(i), t.datum && s.datum && ki(t, s) && (a = new z("WGS84"), i = Rt(t, a, i, h), t = a), h && t.axis !== "enu" && (i = Ni(t, i)), t.projName === "longlat")
|
|
2357
|
+
i = {
|
|
2358
|
+
x: i.x * A,
|
|
2359
|
+
y: i.y * A,
|
|
2360
|
+
z: i.z || 0
|
|
2361
|
+
};
|
|
2362
|
+
else if (t.to_meter && (i = {
|
|
2363
|
+
x: i.x * t.to_meter,
|
|
2364
|
+
y: i.y * t.to_meter,
|
|
2365
|
+
z: i.z || 0
|
|
2366
|
+
}), i = t.inverse(i), !i)
|
|
2367
|
+
return;
|
|
2368
|
+
if (t.from_greenwich && (i.x += t.from_greenwich), i = Gi(t.datum, s.datum, i), !!i)
|
|
2369
|
+
return i = /** @type {import('./core').InterfaceCoordinates} */
|
|
2370
|
+
i, s.from_greenwich && (i = {
|
|
2371
|
+
x: i.x - s.from_greenwich,
|
|
2372
|
+
y: i.y,
|
|
2373
|
+
z: i.z || 0
|
|
2374
|
+
}), s.projName === "longlat" ? i = {
|
|
2375
|
+
x: i.x * L,
|
|
2376
|
+
y: i.y * L,
|
|
2377
|
+
z: i.z || 0
|
|
2378
|
+
} : (i = s.forward(i), s.to_meter && (i = {
|
|
2379
|
+
x: i.x / s.to_meter,
|
|
2380
|
+
y: i.y / s.to_meter,
|
|
2381
|
+
z: i.z || 0
|
|
2382
|
+
})), h && s.axis !== "enu" ? Ii(s, i) : (i && !e && s.projName !== "geocent" && delete i.z, i);
|
|
2383
|
+
}
|
|
2384
|
+
function qi(t, s, i, h) {
|
|
2385
|
+
var a;
|
|
2386
|
+
return Array.isArray(i) ? a = Xt(i) : a = { x: i.x, y: i.y, z: i.z, m: i.m }, Rt(t, s, a, h);
|
|
2387
|
+
}
|
|
2388
|
+
var Ms = z("WGS84");
|
|
2389
|
+
function Tt(t, s, i, h) {
|
|
2390
|
+
var a, e, n;
|
|
2391
|
+
return Array.isArray(i) ? (a = Rt(t, s, Xt(i), h) || { x: NaN, y: NaN }, i.length > 2 ? (e = typeof t.name < "u" && t.name === "geocent" || typeof s.name < "u" && s.name === "geocent", e ? typeof a.z == "number" ? (
|
|
2392
|
+
/** @type {T} */
|
|
2393
|
+
[a.x, a.y, a.z].concat(i.slice(3))
|
|
2394
|
+
) : (
|
|
2395
|
+
/** @type {T} */
|
|
2396
|
+
[a.x, a.y, i[2]].concat(i.slice(3))
|
|
2397
|
+
) : h && typeof a.z == "number" ? (
|
|
2398
|
+
/** @type {T} */
|
|
2399
|
+
[a.x, a.y, a.z].concat(i.slice(3))
|
|
2400
|
+
) : (
|
|
2401
|
+
/** @type {T} */
|
|
2402
|
+
[a.x, a.y].concat(i.slice(2))
|
|
2403
|
+
)) : (
|
|
2404
|
+
/** @type {T} */
|
|
2405
|
+
[a.x, a.y]
|
|
2406
|
+
)) : (a = Rt(t, s, { x: i.x, y: i.y, z: i.z, m: i.m }, h) || { x: NaN, y: NaN }, n = Object.keys(i), n.length === 2 || (e = typeof t.name < "u" && t.name === "geocent" || typeof s.name < "u" && s.name === "geocent", n.forEach(function(r) {
|
|
2407
|
+
r === "x" || r === "y" || r === "z" && (e || h) || (a[r] = i[r]);
|
|
2408
|
+
})), /** @type {T} */
|
|
2409
|
+
a);
|
|
2410
|
+
}
|
|
2411
|
+
function Gt(t) {
|
|
2412
|
+
return t instanceof z ? t : typeof t == "object" && "oProj" in t ? t.oProj : z(
|
|
2413
|
+
/** @type {string | PROJJSONDefinition} */
|
|
2414
|
+
t
|
|
2415
|
+
);
|
|
2416
|
+
}
|
|
2417
|
+
function Ri(t, s, i) {
|
|
2418
|
+
var h, a, e = !1, n;
|
|
2419
|
+
return typeof s > "u" ? (a = Gt(t), h = Ms, e = !0) : (typeof /** @type {?} */
|
|
2420
|
+
s.x < "u" || Array.isArray(s)) && (i = /** @type {T} */
|
|
2421
|
+
/** @type {?} */
|
|
2422
|
+
s, a = Gt(t), h = Ms, e = !0), h || (h = Gt(t)), a || (a = Gt(
|
|
2423
|
+
/** @type {string | PROJJSONDefinition | proj } */
|
|
2424
|
+
s
|
|
2425
|
+
)), i ? Tt(h, a, i) : (n = {
|
|
2426
|
+
/**
|
|
2427
|
+
* @template {TemplateCoordinates} T
|
|
2428
|
+
* @param {T} coords
|
|
2429
|
+
* @param {boolean=} enforceAxis
|
|
2430
|
+
* @returns {T}
|
|
2431
|
+
*/
|
|
2432
|
+
forward: function(r, o) {
|
|
2433
|
+
return Tt(h, a, r, o);
|
|
2434
|
+
},
|
|
2435
|
+
/**
|
|
2436
|
+
* @template {TemplateCoordinates} T
|
|
2437
|
+
* @param {T} coords
|
|
2438
|
+
* @param {boolean=} enforceAxis
|
|
2439
|
+
* @returns {T}
|
|
2440
|
+
*/
|
|
2441
|
+
inverse: function(r, o) {
|
|
2442
|
+
return Tt(a, h, r, o);
|
|
2443
|
+
}
|
|
2444
|
+
}, e && (n.oProj = a), n);
|
|
2445
|
+
}
|
|
2446
|
+
function nt(t, s, i) {
|
|
2447
|
+
if (!(this instanceof nt))
|
|
2448
|
+
return new nt(t, s, i);
|
|
2449
|
+
if (Array.isArray(t))
|
|
2450
|
+
this.x = t[0], this.y = t[1], this.z = t[2] || 0;
|
|
2451
|
+
else if (typeof t == "object")
|
|
2452
|
+
this.x = t.x, this.y = t.y, this.z = t.z || 0;
|
|
2453
|
+
else if (typeof t == "string" && typeof s > "u") {
|
|
2454
|
+
var h = t.split(",");
|
|
2455
|
+
this.x = parseFloat(h[0]), this.y = parseFloat(h[1]), this.z = parseFloat(h[2]) || 0;
|
|
2456
|
+
} else
|
|
2457
|
+
this.x = t, this.y = s, this.z = i || 0;
|
|
2458
|
+
console.warn("proj4.Point will be removed in version 3, use proj4.toPoint");
|
|
2459
|
+
}
|
|
2460
|
+
nt.fromMGRS = function(t) {
|
|
2461
|
+
return new nt(Rs(t));
|
|
2462
|
+
};
|
|
2463
|
+
nt.prototype.toMGRS = function(t) {
|
|
2464
|
+
return Cs([this.x, this.y], t);
|
|
2465
|
+
};
|
|
2466
|
+
var Ci = 1, $i = 0.25, us = 0.046875, _s = 0.01953125, cs = 0.01068115234375, ji = 0.75, Oi = 0.46875, Li = 0.013020833333333334, Ti = 0.007120768229166667, Fi = 0.3645833333333333, Bi = 0.005696614583333333, zi = 0.3076171875;
|
|
2467
|
+
function Ht(t) {
|
|
2468
|
+
var s = [];
|
|
2469
|
+
s[0] = Ci - t * ($i + t * (us + t * (_s + t * cs))), s[1] = t * (ji - t * (us + t * (_s + t * cs)));
|
|
2470
|
+
var i = t * t;
|
|
2471
|
+
return s[2] = i * (Oi - t * (Li + t * Ti)), i *= t, s[3] = i * (Fi - t * Bi), s[4] = i * t * zi, s;
|
|
2472
|
+
}
|
|
2473
|
+
function ot(t, s, i, h) {
|
|
2474
|
+
return i *= s, s *= s, h[0] * t - i * (h[1] + s * (h[2] + s * (h[3] + s * h[4])));
|
|
2475
|
+
}
|
|
2476
|
+
var Ui = 20;
|
|
2477
|
+
function Kt(t, s, i) {
|
|
2478
|
+
for (var h = 1 / (1 - s), a = t, e = Ui; e; --e) {
|
|
2479
|
+
var n = Math.sin(a), r = 1 - s * n * n;
|
|
2480
|
+
if (r = (ot(a, n, Math.cos(a), i) - t) * (r * Math.sqrt(r)) * h, a -= r, Math.abs(r) < y)
|
|
2481
|
+
return a;
|
|
2482
|
+
}
|
|
2483
|
+
return a;
|
|
2484
|
+
}
|
|
2485
|
+
function Di() {
|
|
2486
|
+
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 = Ht(this.es), this.ml0 = ot(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
|
|
2487
|
+
}
|
|
2488
|
+
function Wi(t) {
|
|
2489
|
+
var s = t.x, i = t.y, h = m(s - this.long0, this.over), a, e, n, r = Math.sin(i), o = Math.cos(i);
|
|
2490
|
+
if (this.es) {
|
|
2491
|
+
var M = o * h, f = Math.pow(M, 2), u = this.ep2 * Math.pow(o, 2), c = Math.pow(u, 2), v = Math.abs(o) > y ? Math.tan(i) : 0, g = Math.pow(v, 2), w = Math.pow(g, 2);
|
|
2492
|
+
a = 1 - this.es * Math.pow(r, 2), M = M / Math.sqrt(a);
|
|
2493
|
+
var d = ot(i, r, o, this.en);
|
|
2494
|
+
e = this.a * (this.k0 * M * (1 + f / 6 * (1 - g + u + f / 20 * (5 - 18 * g + w + 14 * u - 58 * g * u + f / 42 * (61 + 179 * w - w * g - 479 * g))))) + this.x0, n = this.a * (this.k0 * (d - this.ml0 + r * h * M / 2 * (1 + f / 12 * (5 - g + 9 * u + 4 * c + f / 30 * (61 + w - 58 * g + 270 * u - 330 * g * u + f / 56 * (1385 + 543 * w - w * g - 3111 * g)))))) + this.y0;
|
|
2495
|
+
} else {
|
|
2496
|
+
var l = o * Math.sin(h);
|
|
2497
|
+
if (Math.abs(Math.abs(l) - 1) < y)
|
|
2498
|
+
return 93;
|
|
2499
|
+
if (e = 0.5 * this.a * this.k0 * Math.log((1 + l) / (1 - l)) + this.x0, n = o * Math.cos(h) / Math.sqrt(1 - Math.pow(l, 2)), l = Math.abs(n), l >= 1) {
|
|
2500
|
+
if (l - 1 > y)
|
|
2501
|
+
return 93;
|
|
2502
|
+
n = 0;
|
|
2503
|
+
} else
|
|
2504
|
+
n = Math.acos(n);
|
|
2505
|
+
i < 0 && (n = -n), n = this.a * this.k0 * (n - this.lat0) + this.y0;
|
|
2506
|
+
}
|
|
2507
|
+
return t.x = e, t.y = n, t;
|
|
2508
|
+
}
|
|
2509
|
+
function Qi(t) {
|
|
2510
|
+
var s, i, h, a, e = (t.x - this.x0) * (1 / this.a), n = (t.y - this.y0) * (1 / this.a);
|
|
2511
|
+
if (this.es)
|
|
2512
|
+
if (s = this.ml0 + n / this.k0, i = Kt(s, this.es, this.en), Math.abs(i) < _) {
|
|
2513
|
+
var f = Math.sin(i), u = Math.cos(i), c = Math.abs(u) > y ? Math.tan(i) : 0, v = this.ep2 * Math.pow(u, 2), g = Math.pow(v, 2), w = Math.pow(c, 2), d = Math.pow(w, 2);
|
|
2514
|
+
s = 1 - this.es * Math.pow(f, 2);
|
|
2515
|
+
var E = e * Math.sqrt(s) / this.k0, S = Math.pow(E, 2);
|
|
2516
|
+
s = s * c, h = i - s * S / (1 - this.es) * 0.5 * (1 - S / 12 * (5 + 3 * w - 9 * v * w + v - 4 * g - S / 30 * (61 + 90 * w - 252 * v * w + 45 * d + 46 * v - S / 56 * (1385 + 3633 * w + 4095 * d + 1574 * d * w)))), a = m(this.long0 + E * (1 - S / 6 * (1 + 2 * w + v - S / 20 * (5 + 28 * w + 24 * d + 8 * v * w + 6 * v - S / 42 * (61 + 662 * w + 1320 * d + 720 * d * w)))) / u, this.over);
|
|
2517
|
+
} else
|
|
2518
|
+
h = _ * wt(n), a = 0;
|
|
2519
|
+
else {
|
|
2520
|
+
var r = Math.exp(e / this.k0), o = 0.5 * (r - 1 / r), l = this.lat0 + n / this.k0, M = Math.cos(l);
|
|
2521
|
+
s = Math.sqrt((1 - Math.pow(M, 2)) / (1 + Math.pow(o, 2))), h = Math.asin(s), n < 0 && (h = -h), o === 0 && M === 0 ? a = 0 : a = m(Math.atan2(o, M) + this.long0, this.over);
|
|
2522
|
+
}
|
|
2523
|
+
return t.x = a, t.y = h, t;
|
|
2524
|
+
}
|
|
2525
|
+
var pi = ["Fast_Transverse_Mercator", "Fast Transverse Mercator"];
|
|
2526
|
+
const It = {
|
|
2527
|
+
init: Di,
|
|
2528
|
+
forward: Wi,
|
|
2529
|
+
inverse: Qi,
|
|
2530
|
+
names: pi
|
|
2531
|
+
};
|
|
2532
|
+
function Ps(t) {
|
|
2533
|
+
var s = Math.exp(t);
|
|
2534
|
+
return s = (s - 1 / s) / 2, s;
|
|
2535
|
+
}
|
|
2536
|
+
function O(t, s) {
|
|
2537
|
+
t = Math.abs(t), s = Math.abs(s);
|
|
2538
|
+
var i = Math.max(t, s), h = Math.min(t, s) / (i || 1);
|
|
2539
|
+
return i * Math.sqrt(1 + Math.pow(h, 2));
|
|
2540
|
+
}
|
|
2541
|
+
function Xi(t) {
|
|
2542
|
+
var s = 1 + t, i = s - 1;
|
|
2543
|
+
return i === 0 ? t : t * Math.log(s) / i;
|
|
2544
|
+
}
|
|
2545
|
+
function Hi(t) {
|
|
2546
|
+
var s = Math.abs(t);
|
|
2547
|
+
return s = Xi(s * (1 + s / (O(1, s) + 1))), t < 0 ? -s : s;
|
|
2548
|
+
}
|
|
2549
|
+
function Vt(t, s) {
|
|
2550
|
+
for (var i = 2 * Math.cos(2 * s), h = t.length - 1, a = t[h], e = 0, n; --h >= 0; )
|
|
2551
|
+
n = -e + i * a + t[h], e = a, a = n;
|
|
2552
|
+
return s + n * Math.sin(2 * s);
|
|
2553
|
+
}
|
|
2554
|
+
function Ki(t, s) {
|
|
2555
|
+
for (var i = 2 * Math.cos(s), h = t.length - 1, a = t[h], e = 0, n; --h >= 0; )
|
|
2556
|
+
n = -e + i * a + t[h], e = a, a = n;
|
|
2557
|
+
return Math.sin(s) * n;
|
|
2558
|
+
}
|
|
2559
|
+
function Vi(t) {
|
|
2560
|
+
var s = Math.exp(t);
|
|
2561
|
+
return s = (s + 1 / s) / 2, s;
|
|
2562
|
+
}
|
|
2563
|
+
function xs(t, s, i) {
|
|
2564
|
+
for (var h = Math.sin(s), a = Math.cos(s), e = Ps(i), n = Vi(i), r = 2 * a * n, o = -2 * h * e, l = t.length - 1, M = t[l], f = 0, u = 0, c = 0, v, g; --l >= 0; )
|
|
2565
|
+
v = u, g = f, u = M, f = c, M = -v + r * u - o * f + t[l], c = -g + o * u + r * f;
|
|
2566
|
+
return r = h * n, o = a * e, [r * M - o * c, r * c + o * M];
|
|
2567
|
+
}
|
|
2568
|
+
function Ji() {
|
|
2569
|
+
if (!this.approx && (isNaN(this.es) || this.es <= 0))
|
|
2570
|
+
throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');
|
|
2571
|
+
this.approx && (It.init.apply(this), this.forward = It.forward, this.inverse = It.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 = [];
|
|
2572
|
+
var t = this.es / (1 + Math.sqrt(1 - this.es)), s = t / (2 - t), i = s;
|
|
2573
|
+
this.cgb[0] = s * (2 + s * (-2 / 3 + s * (-2 + s * (116 / 45 + s * (26 / 45 + s * (-2854 / 675)))))), this.cbg[0] = s * (-2 + s * (2 / 3 + s * (4 / 3 + s * (-82 / 45 + s * (32 / 45 + s * (4642 / 4725)))))), i = i * s, this.cgb[1] = i * (7 / 3 + s * (-8 / 5 + s * (-227 / 45 + s * (2704 / 315 + s * (2323 / 945))))), this.cbg[1] = i * (5 / 3 + s * (-16 / 15 + s * (-13 / 9 + s * (904 / 315 + s * (-1522 / 945))))), i = i * s, this.cgb[2] = i * (56 / 15 + s * (-136 / 35 + s * (-1262 / 105 + s * (73814 / 2835)))), this.cbg[2] = i * (-26 / 15 + s * (34 / 21 + s * (8 / 5 + s * (-12686 / 2835)))), i = i * s, this.cgb[3] = i * (4279 / 630 + s * (-332 / 35 + s * (-399572 / 14175))), this.cbg[3] = i * (1237 / 630 + s * (-12 / 5 + s * (-24832 / 14175))), i = i * s, this.cgb[4] = i * (4174 / 315 + s * (-144838 / 6237)), this.cbg[4] = i * (-734 / 315 + s * (109598 / 31185)), i = i * s, this.cgb[5] = i * (601676 / 22275), this.cbg[5] = i * (444337 / 155925), i = Math.pow(s, 2), this.Qn = this.k0 / (1 + s) * (1 + i * (1 / 4 + i * (1 / 64 + i / 256))), this.utg[0] = s * (-0.5 + s * (2 / 3 + s * (-37 / 96 + s * (1 / 360 + s * (81 / 512 + s * (-96199 / 604800)))))), this.gtu[0] = s * (0.5 + s * (-2 / 3 + s * (5 / 16 + s * (41 / 180 + s * (-127 / 288 + s * (7891 / 37800)))))), this.utg[1] = i * (-1 / 48 + s * (-1 / 15 + s * (437 / 1440 + s * (-46 / 105 + s * (1118711 / 3870720))))), this.gtu[1] = i * (13 / 48 + s * (-3 / 5 + s * (557 / 1440 + s * (281 / 630 + s * (-1983433 / 1935360))))), i = i * s, this.utg[2] = i * (-17 / 480 + s * (37 / 840 + s * (209 / 4480 + s * (-5569 / 90720)))), this.gtu[2] = i * (61 / 240 + s * (-103 / 140 + s * (15061 / 26880 + s * (167603 / 181440)))), i = i * s, this.utg[3] = i * (-4397 / 161280 + s * (11 / 504 + s * (830251 / 7257600))), this.gtu[3] = i * (49561 / 161280 + s * (-179 / 168 + s * (6601661 / 7257600))), i = i * s, this.utg[4] = i * (-4583 / 161280 + s * (108847 / 3991680)), this.gtu[4] = i * (34729 / 80640 + s * (-3418889 / 1995840)), i = i * s, this.utg[5] = i * (-20648693 / 638668800), this.gtu[5] = i * (212378941 / 319334400);
|
|
2574
|
+
var h = Vt(this.cbg, this.lat0);
|
|
2575
|
+
this.Zb = -this.Qn * (h + Ki(this.gtu, 2 * h));
|
|
2576
|
+
}
|
|
2577
|
+
function Zi(t) {
|
|
2578
|
+
var s = m(t.x - this.long0, this.over), i = t.y;
|
|
2579
|
+
i = Vt(this.cbg, i);
|
|
2580
|
+
var h = Math.sin(i), a = Math.cos(i), e = Math.sin(s), n = Math.cos(s);
|
|
2581
|
+
i = Math.atan2(h, n * a), s = Math.atan2(e * a, O(h, a * n)), s = Hi(Math.tan(s));
|
|
2582
|
+
var r = xs(this.gtu, 2 * i, 2 * s);
|
|
2583
|
+
i = i + r[0], s = s + r[1];
|
|
2584
|
+
var o, l;
|
|
2585
|
+
return Math.abs(s) <= 2.623395162778 ? (o = this.a * (this.Qn * s) + this.x0, l = this.a * (this.Qn * i + this.Zb) + this.y0) : (o = 1 / 0, l = 1 / 0), t.x = o, t.y = l, t;
|
|
2586
|
+
}
|
|
2587
|
+
function Yi(t) {
|
|
2588
|
+
var s = (t.x - this.x0) * (1 / this.a), i = (t.y - this.y0) * (1 / this.a);
|
|
2589
|
+
i = (i - this.Zb) / this.Qn, s = s / this.Qn;
|
|
2590
|
+
var h, a;
|
|
2591
|
+
if (Math.abs(s) <= 2.623395162778) {
|
|
2592
|
+
var e = xs(this.utg, 2 * i, 2 * s);
|
|
2593
|
+
i = i + e[0], s = s + e[1], s = Math.atan(Ps(s));
|
|
2594
|
+
var n = Math.sin(i), r = Math.cos(i), o = Math.sin(s), l = Math.cos(s);
|
|
2595
|
+
i = Math.atan2(n * l, O(o, l * r)), s = Math.atan2(o, l * r), h = m(s + this.long0, this.over), a = Vt(this.cgb, i);
|
|
2596
|
+
} else
|
|
2597
|
+
h = 1 / 0, a = 1 / 0;
|
|
2598
|
+
return t.x = h, t.y = a, t;
|
|
2599
|
+
}
|
|
2600
|
+
var ta = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "Gauss Kruger", "Gauss_Kruger", "tmerc"];
|
|
2601
|
+
const At = {
|
|
2602
|
+
init: Ji,
|
|
2603
|
+
forward: Zi,
|
|
2604
|
+
inverse: Yi,
|
|
2605
|
+
names: ta
|
|
2606
|
+
};
|
|
2607
|
+
function sa(t, s) {
|
|
2608
|
+
if (t === void 0) {
|
|
2609
|
+
if (t = Math.floor((m(s) + Math.PI) * 30 / Math.PI) + 1, t < 0)
|
|
2610
|
+
return 0;
|
|
2611
|
+
if (t > 60)
|
|
2612
|
+
return 60;
|
|
2613
|
+
}
|
|
2614
|
+
return t;
|
|
2615
|
+
}
|
|
2616
|
+
var ia = "etmerc";
|
|
2617
|
+
function aa() {
|
|
2618
|
+
var t = sa(this.zone, this.long0);
|
|
2619
|
+
if (t === void 0)
|
|
2620
|
+
throw new Error("unknown utm zone");
|
|
2621
|
+
this.lat0 = 0, this.long0 = (6 * Math.abs(t) - 183) * A, this.x0 = 5e5, this.y0 = this.utmSouth ? 1e7 : 0, this.k0 = 0.9996, At.init.apply(this), this.forward = At.forward, this.inverse = At.inverse;
|
|
2622
|
+
}
|
|
2623
|
+
var ha = ["Universal Transverse Mercator System", "utm"];
|
|
2624
|
+
const ea = {
|
|
2625
|
+
init: aa,
|
|
2626
|
+
names: ha,
|
|
2627
|
+
dependsOn: ia
|
|
2628
|
+
};
|
|
2629
|
+
function Jt(t, s) {
|
|
2630
|
+
return Math.pow((1 - t) / (1 + t), s);
|
|
2631
|
+
}
|
|
2632
|
+
var ra = 20;
|
|
2633
|
+
function na() {
|
|
2634
|
+
var t = Math.sin(this.lat0), s = Math.cos(this.lat0);
|
|
2635
|
+
s *= s, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * t * t), this.C = Math.sqrt(1 + this.es * s * s / (1 - this.es)), this.phic0 = Math.asin(t / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + x) / (Math.pow(Math.tan(0.5 * this.lat0 + x), this.C) * Jt(this.e * t, this.ratexp));
|
|
2636
|
+
}
|
|
2637
|
+
function oa(t) {
|
|
2638
|
+
var s = t.x, i = t.y;
|
|
2639
|
+
return t.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * i + x), this.C) * Jt(this.e * Math.sin(i), this.ratexp)) - _, t.x = this.C * s, t;
|
|
2640
|
+
}
|
|
2641
|
+
function la(t) {
|
|
2642
|
+
for (var s = 1e-14, i = t.x / this.C, h = t.y, a = Math.pow(Math.tan(0.5 * h + x) / this.K, 1 / this.C), e = ra; e > 0 && (h = 2 * Math.atan(a * Jt(this.e * Math.sin(t.y), -0.5 * this.e)) - _, !(Math.abs(h - t.y) < s)); --e)
|
|
2643
|
+
t.y = h;
|
|
2644
|
+
return e ? (t.x = i, t.y = h, t) : null;
|
|
2645
|
+
}
|
|
2646
|
+
const Zt = {
|
|
2647
|
+
init: na,
|
|
2648
|
+
forward: oa,
|
|
2649
|
+
inverse: la
|
|
2650
|
+
};
|
|
2651
|
+
function fa() {
|
|
2652
|
+
Zt.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"));
|
|
2653
|
+
}
|
|
2654
|
+
function Ma(t) {
|
|
2655
|
+
var s, i, h, a;
|
|
2656
|
+
return t.x = m(t.x - this.long0, this.over), Zt.forward.apply(this, [t]), s = Math.sin(t.y), i = Math.cos(t.y), h = Math.cos(t.x), a = this.k0 * this.R2 / (1 + this.sinc0 * s + this.cosc0 * i * h), t.x = a * i * Math.sin(t.x), t.y = a * (this.cosc0 * s - this.sinc0 * i * h), t.x = this.a * t.x + this.x0, t.y = this.a * t.y + this.y0, t;
|
|
2657
|
+
}
|
|
2658
|
+
function ua(t) {
|
|
2659
|
+
var s, i, h, a, e;
|
|
2660
|
+
if (t.x = (t.x - this.x0) / this.a, t.y = (t.y - this.y0) / this.a, t.x /= this.k0, t.y /= this.k0, e = O(t.x, t.y)) {
|
|
2661
|
+
var n = 2 * Math.atan2(e, this.R2);
|
|
2662
|
+
s = Math.sin(n), i = Math.cos(n), a = Math.asin(i * this.sinc0 + t.y * s * this.cosc0 / e), h = Math.atan2(t.x * s, e * this.cosc0 * i - t.y * this.sinc0 * s);
|
|
2663
|
+
} else
|
|
2664
|
+
a = this.phic0, h = 0;
|
|
2665
|
+
return t.x = h, t.y = a, Zt.inverse.apply(this, [t]), t.x = m(t.x + this.long0, this.over), t;
|
|
2666
|
+
}
|
|
2667
|
+
var _a = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
|
|
2668
|
+
const ca = {
|
|
2669
|
+
init: fa,
|
|
2670
|
+
forward: Ma,
|
|
2671
|
+
inverse: ua,
|
|
2672
|
+
names: _a
|
|
2673
|
+
};
|
|
2674
|
+
function Yt(t, s, i) {
|
|
2675
|
+
return s *= i, Math.tan(0.5 * (_ + t)) * Math.pow((1 - s) / (1 + s), 0.5 * i);
|
|
2676
|
+
}
|
|
2677
|
+
function va() {
|
|
2678
|
+
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) <= y && (this.k0 = 0.5 * (1 + wt(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= y && (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) <= y && Math.abs(Math.cos(this.lat_ts)) > y && (this.k0 = 0.5 * this.cons * W(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / U(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = W(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(Yt(this.lat0, this.sinlat0, this.e)) - _, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
|
|
2679
|
+
}
|
|
2680
|
+
function ga(t) {
|
|
2681
|
+
var s = t.x, i = t.y, h = Math.sin(i), a = Math.cos(i), e, n, r, o, l, M, f = m(s - this.long0, this.over);
|
|
2682
|
+
return Math.abs(Math.abs(s - this.long0) - Math.PI) <= y && Math.abs(i + this.lat0) <= y ? (t.x = NaN, t.y = NaN, t) : this.sphere ? (e = 2 * this.k0 / (1 + this.sinlat0 * h + this.coslat0 * a * Math.cos(f)), t.x = this.a * e * a * Math.sin(f) + this.x0, t.y = this.a * e * (this.coslat0 * h - this.sinlat0 * a * Math.cos(f)) + this.y0, t) : (n = 2 * Math.atan(Yt(i, h, this.e)) - _, o = Math.cos(n), r = Math.sin(n), Math.abs(this.coslat0) <= y ? (l = U(this.e, i * this.con, this.con * h), M = 2 * this.a * this.k0 * l / this.cons, t.x = this.x0 + M * Math.sin(s - this.long0), t.y = this.y0 - this.con * M * Math.cos(s - this.long0), t) : (Math.abs(this.sinlat0) < y ? (e = 2 * this.a * this.k0 / (1 + o * Math.cos(f)), t.y = e * r) : (e = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * r + this.cosX0 * o * Math.cos(f))), t.y = e * (this.cosX0 * r - this.sinX0 * o * Math.cos(f)) + this.y0), t.x = e * o * Math.sin(f) + this.x0, t));
|
|
2683
|
+
}
|
|
2684
|
+
function ya(t) {
|
|
2685
|
+
t.x -= this.x0, t.y -= this.y0;
|
|
2686
|
+
var s, i, h, a, e, n = Math.sqrt(t.x * t.x + t.y * t.y);
|
|
2687
|
+
if (this.sphere) {
|
|
2688
|
+
var r = 2 * Math.atan(n / (2 * this.a * this.k0));
|
|
2689
|
+
return s = this.long0, i = this.lat0, n <= y ? (t.x = s, t.y = i, t) : (i = Math.asin(Math.cos(r) * this.sinlat0 + t.y * Math.sin(r) * this.coslat0 / n), Math.abs(this.coslat0) < y ? this.lat0 > 0 ? s = m(this.long0 + Math.atan2(t.x, -1 * t.y), this.over) : s = m(this.long0 + Math.atan2(t.x, t.y), this.over) : s = m(this.long0 + Math.atan2(t.x * Math.sin(r), n * this.coslat0 * Math.cos(r) - t.y * this.sinlat0 * Math.sin(r)), this.over), t.x = s, t.y = i, t);
|
|
2690
|
+
} else if (Math.abs(this.coslat0) <= y) {
|
|
2691
|
+
if (n <= y)
|
|
2692
|
+
return i = this.lat0, s = this.long0, t.x = s, t.y = i, t;
|
|
2693
|
+
t.x *= this.con, t.y *= this.con, h = n * this.cons / (2 * this.a * this.k0), i = this.con * yt(this.e, h), s = this.con * m(this.con * this.long0 + Math.atan2(t.x, -1 * t.y), this.over);
|
|
2694
|
+
} else
|
|
2695
|
+
a = 2 * Math.atan(n * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), s = this.long0, n <= y ? e = this.X0 : (e = Math.asin(Math.cos(a) * this.sinX0 + t.y * Math.sin(a) * this.cosX0 / n), s = m(this.long0 + Math.atan2(t.x * Math.sin(a), n * this.cosX0 * Math.cos(a) - t.y * this.sinX0 * Math.sin(a)), this.over)), i = -1 * yt(this.e, Math.tan(0.5 * (_ + e)));
|
|
2696
|
+
return t.x = s, t.y = i, t;
|
|
2697
|
+
}
|
|
2698
|
+
var ma = ["stere", "Stereographic_South_Pole", "Polar_Stereographic_variant_A", "Polar_Stereographic_variant_B", "Polar_Stereographic"];
|
|
2699
|
+
const wa = {
|
|
2700
|
+
init: va,
|
|
2701
|
+
forward: ga,
|
|
2702
|
+
inverse: ya,
|
|
2703
|
+
names: ma,
|
|
2704
|
+
ssfn_: Yt
|
|
2705
|
+
};
|
|
2706
|
+
function da() {
|
|
2707
|
+
var t = this.lat0;
|
|
2708
|
+
this.lambda0 = this.long0;
|
|
2709
|
+
var s = Math.sin(t), i = this.a, h = this.rf, a = 1 / h, e = 2 * a - Math.pow(a, 2), n = this.e = Math.sqrt(e);
|
|
2710
|
+
this.R = this.k0 * i * Math.sqrt(1 - e) / (1 - e * Math.pow(s, 2)), this.alpha = Math.sqrt(1 + e / (1 - e) * Math.pow(Math.cos(t), 4)), this.b0 = Math.asin(s / this.alpha);
|
|
2711
|
+
var r = Math.log(Math.tan(Math.PI / 4 + this.b0 / 2)), o = Math.log(Math.tan(Math.PI / 4 + t / 2)), l = Math.log((1 + n * s) / (1 - n * s));
|
|
2712
|
+
this.K = r - this.alpha * o + this.alpha * n / 2 * l;
|
|
2713
|
+
}
|
|
2714
|
+
function Sa(t) {
|
|
2715
|
+
var s = Math.log(Math.tan(Math.PI / 4 - t.y / 2)), i = this.e / 2 * Math.log((1 + this.e * Math.sin(t.y)) / (1 - this.e * Math.sin(t.y))), h = -this.alpha * (s + i) + this.K, a = 2 * (Math.atan(Math.exp(h)) - Math.PI / 4), e = this.alpha * (t.x - this.lambda0), n = Math.atan(Math.sin(e) / (Math.sin(this.b0) * Math.tan(a) + Math.cos(this.b0) * Math.cos(e))), r = Math.asin(Math.cos(this.b0) * Math.sin(a) - Math.sin(this.b0) * Math.cos(a) * Math.cos(e));
|
|
2716
|
+
return t.y = this.R / 2 * Math.log((1 + Math.sin(r)) / (1 - Math.sin(r))) + this.y0, t.x = this.R * n + this.x0, t;
|
|
2717
|
+
}
|
|
2718
|
+
function Ea(t) {
|
|
2719
|
+
for (var s = t.x - this.x0, i = t.y - this.y0, h = s / this.R, a = 2 * (Math.atan(Math.exp(i / this.R)) - Math.PI / 4), e = Math.asin(Math.cos(this.b0) * Math.sin(a) + Math.sin(this.b0) * Math.cos(a) * Math.cos(h)), n = Math.atan(Math.sin(h) / (Math.cos(this.b0) * Math.cos(h) - Math.sin(this.b0) * Math.tan(a))), r = this.lambda0 + n / this.alpha, o = 0, l = e, M = -1e3, f = 0; Math.abs(l - M) > 1e-7; ) {
|
|
2720
|
+
if (++f > 20)
|
|
2721
|
+
return;
|
|
2722
|
+
o = 1 / this.alpha * (Math.log(Math.tan(Math.PI / 4 + e / 2)) - this.K) + this.e * Math.log(Math.tan(Math.PI / 4 + Math.asin(this.e * Math.sin(l)) / 2)), M = l, l = 2 * Math.atan(Math.exp(o)) - Math.PI / 2;
|
|
2723
|
+
}
|
|
2724
|
+
return t.x = r, t.y = l, t;
|
|
2725
|
+
}
|
|
2726
|
+
var Pa = ["somerc"];
|
|
2727
|
+
const xa = {
|
|
2728
|
+
init: da,
|
|
2729
|
+
forward: Sa,
|
|
2730
|
+
inverse: Ea,
|
|
2731
|
+
names: Pa
|
|
2732
|
+
};
|
|
2733
|
+
var it = 1e-7;
|
|
2734
|
+
function Ga(t) {
|
|
2735
|
+
var s = ["Hotine_Oblique_Mercator", "Hotine_Oblique_Mercator_variant_A", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin"], i = typeof t.projName == "object" ? Object.keys(t.projName)[0] : t.projName;
|
|
2736
|
+
return "no_uoff" in t || "no_off" in t || s.indexOf(i) !== -1 || s.indexOf(ws(i)) !== -1;
|
|
2737
|
+
}
|
|
2738
|
+
function ba() {
|
|
2739
|
+
var t, s, i, h, a, e, n, r, o, l, M = 0, f, u = 0, c = 0, v = 0, g = 0, w = 0, d = 0;
|
|
2740
|
+
this.no_off = Ga(this), this.no_rot = "no_rot" in this;
|
|
2741
|
+
var E = !1;
|
|
2742
|
+
"alpha" in this && (E = !0);
|
|
2743
|
+
var S = !1;
|
|
2744
|
+
if ("rectified_grid_angle" in this && (S = !0), E && (d = this.alpha), S && (M = this.rectified_grid_angle, E || (d = 0, E = !0)), E || S)
|
|
2745
|
+
u = this.longc;
|
|
2746
|
+
else if (c = this.long1, g = this.lat1, v = this.long2, w = this.lat2, Math.abs(g - w) <= it || (t = Math.abs(g)) <= it || Math.abs(t - _) <= it || Math.abs(Math.abs(this.lat0) - _) <= it || Math.abs(Math.abs(w) - _) <= it)
|
|
2747
|
+
throw new Error();
|
|
2748
|
+
var P = 1 - this.es;
|
|
2749
|
+
s = Math.sqrt(P), Math.abs(this.lat0) > y ? (r = Math.sin(this.lat0), i = Math.cos(this.lat0), t = 1 - this.es * r * r, this.B = i * i, this.B = Math.sqrt(1 + this.es * this.B * this.B / P), this.A = this.B * this.k0 * s / t, h = this.B * s / (i * Math.sqrt(t)), a = h * h - 1, a <= 0 ? a = 0 : (a = Math.sqrt(a), this.lat0 < 0 && (a = -a)), this.E = a += h, this.E *= Math.pow(U(this.e, this.lat0, r), this.B)) : (this.B = 1 / s, this.A = this.k0, this.E = h = a = 1), E || S ? (E ? (f = Math.asin(Math.sin(d) / h), S || (M = d)) : (f = M, d = Math.asin(h * Math.sin(f))), this.lam0 = u - Math.asin(0.5 * (a - 1 / a) * Math.tan(f)) / this.B) : (e = Math.pow(U(this.e, g, Math.sin(g)), this.B), n = Math.pow(U(this.e, w, Math.sin(w)), this.B), a = this.E / e, o = (n - e) / (n + e), l = this.E * this.E, l = (l - n * e) / (l + n * e), t = c - v, t < -Math.PI ? v -= gt : t > Math.PI && (v += gt), this.lam0 = m(0.5 * (c + v) - Math.atan(l * Math.tan(0.5 * this.B * (c - v)) / o) / this.B, this.over), f = Math.atan(2 * Math.sin(this.B * m(c - this.lam0, this.over)) / (a - 1 / a)), M = d = Math.asin(h * Math.sin(f))), this.singam = Math.sin(f), this.cosgam = Math.cos(f), this.sinrot = Math.sin(M), this.cosrot = Math.cos(M), 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(h * h - 1) / Math.cos(d))), this.lat0 < 0 && (this.u_0 = -this.u_0)), a = 0.5 * f, this.v_pole_n = this.ArB * Math.log(Math.tan(x - a)), this.v_pole_s = this.ArB * Math.log(Math.tan(x + a));
|
|
2750
|
+
}
|
|
2751
|
+
function Na(t) {
|
|
2752
|
+
var s = {}, i, h, a, e, n, r, o, l;
|
|
2753
|
+
if (t.x = t.x - this.lam0, Math.abs(Math.abs(t.y) - _) > y) {
|
|
2754
|
+
if (n = this.E / Math.pow(U(this.e, t.y, Math.sin(t.y)), this.B), r = 1 / n, i = 0.5 * (n - r), h = 0.5 * (n + r), e = Math.sin(this.B * t.x), a = (i * this.singam - e * this.cosgam) / h, Math.abs(Math.abs(a) - 1) < y)
|
|
2755
|
+
throw new Error();
|
|
2756
|
+
l = 0.5 * this.ArB * Math.log((1 - a) / (1 + a)), r = Math.cos(this.B * t.x), Math.abs(r) < it ? o = this.A * t.x : o = this.ArB * Math.atan2(i * this.cosgam + e * this.singam, r);
|
|
2757
|
+
} else
|
|
2758
|
+
l = t.y > 0 ? this.v_pole_n : this.v_pole_s, o = this.ArB * t.y;
|
|
2759
|
+
return this.no_rot ? (s.x = o, s.y = l) : (o -= this.u_0, s.x = l * this.cosrot + o * this.sinrot, s.y = o * this.cosrot - l * this.sinrot), s.x = this.a * s.x + this.x0, s.y = this.a * s.y + this.y0, s;
|
|
2760
|
+
}
|
|
2761
|
+
function Ia(t) {
|
|
2762
|
+
var s, i, h, a, e, n, r, o = {};
|
|
2763
|
+
if (t.x = (t.x - this.x0) * (1 / this.a), t.y = (t.y - this.y0) * (1 / this.a), this.no_rot ? (i = t.y, s = t.x) : (i = t.x * this.cosrot - t.y * this.sinrot, s = t.y * this.cosrot + t.x * this.sinrot + this.u_0), h = Math.exp(-this.BrA * i), a = 0.5 * (h - 1 / h), e = 0.5 * (h + 1 / h), n = Math.sin(this.BrA * s), r = (n * this.cosgam + a * this.singam) / e, Math.abs(Math.abs(r) - 1) < y)
|
|
2764
|
+
o.x = 0, o.y = r < 0 ? -_ : _;
|
|
2765
|
+
else {
|
|
2766
|
+
if (o.y = this.E / Math.sqrt((1 + r) / (1 - r)), o.y = yt(this.e, Math.pow(o.y, 1 / this.B)), o.y === 1 / 0)
|
|
2767
|
+
throw new Error();
|
|
2768
|
+
o.x = -this.rB * Math.atan2(a * this.cosgam - n * this.singam, Math.cos(this.BrA * s));
|
|
2769
|
+
}
|
|
2770
|
+
return o.x += this.lam0, o;
|
|
2771
|
+
}
|
|
2772
|
+
var Aa = ["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"];
|
|
2773
|
+
const ka = {
|
|
2774
|
+
init: ba,
|
|
2775
|
+
forward: Na,
|
|
2776
|
+
inverse: Ia,
|
|
2777
|
+
names: Aa
|
|
2778
|
+
};
|
|
2779
|
+
function qa() {
|
|
2780
|
+
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) < y)) {
|
|
2781
|
+
var t = this.b / this.a;
|
|
2782
|
+
this.e = Math.sqrt(1 - t * t);
|
|
2783
|
+
var s = Math.sin(this.lat1), i = Math.cos(this.lat1), h = W(this.e, s, i), a = U(this.e, this.lat1, s), e = Math.sin(this.lat2), n = Math.cos(this.lat2), r = W(this.e, e, n), o = U(this.e, this.lat2, e), l = Math.abs(Math.abs(this.lat0) - _) < y ? 0 : U(this.e, this.lat0, Math.sin(this.lat0));
|
|
2784
|
+
Math.abs(this.lat1 - this.lat2) > y ? this.ns = Math.log(h / r) / Math.log(a / o) : this.ns = s, isNaN(this.ns) && (this.ns = s), this.f0 = h / (this.ns * Math.pow(a, this.ns)), this.rh = this.a * this.f0 * Math.pow(l, this.ns), this.title || (this.title = "Lambert Conformal Conic");
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
function Ra(t) {
|
|
2788
|
+
var s = t.x, i = t.y;
|
|
2789
|
+
Math.abs(2 * Math.abs(i) - Math.PI) <= y && (i = wt(i) * (_ - 2 * y));
|
|
2790
|
+
var h = Math.abs(Math.abs(i) - _), a, e;
|
|
2791
|
+
if (h > y)
|
|
2792
|
+
a = U(this.e, i, Math.sin(i)), e = this.a * this.f0 * Math.pow(a, this.ns);
|
|
2793
|
+
else {
|
|
2794
|
+
if (h = i * this.ns, h <= 0)
|
|
2795
|
+
return null;
|
|
2796
|
+
e = 0;
|
|
2797
|
+
}
|
|
2798
|
+
var n = this.ns * m(s - this.long0, this.over);
|
|
2799
|
+
return t.x = this.k0 * (e * Math.sin(n)) + this.x0, t.y = this.k0 * (this.rh - e * Math.cos(n)) + this.y0, t;
|
|
2800
|
+
}
|
|
2801
|
+
function Ca(t) {
|
|
2802
|
+
var s, i, h, a, e, n = (t.x - this.x0) / this.k0, r = this.rh - (t.y - this.y0) / this.k0;
|
|
2803
|
+
this.ns > 0 ? (s = Math.sqrt(n * n + r * r), i = 1) : (s = -Math.sqrt(n * n + r * r), i = -1);
|
|
2804
|
+
var o = 0;
|
|
2805
|
+
if (s !== 0 && (o = Math.atan2(i * n, i * r)), s !== 0 || this.ns > 0) {
|
|
2806
|
+
if (i = 1 / this.ns, h = Math.pow(s / (this.a * this.f0), i), a = yt(this.e, h), a === -9999)
|
|
2807
|
+
return null;
|
|
2808
|
+
} else
|
|
2809
|
+
a = -_;
|
|
2810
|
+
return e = m(o / this.ns + this.long0, this.over), t.x = e, t.y = a, t;
|
|
2811
|
+
}
|
|
2812
|
+
var $a = [
|
|
2813
|
+
"Lambert Tangential Conformal Conic Projection",
|
|
2814
|
+
"Lambert_Conformal_Conic",
|
|
2815
|
+
"Lambert_Conformal_Conic_1SP",
|
|
2816
|
+
"Lambert_Conformal_Conic_2SP",
|
|
2817
|
+
"lcc",
|
|
2818
|
+
"Lambert Conic Conformal (1SP)",
|
|
2819
|
+
"Lambert Conic Conformal (2SP)"
|
|
2820
|
+
];
|
|
2821
|
+
const ja = {
|
|
2822
|
+
init: qa,
|
|
2823
|
+
forward: Ra,
|
|
2824
|
+
inverse: Ca,
|
|
2825
|
+
names: $a
|
|
2826
|
+
};
|
|
2827
|
+
function Oa() {
|
|
2828
|
+
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;
|
|
2829
|
+
}
|
|
2830
|
+
function La(t) {
|
|
2831
|
+
var s, i, h, a, e, n, r, o = t.x, l = t.y, M = m(o - this.long0, this.over);
|
|
2832
|
+
return s = Math.pow((1 + this.e * Math.sin(l)) / (1 - this.e * Math.sin(l)), this.alfa * this.e / 2), i = 2 * (Math.atan(this.k * Math.pow(Math.tan(l / 2 + this.s45), this.alfa) / s) - this.s45), h = -M * this.alfa, a = Math.asin(Math.cos(this.ad) * Math.sin(i) + Math.sin(this.ad) * Math.cos(i) * Math.cos(h)), e = Math.asin(Math.cos(i) * Math.sin(h) / Math.cos(a)), n = this.n * e, r = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(a / 2 + this.s45), this.n), t.y = r * Math.cos(n) / 1, t.x = r * Math.sin(n) / 1, this.czech || (t.y *= -1, t.x *= -1), t;
|
|
2833
|
+
}
|
|
2834
|
+
function Ta(t) {
|
|
2835
|
+
var s, i, h, a, e, n, r, o, l = t.x;
|
|
2836
|
+
t.x = t.y, t.y = l, this.czech || (t.y *= -1, t.x *= -1), n = Math.sqrt(t.x * t.x + t.y * t.y), e = Math.atan2(t.y, t.x), a = e / Math.sin(this.s0), h = 2 * (Math.atan(Math.pow(this.ro0 / n, 1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45), s = Math.asin(Math.cos(this.ad) * Math.sin(h) - Math.sin(this.ad) * Math.cos(h) * Math.cos(a)), i = Math.asin(Math.cos(h) * Math.sin(a) / Math.cos(s)), t.x = this.long0 - i / this.alfa, r = s, o = 0;
|
|
2837
|
+
var M = 0;
|
|
2838
|
+
do
|
|
2839
|
+
t.y = 2 * (Math.atan(Math.pow(this.k, -1 / this.alfa) * Math.pow(Math.tan(s / 2 + this.s45), 1 / this.alfa) * Math.pow((1 + this.e * Math.sin(r)) / (1 - this.e * Math.sin(r)), this.e / 2)) - this.s45), Math.abs(r - t.y) < 1e-10 && (o = 1), r = t.y, M += 1;
|
|
2840
|
+
while (o === 0 && M < 15);
|
|
2841
|
+
return M >= 15 ? null : t;
|
|
2842
|
+
}
|
|
2843
|
+
var Fa = ["Krovak", "Krovak Modified", "Krovak (North Orientated)", "Krovak Modified (North Orientated)", "krovak"];
|
|
2844
|
+
const Ba = {
|
|
2845
|
+
init: Oa,
|
|
2846
|
+
forward: La,
|
|
2847
|
+
inverse: Ta,
|
|
2848
|
+
names: Fa
|
|
2849
|
+
};
|
|
2850
|
+
function j(t, s, i, h, a) {
|
|
2851
|
+
return t * a - s * Math.sin(2 * a) + i * Math.sin(4 * a) - h * Math.sin(6 * a);
|
|
2852
|
+
}
|
|
2853
|
+
function dt(t) {
|
|
2854
|
+
return 1 - 0.25 * t * (1 + t / 16 * (3 + 1.25 * t));
|
|
2855
|
+
}
|
|
2856
|
+
function St(t) {
|
|
2857
|
+
return 0.375 * t * (1 + 0.25 * t * (1 + 0.46875 * t));
|
|
2858
|
+
}
|
|
2859
|
+
function Et(t) {
|
|
2860
|
+
return 0.05859375 * t * t * (1 + 0.75 * t);
|
|
2861
|
+
}
|
|
2862
|
+
function Pt(t) {
|
|
2863
|
+
return t * t * t * (35 / 3072);
|
|
2864
|
+
}
|
|
2865
|
+
function ts(t, s, i) {
|
|
2866
|
+
var h = s * i;
|
|
2867
|
+
return t / Math.sqrt(1 - h * h);
|
|
2868
|
+
}
|
|
2869
|
+
function K(t) {
|
|
2870
|
+
return Math.abs(t) < _ ? t : t - wt(t) * Math.PI;
|
|
2871
|
+
}
|
|
2872
|
+
function Ct(t, s, i, h, a) {
|
|
2873
|
+
var e, n;
|
|
2874
|
+
e = t / s;
|
|
2875
|
+
for (var r = 0; r < 15; r++)
|
|
2876
|
+
if (n = (t - (s * e - i * Math.sin(2 * e) + h * Math.sin(4 * e) - a * Math.sin(6 * e))) / (s - 2 * i * Math.cos(2 * e) + 4 * h * Math.cos(4 * e) - 6 * a * Math.cos(6 * e)), e += n, Math.abs(n) <= 1e-10)
|
|
2877
|
+
return e;
|
|
2878
|
+
return NaN;
|
|
2879
|
+
}
|
|
2880
|
+
function za() {
|
|
2881
|
+
this.sphere || (this.e0 = dt(this.es), this.e1 = St(this.es), this.e2 = Et(this.es), this.e3 = Pt(this.es), this.ml0 = this.a * j(this.e0, this.e1, this.e2, this.e3, this.lat0));
|
|
2882
|
+
}
|
|
2883
|
+
function Ua(t) {
|
|
2884
|
+
var s, i, h = t.x, a = t.y;
|
|
2885
|
+
if (h = m(h - this.long0, this.over), this.sphere)
|
|
2886
|
+
s = this.a * Math.asin(Math.cos(a) * Math.sin(h)), i = this.a * (Math.atan2(Math.tan(a), Math.cos(h)) - this.lat0);
|
|
2887
|
+
else {
|
|
2888
|
+
var e = Math.sin(a), n = Math.cos(a), r = ts(this.a, this.e, e), o = Math.tan(a) * Math.tan(a), l = h * Math.cos(a), M = l * l, f = this.es * n * n / (1 - this.es), u = this.a * j(this.e0, this.e1, this.e2, this.e3, a);
|
|
2889
|
+
s = r * l * (1 - M * o * (1 / 6 - (8 - o + 8 * f) * M / 120)), i = u - this.ml0 + r * e / n * M * (0.5 + (5 - o + 6 * f) * M / 24);
|
|
2890
|
+
}
|
|
2891
|
+
return t.x = s + this.x0, t.y = i + this.y0, t;
|
|
2892
|
+
}
|
|
2893
|
+
function Da(t) {
|
|
2894
|
+
t.x -= this.x0, t.y -= this.y0;
|
|
2895
|
+
var s = t.x / this.a, i = t.y / this.a, h, a;
|
|
2896
|
+
if (this.sphere) {
|
|
2897
|
+
var e = i + this.lat0;
|
|
2898
|
+
h = Math.asin(Math.sin(e) * Math.cos(s)), a = Math.atan2(Math.tan(s), Math.cos(e));
|
|
2899
|
+
} else {
|
|
2900
|
+
var n = this.ml0 / this.a + i, r = Ct(n, this.e0, this.e1, this.e2, this.e3);
|
|
2901
|
+
if (Math.abs(Math.abs(r) - _) <= y)
|
|
2902
|
+
return t.x = this.long0, t.y = _, i < 0 && (t.y *= -1), t;
|
|
2903
|
+
var o = ts(this.a, this.e, Math.sin(r)), l = o * o * o / this.a / this.a * (1 - this.es), M = Math.pow(Math.tan(r), 2), f = s * this.a / o, u = f * f;
|
|
2904
|
+
h = r - o * Math.tan(r) / l * f * f * (0.5 - (1 + 3 * M) * f * f / 24), a = f * (1 - u * (M / 3 + (1 + 3 * M) * M * u / 15)) / Math.cos(r);
|
|
2905
|
+
}
|
|
2906
|
+
return t.x = m(a + this.long0, this.over), t.y = K(h), t;
|
|
2907
|
+
}
|
|
2908
|
+
var Wa = ["Cassini", "Cassini_Soldner", "cass"];
|
|
2909
|
+
const Qa = {
|
|
2910
|
+
init: za,
|
|
2911
|
+
forward: Ua,
|
|
2912
|
+
inverse: Da,
|
|
2913
|
+
names: Wa
|
|
2914
|
+
};
|
|
2915
|
+
function D(t, s) {
|
|
2916
|
+
var i;
|
|
2917
|
+
return t > 1e-7 ? (i = t * s, (1 - t * t) * (s / (1 - i * i) - 0.5 / t * Math.log((1 - i) / (1 + i)))) : 2 * s;
|
|
2918
|
+
}
|
|
2919
|
+
var pa = 0.3333333333333333, Xa = 0.17222222222222222, Ha = 0.10257936507936508, Ka = 0.06388888888888888, Va = 0.0664021164021164, Ja = 0.016415012942191543;
|
|
2920
|
+
function Gs(t) {
|
|
2921
|
+
var s, i = [];
|
|
2922
|
+
return i[0] = t * pa, s = t * t, i[0] += s * Xa, i[1] = s * Ka, s *= t, i[0] += s * Ha, i[1] += s * Va, i[2] = s * Ja, i;
|
|
2923
|
+
}
|
|
2924
|
+
function bs(t, s) {
|
|
2925
|
+
var i = t + t;
|
|
2926
|
+
return t + s[0] * Math.sin(i) + s[1] * Math.sin(i + i) + s[2] * Math.sin(i + i + i);
|
|
2927
|
+
}
|
|
2928
|
+
var Ut = 1, Dt = 2, Wt = 3, kt = 4;
|
|
2929
|
+
function Za() {
|
|
2930
|
+
var t = Math.abs(this.lat0);
|
|
2931
|
+
if (Math.abs(t - _) < y ? this.mode = this.lat0 < 0 ? Ut : Dt : Math.abs(t) < y ? this.mode = Wt : this.mode = kt, this.es > 0) {
|
|
2932
|
+
var s;
|
|
2933
|
+
switch (this.qp = D(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = Gs(this.es), this.mode) {
|
|
2934
|
+
case Dt:
|
|
2935
|
+
this.dd = 1;
|
|
2936
|
+
break;
|
|
2937
|
+
case Ut:
|
|
2938
|
+
this.dd = 1;
|
|
2939
|
+
break;
|
|
2940
|
+
case Wt:
|
|
2941
|
+
this.rq = Math.sqrt(0.5 * this.qp), this.dd = 1 / this.rq, this.xmf = 1, this.ymf = 0.5 * this.qp;
|
|
2942
|
+
break;
|
|
2943
|
+
case kt:
|
|
2944
|
+
this.rq = Math.sqrt(0.5 * this.qp), s = Math.sin(this.lat0), this.sinb1 = D(this.e, s) / this.qp, this.cosb1 = Math.sqrt(1 - this.sinb1 * this.sinb1), this.dd = Math.cos(this.lat0) / (Math.sqrt(1 - this.es * s * s) * this.rq * this.cosb1), this.ymf = (this.xmf = this.rq) / this.dd, this.xmf *= this.dd;
|
|
2945
|
+
break;
|
|
2946
|
+
}
|
|
2947
|
+
} else
|
|
2948
|
+
this.mode === kt && (this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0));
|
|
2949
|
+
}
|
|
2950
|
+
function Ya(t) {
|
|
2951
|
+
var s, i, h, a, e, n, r, o, l, M, f = t.x, u = t.y;
|
|
2952
|
+
if (f = m(f - this.long0, this.over), this.sphere) {
|
|
2953
|
+
if (e = Math.sin(u), M = Math.cos(u), h = Math.cos(f), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
|
|
2954
|
+
if (i = this.mode === this.EQUIT ? 1 + M * h : 1 + this.sinph0 * e + this.cosph0 * M * h, i <= y)
|
|
2955
|
+
return null;
|
|
2956
|
+
i = Math.sqrt(2 / i), s = i * M * Math.sin(f), i *= this.mode === this.EQUIT ? e : this.cosph0 * e - this.sinph0 * M * h;
|
|
2957
|
+
} else if (this.mode === this.N_POLE || this.mode === this.S_POLE) {
|
|
2958
|
+
if (this.mode === this.N_POLE && (h = -h), Math.abs(u + this.lat0) < y)
|
|
2959
|
+
return null;
|
|
2960
|
+
i = x - u * 0.5, i = 2 * (this.mode === this.S_POLE ? Math.cos(i) : Math.sin(i)), s = i * Math.sin(f), i *= h;
|
|
2961
|
+
}
|
|
2962
|
+
} else {
|
|
2963
|
+
switch (r = 0, o = 0, l = 0, h = Math.cos(f), a = Math.sin(f), e = Math.sin(u), n = D(this.e, e), (this.mode === this.OBLIQ || this.mode === this.EQUIT) && (r = n / this.qp, o = Math.sqrt(1 - r * r)), this.mode) {
|
|
2964
|
+
case this.OBLIQ:
|
|
2965
|
+
l = 1 + this.sinb1 * r + this.cosb1 * o * h;
|
|
2966
|
+
break;
|
|
2967
|
+
case this.EQUIT:
|
|
2968
|
+
l = 1 + o * h;
|
|
2969
|
+
break;
|
|
2970
|
+
case this.N_POLE:
|
|
2971
|
+
l = _ + u, n = this.qp - n;
|
|
2972
|
+
break;
|
|
2973
|
+
case this.S_POLE:
|
|
2974
|
+
l = u - _, n = this.qp + n;
|
|
2975
|
+
break;
|
|
2976
|
+
}
|
|
2977
|
+
if (Math.abs(l) < y)
|
|
2978
|
+
return null;
|
|
2979
|
+
switch (this.mode) {
|
|
2980
|
+
case this.OBLIQ:
|
|
2981
|
+
case this.EQUIT:
|
|
2982
|
+
l = Math.sqrt(2 / l), this.mode === this.OBLIQ ? i = this.ymf * l * (this.cosb1 * r - this.sinb1 * o * h) : i = (l = Math.sqrt(2 / (1 + o * h))) * r * this.ymf, s = this.xmf * l * o * a;
|
|
2983
|
+
break;
|
|
2984
|
+
case this.N_POLE:
|
|
2985
|
+
case this.S_POLE:
|
|
2986
|
+
n >= 0 ? (s = (l = Math.sqrt(n)) * a, i = h * (this.mode === this.S_POLE ? l : -l)) : s = i = 0;
|
|
2987
|
+
break;
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
return t.x = this.a * s + this.x0, t.y = this.a * i + this.y0, t;
|
|
2991
|
+
}
|
|
2992
|
+
function th(t) {
|
|
2993
|
+
t.x -= this.x0, t.y -= this.y0;
|
|
2994
|
+
var s = t.x / this.a, i = t.y / this.a, h, a, e, n, r, o, l;
|
|
2995
|
+
if (this.sphere) {
|
|
2996
|
+
var M = 0, f, u = 0;
|
|
2997
|
+
if (f = Math.sqrt(s * s + i * i), a = f * 0.5, a > 1)
|
|
2998
|
+
return null;
|
|
2999
|
+
switch (a = 2 * Math.asin(a), (this.mode === this.OBLIQ || this.mode === this.EQUIT) && (u = Math.sin(a), M = Math.cos(a)), this.mode) {
|
|
3000
|
+
case this.EQUIT:
|
|
3001
|
+
a = Math.abs(f) <= y ? 0 : Math.asin(i * u / f), s *= u, i = M * f;
|
|
3002
|
+
break;
|
|
3003
|
+
case this.OBLIQ:
|
|
3004
|
+
a = Math.abs(f) <= y ? this.lat0 : Math.asin(M * this.sinph0 + i * u * this.cosph0 / f), s *= u * this.cosph0, i = (M - Math.sin(a) * this.sinph0) * f;
|
|
3005
|
+
break;
|
|
3006
|
+
case this.N_POLE:
|
|
3007
|
+
i = -i, a = _ - a;
|
|
3008
|
+
break;
|
|
3009
|
+
case this.S_POLE:
|
|
3010
|
+
a -= _;
|
|
3011
|
+
break;
|
|
3012
|
+
}
|
|
3013
|
+
h = i === 0 && (this.mode === this.EQUIT || this.mode === this.OBLIQ) ? 0 : Math.atan2(s, i);
|
|
3014
|
+
} else {
|
|
3015
|
+
if (l = 0, this.mode === this.OBLIQ || this.mode === this.EQUIT) {
|
|
3016
|
+
if (s /= this.dd, i *= this.dd, o = Math.sqrt(s * s + i * i), o < y)
|
|
3017
|
+
return t.x = this.long0, t.y = this.lat0, t;
|
|
3018
|
+
n = 2 * Math.asin(0.5 * o / this.rq), e = Math.cos(n), s *= n = Math.sin(n), this.mode === this.OBLIQ ? (l = e * this.sinb1 + i * n * this.cosb1 / o, r = this.qp * l, i = o * this.cosb1 * e - i * this.sinb1 * n) : (l = i * n / o, r = this.qp * l, i = o * e);
|
|
3019
|
+
} else if (this.mode === this.N_POLE || this.mode === this.S_POLE) {
|
|
3020
|
+
if (this.mode === this.N_POLE && (i = -i), r = s * s + i * i, !r)
|
|
3021
|
+
return t.x = this.long0, t.y = this.lat0, t;
|
|
3022
|
+
l = 1 - r / this.qp, this.mode === this.S_POLE && (l = -l);
|
|
3023
|
+
}
|
|
3024
|
+
h = Math.atan2(s, i), a = bs(Math.asin(l), this.apa);
|
|
3025
|
+
}
|
|
3026
|
+
return t.x = m(this.long0 + h, this.over), t.y = a, t;
|
|
3027
|
+
}
|
|
3028
|
+
var sh = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"];
|
|
3029
|
+
const ih = {
|
|
3030
|
+
init: Za,
|
|
3031
|
+
forward: Ya,
|
|
3032
|
+
inverse: th,
|
|
3033
|
+
names: sh,
|
|
3034
|
+
S_POLE: Ut,
|
|
3035
|
+
N_POLE: Dt,
|
|
3036
|
+
EQUIT: Wt,
|
|
3037
|
+
OBLIQ: kt
|
|
3038
|
+
};
|
|
3039
|
+
function H(t) {
|
|
3040
|
+
return Math.abs(t) > 1 && (t = t > 1 ? 1 : -1), Math.asin(t);
|
|
3041
|
+
}
|
|
3042
|
+
function ah() {
|
|
3043
|
+
Math.abs(this.lat1 + this.lat2) < y || (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 = W(this.e3, this.sin_po, this.cos_po), this.qs1 = D(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 = W(this.e3, this.sin_po, this.cos_po), this.qs2 = D(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 = D(this.e3, this.sin_po), Math.abs(this.lat1 - this.lat2) > y ? 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);
|
|
3044
|
+
}
|
|
3045
|
+
function hh(t) {
|
|
3046
|
+
var s = t.x, i = t.y;
|
|
3047
|
+
this.sin_phi = Math.sin(i), this.cos_phi = Math.cos(i);
|
|
3048
|
+
var h = D(this.e3, this.sin_phi), a = this.a * Math.sqrt(this.c - this.ns0 * h) / this.ns0, e = this.ns0 * m(s - this.long0, this.over), n = a * Math.sin(e) + this.x0, r = this.rh - a * Math.cos(e) + this.y0;
|
|
3049
|
+
return t.x = n, t.y = r, t;
|
|
3050
|
+
}
|
|
3051
|
+
function eh(t) {
|
|
3052
|
+
var s, i, h, a, e, n;
|
|
3053
|
+
return t.x -= this.x0, t.y = this.rh - t.y + this.y0, this.ns0 >= 0 ? (s = Math.sqrt(t.x * t.x + t.y * t.y), h = 1) : (s = -Math.sqrt(t.x * t.x + t.y * t.y), h = -1), a = 0, s !== 0 && (a = Math.atan2(h * t.x, h * t.y)), h = s * this.ns0 / this.a, this.sphere ? n = Math.asin((this.c - h * h) / (2 * this.ns0)) : (i = (this.c - h * h) / this.ns0, n = this.phi1z(this.e3, i)), e = m(a / this.ns0 + this.long0, this.over), t.x = e, t.y = n, t;
|
|
3054
|
+
}
|
|
3055
|
+
function rh(t, s) {
|
|
3056
|
+
var i, h, a, e, n, r = H(0.5 * s);
|
|
3057
|
+
if (t < y)
|
|
3058
|
+
return r;
|
|
3059
|
+
for (var o = t * t, l = 1; l <= 25; l++)
|
|
3060
|
+
if (i = Math.sin(r), h = Math.cos(r), a = t * i, e = 1 - a * a, n = 0.5 * e * e / h * (s / (1 - o) - i / e + 0.5 / t * Math.log((1 - a) / (1 + a))), r = r + n, Math.abs(n) <= 1e-7)
|
|
3061
|
+
return r;
|
|
3062
|
+
return null;
|
|
3063
|
+
}
|
|
3064
|
+
var nh = ["Albers_Conic_Equal_Area", "Albers_Equal_Area", "Albers", "aea"];
|
|
3065
|
+
const oh = {
|
|
3066
|
+
init: ah,
|
|
3067
|
+
forward: hh,
|
|
3068
|
+
inverse: eh,
|
|
3069
|
+
names: nh,
|
|
3070
|
+
phi1z: rh
|
|
3071
|
+
};
|
|
3072
|
+
function lh() {
|
|
3073
|
+
this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0), this.infinity_dist = 1e3 * this.a, this.rc = 1;
|
|
3074
|
+
}
|
|
3075
|
+
function fh(t) {
|
|
3076
|
+
var s, i, h, a, e, n, r, o, l = t.x, M = t.y;
|
|
3077
|
+
return h = m(l - this.long0, this.over), s = Math.sin(M), i = Math.cos(M), a = Math.cos(h), n = this.sin_p14 * s + this.cos_p14 * i * a, e = 1, n > 0 || Math.abs(n) <= y ? (r = this.x0 + this.a * e * i * Math.sin(h) / n, o = this.y0 + this.a * e * (this.cos_p14 * s - this.sin_p14 * i * a) / n) : (r = this.x0 + this.infinity_dist * i * Math.sin(h), o = this.y0 + this.infinity_dist * (this.cos_p14 * s - this.sin_p14 * i * a)), t.x = r, t.y = o, t;
|
|
3078
|
+
}
|
|
3079
|
+
function Mh(t) {
|
|
3080
|
+
var s, i, h, a, e, n;
|
|
3081
|
+
return t.x = (t.x - this.x0) / this.a, t.y = (t.y - this.y0) / this.a, t.x /= this.k0, t.y /= this.k0, (s = Math.sqrt(t.x * t.x + t.y * t.y)) ? (a = Math.atan2(s, this.rc), i = Math.sin(a), h = Math.cos(a), n = H(h * this.sin_p14 + t.y * i * this.cos_p14 / s), e = Math.atan2(t.x * i, s * this.cos_p14 * h - t.y * this.sin_p14 * i), e = m(this.long0 + e, this.over)) : (n = this.phic0, e = 0), t.x = e, t.y = n, t;
|
|
3082
|
+
}
|
|
3083
|
+
var uh = ["gnom"];
|
|
3084
|
+
const _h = {
|
|
3085
|
+
init: lh,
|
|
3086
|
+
forward: fh,
|
|
3087
|
+
inverse: Mh,
|
|
3088
|
+
names: uh
|
|
3089
|
+
};
|
|
3090
|
+
function ch(t, s) {
|
|
3091
|
+
var i = 1 - (1 - t * t) / (2 * t) * Math.log((1 - t) / (1 + t));
|
|
3092
|
+
if (Math.abs(Math.abs(s) - i) < 1e-6)
|
|
3093
|
+
return s < 0 ? -1 * _ : _;
|
|
3094
|
+
for (var h = Math.asin(0.5 * s), a, e, n, r, o = 0; o < 30; o++)
|
|
3095
|
+
if (e = Math.sin(h), n = Math.cos(h), r = t * e, a = Math.pow(1 - r * r, 2) / (2 * n) * (s / (1 - t * t) - e / (1 - r * r) + 0.5 / t * Math.log((1 - r) / (1 + r))), h += a, Math.abs(a) <= 1e-10)
|
|
3096
|
+
return h;
|
|
3097
|
+
return NaN;
|
|
3098
|
+
}
|
|
3099
|
+
function vh() {
|
|
3100
|
+
this.sphere || (this.k0 = W(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)));
|
|
3101
|
+
}
|
|
3102
|
+
function gh(t) {
|
|
3103
|
+
var s = t.x, i = t.y, h, a, e = m(s - this.long0, this.over);
|
|
3104
|
+
if (this.sphere)
|
|
3105
|
+
h = this.x0 + this.a * e * Math.cos(this.lat_ts), a = this.y0 + this.a * Math.sin(i) / Math.cos(this.lat_ts);
|
|
3106
|
+
else {
|
|
3107
|
+
var n = D(this.e, Math.sin(i));
|
|
3108
|
+
h = this.x0 + this.a * this.k0 * e, a = this.y0 + this.a * n * 0.5 / this.k0;
|
|
3109
|
+
}
|
|
3110
|
+
return t.x = h, t.y = a, t;
|
|
3111
|
+
}
|
|
3112
|
+
function yh(t) {
|
|
3113
|
+
t.x -= this.x0, t.y -= this.y0;
|
|
3114
|
+
var s, i;
|
|
3115
|
+
return this.sphere ? (s = m(this.long0 + t.x / this.a / Math.cos(this.lat_ts), this.over), i = Math.asin(t.y / this.a * Math.cos(this.lat_ts))) : (i = ch(this.e, 2 * t.y * this.k0 / this.a), s = m(this.long0 + t.x / (this.a * this.k0), this.over)), t.x = s, t.y = i, t;
|
|
3116
|
+
}
|
|
3117
|
+
var mh = ["cea"];
|
|
3118
|
+
const wh = {
|
|
3119
|
+
init: vh,
|
|
3120
|
+
forward: gh,
|
|
3121
|
+
inverse: yh,
|
|
3122
|
+
names: mh
|
|
3123
|
+
};
|
|
3124
|
+
function dh() {
|
|
3125
|
+
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);
|
|
3126
|
+
}
|
|
3127
|
+
function Sh(t) {
|
|
3128
|
+
var s = t.x, i = t.y, h = m(s - this.long0, this.over), a = K(i - this.lat0);
|
|
3129
|
+
return t.x = this.x0 + this.a * h * this.rc, t.y = this.y0 + this.a * a, t;
|
|
3130
|
+
}
|
|
3131
|
+
function Eh(t) {
|
|
3132
|
+
var s = t.x, i = t.y;
|
|
3133
|
+
return t.x = m(this.long0 + (s - this.x0) / (this.a * this.rc), this.over), t.y = K(this.lat0 + (i - this.y0) / this.a), t;
|
|
3134
|
+
}
|
|
3135
|
+
var Ph = ["Equirectangular", "Equidistant_Cylindrical", "Equidistant_Cylindrical_Spherical", "eqc"];
|
|
3136
|
+
const xh = {
|
|
3137
|
+
init: dh,
|
|
3138
|
+
forward: Sh,
|
|
3139
|
+
inverse: Eh,
|
|
3140
|
+
names: Ph
|
|
3141
|
+
};
|
|
3142
|
+
var vs = 20;
|
|
3143
|
+
function Gh() {
|
|
3144
|
+
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = dt(this.es), this.e1 = St(this.es), this.e2 = Et(this.es), this.e3 = Pt(this.es), this.ml0 = this.a * j(this.e0, this.e1, this.e2, this.e3, this.lat0);
|
|
3145
|
+
}
|
|
3146
|
+
function bh(t) {
|
|
3147
|
+
var s = t.x, i = t.y, h, a, e, n = m(s - this.long0, this.over);
|
|
3148
|
+
if (e = n * Math.sin(i), this.sphere)
|
|
3149
|
+
Math.abs(i) <= y ? (h = this.a * n, a = -1 * this.a * this.lat0) : (h = this.a * Math.sin(e) / Math.tan(i), a = this.a * (K(i - this.lat0) + (1 - Math.cos(e)) / Math.tan(i)));
|
|
3150
|
+
else if (Math.abs(i) <= y)
|
|
3151
|
+
h = this.a * n, a = -1 * this.ml0;
|
|
3152
|
+
else {
|
|
3153
|
+
var r = ts(this.a, this.e, Math.sin(i)) / Math.tan(i);
|
|
3154
|
+
h = r * Math.sin(e), a = this.a * j(this.e0, this.e1, this.e2, this.e3, i) - this.ml0 + r * (1 - Math.cos(e));
|
|
3155
|
+
}
|
|
3156
|
+
return t.x = h + this.x0, t.y = a + this.y0, t;
|
|
3157
|
+
}
|
|
3158
|
+
function Nh(t) {
|
|
3159
|
+
var s, i, h, a, e, n, r, o, l;
|
|
3160
|
+
if (h = t.x - this.x0, a = t.y - this.y0, this.sphere)
|
|
3161
|
+
if (Math.abs(a + this.a * this.lat0) <= y)
|
|
3162
|
+
s = m(h / this.a + this.long0, this.over), i = 0;
|
|
3163
|
+
else {
|
|
3164
|
+
n = this.lat0 + a / this.a, r = h * h / this.a / this.a + n * n, o = n;
|
|
3165
|
+
var M;
|
|
3166
|
+
for (e = vs; e; --e)
|
|
3167
|
+
if (M = Math.tan(o), l = -1 * (n * (o * M + 1) - o - 0.5 * (o * o + r) * M) / ((o - n) / M - 1), o += l, Math.abs(l) <= y) {
|
|
3168
|
+
i = o;
|
|
3169
|
+
break;
|
|
3170
|
+
}
|
|
3171
|
+
s = m(this.long0 + Math.asin(h * Math.tan(o) / this.a) / Math.sin(i), this.over);
|
|
3172
|
+
}
|
|
3173
|
+
else if (Math.abs(a + this.ml0) <= y)
|
|
3174
|
+
i = 0, s = m(this.long0 + h / this.a, this.over);
|
|
3175
|
+
else {
|
|
3176
|
+
n = (this.ml0 + a) / this.a, r = h * h / this.a / this.a + n * n, o = n;
|
|
3177
|
+
var f, u, c, v, g;
|
|
3178
|
+
for (e = vs; e; --e)
|
|
3179
|
+
if (g = this.e * Math.sin(o), f = Math.sqrt(1 - g * g) * Math.tan(o), u = this.a * j(this.e0, this.e1, this.e2, this.e3, o), c = this.e0 - 2 * this.e1 * Math.cos(2 * o) + 4 * this.e2 * Math.cos(4 * o) - 6 * this.e3 * Math.cos(6 * o), v = u / this.a, l = (n * (f * v + 1) - v - 0.5 * f * (v * v + r)) / (this.es * Math.sin(2 * o) * (v * v + r - 2 * n * v) / (4 * f) + (n - v) * (f * c - 2 / Math.sin(2 * o)) - c), o -= l, Math.abs(l) <= y) {
|
|
3180
|
+
i = o;
|
|
3181
|
+
break;
|
|
3182
|
+
}
|
|
3183
|
+
f = Math.sqrt(1 - this.es * Math.pow(Math.sin(i), 2)) * Math.tan(i), s = m(this.long0 + Math.asin(h * f / this.a) / Math.sin(i), this.over);
|
|
3184
|
+
}
|
|
3185
|
+
return t.x = s, t.y = i, t;
|
|
3186
|
+
}
|
|
3187
|
+
var Ih = ["Polyconic", "American_Polyconic", "poly"];
|
|
3188
|
+
const Ah = {
|
|
3189
|
+
init: Gh,
|
|
3190
|
+
forward: bh,
|
|
3191
|
+
inverse: Nh,
|
|
3192
|
+
names: Ih
|
|
3193
|
+
};
|
|
3194
|
+
function kh() {
|
|
3195
|
+
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;
|
|
3196
|
+
}
|
|
3197
|
+
function qh(t) {
|
|
3198
|
+
var s, i = t.x, h = t.y, a = h - this.lat0, e = i - this.long0, n = a / Mt * 1e-5, r = e, o = 1, l = 0;
|
|
3199
|
+
for (s = 1; s <= 10; s++)
|
|
3200
|
+
o = o * n, l = l + this.A[s] * o;
|
|
3201
|
+
var M = l, f = r, u = 1, c = 0, v, g, w = 0, d = 0;
|
|
3202
|
+
for (s = 1; s <= 6; s++)
|
|
3203
|
+
v = u * M - c * f, g = c * M + u * f, u = v, c = g, w = w + this.B_re[s] * u - this.B_im[s] * c, d = d + this.B_im[s] * u + this.B_re[s] * c;
|
|
3204
|
+
return t.x = d * this.a + this.x0, t.y = w * this.a + this.y0, t;
|
|
3205
|
+
}
|
|
3206
|
+
function Rh(t) {
|
|
3207
|
+
var s, i = t.x, h = t.y, a = i - this.x0, e = h - this.y0, n = e / this.a, r = a / this.a, o = 1, l = 0, M, f, u = 0, c = 0;
|
|
3208
|
+
for (s = 1; s <= 6; s++)
|
|
3209
|
+
M = o * n - l * r, f = l * n + o * r, o = M, l = f, u = u + this.C_re[s] * o - this.C_im[s] * l, c = c + this.C_im[s] * o + this.C_re[s] * l;
|
|
3210
|
+
for (var v = 0; v < this.iterations; v++) {
|
|
3211
|
+
var g = u, w = c, d, E, S = n, P = r;
|
|
3212
|
+
for (s = 2; s <= 6; s++)
|
|
3213
|
+
d = g * u - w * c, E = w * u + g * c, g = d, w = E, S = S + (s - 1) * (this.B_re[s] * g - this.B_im[s] * w), P = P + (s - 1) * (this.B_im[s] * g + this.B_re[s] * w);
|
|
3214
|
+
g = 1, w = 0;
|
|
3215
|
+
var b = this.B_re[1], N = this.B_im[1];
|
|
3216
|
+
for (s = 2; s <= 6; s++)
|
|
3217
|
+
d = g * u - w * c, E = w * u + g * c, g = d, w = E, b = b + s * (this.B_re[s] * g - this.B_im[s] * w), N = N + s * (this.B_im[s] * g + this.B_re[s] * w);
|
|
3218
|
+
var q = b * b + N * N;
|
|
3219
|
+
u = (S * b + P * N) / q, c = (P * b - S * N) / q;
|
|
3220
|
+
}
|
|
3221
|
+
var F = u, R = c, Q = 1, B = 0;
|
|
3222
|
+
for (s = 1; s <= 9; s++)
|
|
3223
|
+
Q = Q * F, B = B + this.D[s] * Q;
|
|
3224
|
+
var tt = this.lat0 + B * Mt * 1e5, st = this.long0 + R;
|
|
3225
|
+
return t.x = st, t.y = tt, t;
|
|
3226
|
+
}
|
|
3227
|
+
var Ch = ["New_Zealand_Map_Grid", "nzmg"];
|
|
3228
|
+
const $h = {
|
|
3229
|
+
init: kh,
|
|
3230
|
+
forward: qh,
|
|
3231
|
+
inverse: Rh,
|
|
3232
|
+
names: Ch
|
|
3233
|
+
};
|
|
3234
|
+
function jh() {
|
|
3235
|
+
}
|
|
3236
|
+
function Oh(t) {
|
|
3237
|
+
var s = t.x, i = t.y, h = m(s - this.long0, this.over), a = this.x0 + this.a * h, e = this.y0 + this.a * Math.log(Math.tan(Math.PI / 4 + i / 2.5)) * 1.25;
|
|
3238
|
+
return t.x = a, t.y = e, t;
|
|
3239
|
+
}
|
|
3240
|
+
function Lh(t) {
|
|
3241
|
+
t.x -= this.x0, t.y -= this.y0;
|
|
3242
|
+
var s = m(this.long0 + t.x / this.a, this.over), i = 2.5 * (Math.atan(Math.exp(0.8 * t.y / this.a)) - Math.PI / 4);
|
|
3243
|
+
return t.x = s, t.y = i, t;
|
|
3244
|
+
}
|
|
3245
|
+
var Th = ["Miller_Cylindrical", "mill"];
|
|
3246
|
+
const Fh = {
|
|
3247
|
+
init: jh,
|
|
3248
|
+
forward: Oh,
|
|
3249
|
+
inverse: Lh,
|
|
3250
|
+
names: Th
|
|
3251
|
+
};
|
|
3252
|
+
var Bh = 20;
|
|
3253
|
+
function zh() {
|
|
3254
|
+
this.long0 = this.long0 || 0, 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 = Ht(this.es);
|
|
3255
|
+
}
|
|
3256
|
+
function Ns(t) {
|
|
3257
|
+
var s, i, h = t.x, a = t.y;
|
|
3258
|
+
if (h = m(h - this.long0, this.over), this.sphere) {
|
|
3259
|
+
if (!this.m)
|
|
3260
|
+
a = this.n !== 1 ? Math.asin(this.n * Math.sin(a)) : a;
|
|
3261
|
+
else
|
|
3262
|
+
for (var e = this.n * Math.sin(a), n = Bh; n; --n) {
|
|
3263
|
+
var r = (this.m * a + Math.sin(a) - e) / (this.m + Math.cos(a));
|
|
3264
|
+
if (a -= r, Math.abs(r) < y)
|
|
3265
|
+
break;
|
|
3266
|
+
}
|
|
3267
|
+
s = this.a * this.C_x * h * (this.m + Math.cos(a)), i = this.a * this.C_y * a;
|
|
3268
|
+
} else {
|
|
3269
|
+
var o = Math.sin(a), l = Math.cos(a);
|
|
3270
|
+
i = this.a * ot(a, o, l, this.en), s = this.a * h * l / Math.sqrt(1 - this.es * o * o);
|
|
3271
|
+
}
|
|
3272
|
+
return t.x = s, t.y = i, t;
|
|
3273
|
+
}
|
|
3274
|
+
function Is(t) {
|
|
3275
|
+
var s, i, h, a;
|
|
3276
|
+
return t.x -= this.x0, h = t.x / this.a, t.y -= this.y0, s = t.y / this.a, this.sphere ? (s /= this.C_y, h = h / (this.C_x * (this.m + Math.cos(s))), this.m ? s = H((this.m * s + Math.sin(s)) / this.n) : this.n !== 1 && (s = H(Math.sin(s) / this.n)), h = m(h + this.long0, this.over), s = K(s)) : (s = Kt(t.y / this.a, this.es, this.en), a = Math.abs(s), a < _ ? (a = Math.sin(s), i = this.long0 + t.x * Math.sqrt(1 - this.es * a * a) / (this.a * Math.cos(s)), h = m(i, this.over)) : a - y < _ && (h = this.long0)), t.x = h, t.y = s, t;
|
|
3277
|
+
}
|
|
3278
|
+
var Uh = ["Sinusoidal", "sinu"];
|
|
3279
|
+
const Dh = {
|
|
3280
|
+
init: zh,
|
|
3281
|
+
forward: Ns,
|
|
3282
|
+
inverse: Is,
|
|
3283
|
+
names: Uh
|
|
3284
|
+
};
|
|
3285
|
+
function Wh() {
|
|
3286
|
+
this.sphere = !0, this.b = this.a, this.m = 1, this.n = 2.5707963267948966, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1);
|
|
3287
|
+
}
|
|
3288
|
+
var Qh = Ns, ph = Is, Xh = ["Eckert_VI", "eck6"];
|
|
3289
|
+
const Hh = {
|
|
3290
|
+
init: Wh,
|
|
3291
|
+
forward: Qh,
|
|
3292
|
+
inverse: ph,
|
|
3293
|
+
names: Xh
|
|
3294
|
+
};
|
|
3295
|
+
function Kh() {
|
|
3296
|
+
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;
|
|
3297
|
+
}
|
|
3298
|
+
function Vh(t) {
|
|
3299
|
+
for (var s = t.x, i = t.y, h = m(s - this.long0, this.over), a = i, e = Math.PI * Math.sin(i); ; ) {
|
|
3300
|
+
var n = -(a + Math.sin(a) - e) / (1 + Math.cos(a));
|
|
3301
|
+
if (a += n, Math.abs(n) < y)
|
|
3302
|
+
break;
|
|
3303
|
+
}
|
|
3304
|
+
a /= 2, Math.PI / 2 - Math.abs(i) < y && (h = 0);
|
|
3305
|
+
var r = 0.900316316158 * this.a * h * Math.cos(a) + this.x0, o = 1.4142135623731 * this.a * Math.sin(a) + this.y0;
|
|
3306
|
+
return t.x = r, t.y = o, t;
|
|
3307
|
+
}
|
|
3308
|
+
function Jh(t) {
|
|
3309
|
+
var s, i;
|
|
3310
|
+
t.x -= this.x0, t.y -= this.y0, i = t.y / (1.4142135623731 * this.a), Math.abs(i) > 0.999999999999 && (i = 0.999999999999), s = Math.asin(i);
|
|
3311
|
+
var h = m(this.long0 + t.x / (0.900316316158 * this.a * Math.cos(s)), this.over);
|
|
3312
|
+
h < -Math.PI && (h = -Math.PI), h > Math.PI && (h = Math.PI), i = (2 * s + Math.sin(2 * s)) / Math.PI, Math.abs(i) > 1 && (i = 1);
|
|
3313
|
+
var a = Math.asin(i);
|
|
3314
|
+
return t.x = h, t.y = a, t;
|
|
3315
|
+
}
|
|
3316
|
+
var Zh = ["Mollweide", "moll"];
|
|
3317
|
+
const Yh = {
|
|
3318
|
+
init: Kh,
|
|
3319
|
+
forward: Vh,
|
|
3320
|
+
inverse: Jh,
|
|
3321
|
+
names: Zh
|
|
3322
|
+
};
|
|
3323
|
+
function t0() {
|
|
3324
|
+
Math.abs(this.lat1 + this.lat2) < y || (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 = dt(this.es), this.e1 = St(this.es), this.e2 = Et(this.es), this.e3 = Pt(this.es), this.sin_phi = Math.sin(this.lat1), this.cos_phi = Math.cos(this.lat1), this.ms1 = W(this.e, this.sin_phi, this.cos_phi), this.ml1 = j(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < y ? this.ns = this.sin_phi : (this.sin_phi = Math.sin(this.lat2), this.cos_phi = Math.cos(this.lat2), this.ms2 = W(this.e, this.sin_phi, this.cos_phi), this.ml2 = j(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 = j(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
|
|
3325
|
+
}
|
|
3326
|
+
function s0(t) {
|
|
3327
|
+
var s = t.x, i = t.y, h;
|
|
3328
|
+
if (this.sphere)
|
|
3329
|
+
h = this.a * (this.g - i);
|
|
3330
|
+
else {
|
|
3331
|
+
var a = j(this.e0, this.e1, this.e2, this.e3, i);
|
|
3332
|
+
h = this.a * (this.g - a);
|
|
3333
|
+
}
|
|
3334
|
+
var e = this.ns * m(s - this.long0, this.over), n = this.x0 + h * Math.sin(e), r = this.y0 + this.rh - h * Math.cos(e);
|
|
3335
|
+
return t.x = n, t.y = r, t;
|
|
3336
|
+
}
|
|
3337
|
+
function i0(t) {
|
|
3338
|
+
t.x -= this.x0, t.y = this.rh - t.y + this.y0;
|
|
3339
|
+
var s, i, h, a;
|
|
3340
|
+
this.ns >= 0 ? (i = Math.sqrt(t.x * t.x + t.y * t.y), s = 1) : (i = -Math.sqrt(t.x * t.x + t.y * t.y), s = -1);
|
|
3341
|
+
var e = 0;
|
|
3342
|
+
if (i !== 0 && (e = Math.atan2(s * t.x, s * t.y)), this.sphere)
|
|
3343
|
+
return a = m(this.long0 + e / this.ns, this.over), h = K(this.g - i / this.a), t.x = a, t.y = h, t;
|
|
3344
|
+
var n = this.g - i / this.a;
|
|
3345
|
+
return h = Ct(n, this.e0, this.e1, this.e2, this.e3), a = m(this.long0 + e / this.ns, this.over), t.x = a, t.y = h, t;
|
|
3346
|
+
}
|
|
3347
|
+
var a0 = ["Equidistant_Conic", "eqdc"];
|
|
3348
|
+
const h0 = {
|
|
3349
|
+
init: t0,
|
|
3350
|
+
forward: s0,
|
|
3351
|
+
inverse: i0,
|
|
3352
|
+
names: a0
|
|
3353
|
+
};
|
|
3354
|
+
function e0() {
|
|
3355
|
+
this.R = this.a;
|
|
3356
|
+
}
|
|
3357
|
+
function r0(t) {
|
|
3358
|
+
var s = t.x, i = t.y, h = m(s - this.long0, this.over), a, e;
|
|
3359
|
+
Math.abs(i) <= y && (a = this.x0 + this.R * h, e = this.y0);
|
|
3360
|
+
var n = H(2 * Math.abs(i / Math.PI));
|
|
3361
|
+
(Math.abs(h) <= y || Math.abs(Math.abs(i) - _) <= y) && (a = this.x0, i >= 0 ? e = this.y0 + Math.PI * this.R * Math.tan(0.5 * n) : e = this.y0 + Math.PI * this.R * -Math.tan(0.5 * n));
|
|
3362
|
+
var r = 0.5 * Math.abs(Math.PI / h - h / Math.PI), o = r * r, l = Math.sin(n), M = Math.cos(n), f = M / (l + M - 1), u = f * f, c = f * (2 / l - 1), v = c * c, g = Math.PI * this.R * (r * (f - v) + Math.sqrt(o * (f - v) * (f - v) - (v + o) * (u - v))) / (v + o);
|
|
3363
|
+
h < 0 && (g = -g), a = this.x0 + g;
|
|
3364
|
+
var w = o + f;
|
|
3365
|
+
return g = Math.PI * this.R * (c * w - r * Math.sqrt((v + o) * (o + 1) - w * w)) / (v + o), i >= 0 ? e = this.y0 + g : e = this.y0 - g, t.x = a, t.y = e, t;
|
|
3366
|
+
}
|
|
3367
|
+
function n0(t) {
|
|
3368
|
+
var s, i, h, a, e, n, r, o, l, M, f, u, c;
|
|
3369
|
+
return t.x -= this.x0, t.y -= this.y0, f = Math.PI * this.R, h = t.x / f, a = t.y / f, e = h * h + a * a, n = -Math.abs(a) * (1 + e), r = n - 2 * a * a + h * h, o = -2 * n + 1 + 2 * a * a + e * e, c = a * a / o + (2 * r * r * r / o / o / o - 9 * n * r / o / o) / 27, l = (n - r * r / 3 / o) / o, M = 2 * Math.sqrt(-l / 3), f = 3 * c / l / M, Math.abs(f) > 1 && (f >= 0 ? f = 1 : f = -1), u = Math.acos(f) / 3, t.y >= 0 ? i = (-M * Math.cos(u + Math.PI / 3) - r / 3 / o) * Math.PI : i = -(-M * Math.cos(u + Math.PI / 3) - r / 3 / o) * Math.PI, Math.abs(h) < y ? s = this.long0 : s = m(this.long0 + Math.PI * (e - 1 + Math.sqrt(1 + 2 * (h * h - a * a) + e * e)) / 2 / h, this.over), t.x = s, t.y = i, t;
|
|
3370
|
+
}
|
|
3371
|
+
var o0 = ["Van_der_Grinten_I", "VanDerGrinten", "Van_der_Grinten", "vandg"];
|
|
3372
|
+
const l0 = {
|
|
3373
|
+
init: e0,
|
|
3374
|
+
forward: r0,
|
|
3375
|
+
inverse: n0,
|
|
3376
|
+
names: o0
|
|
3377
|
+
};
|
|
3378
|
+
function f0(t, s, i, h, a, e) {
|
|
3379
|
+
const n = h - s, r = Math.atan((1 - e) * Math.tan(t)), o = Math.atan((1 - e) * Math.tan(i)), l = Math.sin(r), M = Math.cos(r), f = Math.sin(o), u = Math.cos(o);
|
|
3380
|
+
let c = n, v, g = 100, w, d, E, S, P, b, N, q, F, R, Q, B, tt, st;
|
|
3381
|
+
do {
|
|
3382
|
+
if (w = Math.sin(c), d = Math.cos(c), E = Math.sqrt(
|
|
3383
|
+
u * w * (u * w) + (M * f - l * u * d) * (M * f - l * u * d)
|
|
3384
|
+
), E === 0)
|
|
3385
|
+
return { azi1: 0, s12: 0 };
|
|
3386
|
+
S = l * f + M * u * d, P = Math.atan2(E, S), b = M * u * w / E, N = 1 - b * b, q = N !== 0 ? S - 2 * l * f / N : 0, F = e / 16 * N * (4 + e * (4 - 3 * N)), v = c, c = n + (1 - F) * e * b * (P + F * E * (q + F * S * (-1 + 2 * q * q)));
|
|
3387
|
+
} while (Math.abs(c - v) > 1e-12 && --g > 0);
|
|
3388
|
+
return g === 0 ? { azi1: NaN, s12: NaN } : (R = N * (a * a - a * (1 - e) * (a * (1 - e))) / (a * (1 - e) * (a * (1 - e))), Q = 1 + R / 16384 * (4096 + R * (-768 + R * (320 - 175 * R))), B = R / 1024 * (256 + R * (-128 + R * (74 - 47 * R))), tt = B * E * (q + B / 4 * (S * (-1 + 2 * q * q) - B / 6 * q * (-3 + 4 * E * E) * (-3 + 4 * q * q))), st = a * (1 - e) * Q * (P - tt), { azi1: Math.atan2(u * w, M * f - l * u * d), s12: st });
|
|
3389
|
+
}
|
|
3390
|
+
function M0(t, s, i, h, a, e) {
|
|
3391
|
+
const n = Math.atan((1 - e) * Math.tan(t)), r = Math.sin(n), o = Math.cos(n), l = Math.sin(i), M = Math.cos(i), f = Math.atan2(r, o * M), u = o * l, c = 1 - u * u, v = c * (a * a - a * (1 - e) * (a * (1 - e))) / (a * (1 - e) * (a * (1 - e))), g = 1 + v / 16384 * (4096 + v * (-768 + v * (320 - 175 * v))), w = v / 1024 * (256 + v * (-128 + v * (74 - 47 * v)));
|
|
3392
|
+
let d = h / (a * (1 - e) * g), E, S = 100, P, b, N, q;
|
|
3393
|
+
do
|
|
3394
|
+
P = Math.cos(2 * f + d), b = Math.sin(d), N = Math.cos(d), q = w * b * (P + w / 4 * (N * (-1 + 2 * P * P) - w / 6 * P * (-3 + 4 * b * b) * (-3 + 4 * P * P))), E = d, d = h / (a * (1 - e) * g) + q;
|
|
3395
|
+
while (Math.abs(d - E) > 1e-12 && --S > 0);
|
|
3396
|
+
if (S === 0)
|
|
3397
|
+
return { lat2: NaN, lon2: NaN };
|
|
3398
|
+
const F = r * b - o * N * M, R = Math.atan2(
|
|
3399
|
+
r * N + o * b * M,
|
|
3400
|
+
(1 - e) * Math.sqrt(u * u + F * F)
|
|
3401
|
+
), Q = Math.atan2(
|
|
3402
|
+
b * l,
|
|
3403
|
+
o * N - r * b * M
|
|
3404
|
+
), B = e / 16 * c * (4 + e * (4 - 3 * c)), tt = Q - (1 - B) * e * u * (d + B * b * (P + B * N * (-1 + 2 * P * P))), st = s + tt;
|
|
3405
|
+
return { lat2: R, lon2: st };
|
|
3406
|
+
}
|
|
3407
|
+
function u0() {
|
|
3408
|
+
this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0), this.f = this.es / (1 + Math.sqrt(1 - this.es));
|
|
3409
|
+
}
|
|
3410
|
+
function _0(t) {
|
|
3411
|
+
var s = t.x, i = t.y, h = Math.sin(t.y), a = Math.cos(t.y), e = m(s - this.long0, this.over), n, r, o, l, M, f, u, c, v, g, w;
|
|
3412
|
+
return this.sphere ? Math.abs(this.sin_p12 - 1) <= y ? (t.x = this.x0 + this.a * (_ - i) * Math.sin(e), t.y = this.y0 - this.a * (_ - i) * Math.cos(e), t) : Math.abs(this.sin_p12 + 1) <= y ? (t.x = this.x0 + this.a * (_ + i) * Math.sin(e), t.y = this.y0 + this.a * (_ + i) * Math.cos(e), t) : (v = this.sin_p12 * h + this.cos_p12 * a * Math.cos(e), u = Math.acos(v), c = u ? u / Math.sin(u) : 1, t.x = this.x0 + this.a * c * a * Math.sin(e), t.y = this.y0 + this.a * c * (this.cos_p12 * h - this.sin_p12 * a * Math.cos(e)), t) : (n = dt(this.es), r = St(this.es), o = Et(this.es), l = Pt(this.es), Math.abs(this.sin_p12 - 1) <= y ? (M = this.a * j(n, r, o, l, _), f = this.a * j(n, r, o, l, i), t.x = this.x0 + (M - f) * Math.sin(e), t.y = this.y0 - (M - f) * Math.cos(e), t) : Math.abs(this.sin_p12 + 1) <= y ? (M = this.a * j(n, r, o, l, _), f = this.a * j(n, r, o, l, i), t.x = this.x0 + (M + f) * Math.sin(e), t.y = this.y0 + (M + f) * Math.cos(e), t) : Math.abs(s) < y && Math.abs(i - this.lat0) < y ? (t.x = t.y = 0, t) : (g = f0(this.lat0, this.long0, i, s, this.a, this.f), w = g.azi1, t.x = g.s12 * Math.sin(w), t.y = g.s12 * Math.cos(w), t));
|
|
3413
|
+
}
|
|
3414
|
+
function c0(t) {
|
|
3415
|
+
t.x -= this.x0, t.y -= this.y0;
|
|
3416
|
+
var s, i, h, a, e, n, r, o, l, M, f, u, c, v, g, w;
|
|
3417
|
+
return this.sphere ? (s = Math.sqrt(t.x * t.x + t.y * t.y), s > 2 * _ * this.a ? void 0 : (i = s / this.a, h = Math.sin(i), a = Math.cos(i), e = this.long0, Math.abs(s) <= y ? n = this.lat0 : (n = H(a * this.sin_p12 + t.y * h * this.cos_p12 / s), r = Math.abs(this.lat0) - _, Math.abs(r) <= y ? this.lat0 >= 0 ? e = m(this.long0 + Math.atan2(t.x, -t.y), this.over) : e = m(this.long0 - Math.atan2(-t.x, t.y), this.over) : e = m(this.long0 + Math.atan2(t.x * h, s * this.cos_p12 * a - t.y * this.sin_p12 * h), this.over)), t.x = e, t.y = n, t)) : (o = dt(this.es), l = St(this.es), M = Et(this.es), f = Pt(this.es), Math.abs(this.sin_p12 - 1) <= y ? (u = this.a * j(o, l, M, f, _), s = Math.sqrt(t.x * t.x + t.y * t.y), c = u - s, n = Ct(c / this.a, o, l, M, f), e = m(this.long0 + Math.atan2(t.x, -1 * t.y), this.over), t.x = e, t.y = n, t) : Math.abs(this.sin_p12 + 1) <= y ? (u = this.a * j(o, l, M, f, _), s = Math.sqrt(t.x * t.x + t.y * t.y), c = s - u, n = Ct(c / this.a, o, l, M, f), e = m(this.long0 + Math.atan2(t.x, t.y), this.over), t.x = e, t.y = n, t) : (v = Math.atan2(t.x, t.y), g = Math.sqrt(t.x * t.x + t.y * t.y), w = M0(this.lat0, this.long0, v, g, this.a, this.f), t.x = w.lon2, t.y = w.lat2, t));
|
|
3418
|
+
}
|
|
3419
|
+
var v0 = ["Azimuthal_Equidistant", "aeqd"];
|
|
3420
|
+
const g0 = {
|
|
3421
|
+
init: u0,
|
|
3422
|
+
forward: _0,
|
|
3423
|
+
inverse: c0,
|
|
3424
|
+
names: v0
|
|
3425
|
+
};
|
|
3426
|
+
function y0() {
|
|
3427
|
+
this.sin_p14 = Math.sin(this.lat0 || 0), this.cos_p14 = Math.cos(this.lat0 || 0);
|
|
3428
|
+
}
|
|
3429
|
+
function m0(t) {
|
|
3430
|
+
var s, i, h, a, e, n, r, o, l = t.x, M = t.y;
|
|
3431
|
+
return h = m(l - (this.long0 || 0), this.over), s = Math.sin(M), i = Math.cos(M), a = Math.cos(h), n = this.sin_p14 * s + this.cos_p14 * i * a, e = 1, (n > 0 || Math.abs(n) <= y) && (r = this.a * e * i * Math.sin(h), o = (this.y0 || 0) + this.a * e * (this.cos_p14 * s - this.sin_p14 * i * a)), t.x = r, t.y = o, t;
|
|
3432
|
+
}
|
|
3433
|
+
function w0(t) {
|
|
3434
|
+
var s, i, h, a, e, n, r, o, l;
|
|
3435
|
+
return t.x -= this.x0 || 0, t.y -= this.y0 || 0, s = Math.sqrt(t.x * t.x + t.y * t.y), i = H(s / this.a), h = Math.sin(i), a = Math.cos(i), o = this.long0 || 0, l = this.lat0 || 0, n = o, Math.abs(s) <= y ? (r = l, t.x = n, t.y = r, t) : (r = H(a * this.sin_p14 + t.y * h * this.cos_p14 / s), e = Math.abs(l) - _, Math.abs(e) <= y ? (l >= 0 ? n = m(o + Math.atan2(t.x, -t.y), this.over) : n = m(o - Math.atan2(-t.x, t.y), this.over), t.x = n, t.y = r, t) : (n = m(o + Math.atan2(t.x * h, s * this.cos_p14 * a - t.y * this.sin_p14 * h), this.over), t.x = n, t.y = r, t));
|
|
3436
|
+
}
|
|
3437
|
+
var d0 = ["ortho"];
|
|
3438
|
+
const S0 = {
|
|
3439
|
+
init: y0,
|
|
3440
|
+
forward: m0,
|
|
3441
|
+
inverse: w0,
|
|
3442
|
+
names: d0
|
|
3443
|
+
};
|
|
3444
|
+
var I = {
|
|
3445
|
+
FRONT: 1,
|
|
3446
|
+
RIGHT: 2,
|
|
3447
|
+
BACK: 3,
|
|
3448
|
+
LEFT: 4,
|
|
3449
|
+
TOP: 5,
|
|
3450
|
+
BOTTOM: 6
|
|
3451
|
+
}, G = {
|
|
3452
|
+
AREA_0: 1,
|
|
3453
|
+
AREA_1: 2,
|
|
3454
|
+
AREA_2: 3,
|
|
3455
|
+
AREA_3: 4
|
|
3456
|
+
};
|
|
3457
|
+
function E0() {
|
|
3458
|
+
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 >= _ - x / 2 ? this.face = I.TOP : this.lat0 <= -(_ - x / 2) ? this.face = I.BOTTOM : Math.abs(this.long0) <= x ? this.face = I.FRONT : Math.abs(this.long0) <= _ + x ? this.face = this.long0 > 0 ? I.RIGHT : I.LEFT : this.face = I.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);
|
|
3459
|
+
}
|
|
3460
|
+
function P0(t) {
|
|
3461
|
+
var s = { x: 0, y: 0 }, i, h, a, e, n, r, o = { value: 0 };
|
|
3462
|
+
if (t.x -= this.long0, this.es !== 0 ? i = Math.atan(this.one_minus_f_squared * Math.tan(t.y)) : i = t.y, h = t.x, this.face === I.TOP)
|
|
3463
|
+
e = _ - i, h >= x && h <= _ + x ? (o.value = G.AREA_0, a = h - _) : h > _ + x || h <= -(_ + x) ? (o.value = G.AREA_1, a = h > 0 ? h - k : h + k) : h > -(_ + x) && h <= -x ? (o.value = G.AREA_2, a = h + _) : (o.value = G.AREA_3, a = h);
|
|
3464
|
+
else if (this.face === I.BOTTOM)
|
|
3465
|
+
e = _ + i, h >= x && h <= _ + x ? (o.value = G.AREA_0, a = -h + _) : h < x && h >= -x ? (o.value = G.AREA_1, a = -h) : h < -x && h >= -(_ + x) ? (o.value = G.AREA_2, a = -h - _) : (o.value = G.AREA_3, a = h > 0 ? -h + k : -h - k);
|
|
3466
|
+
else {
|
|
3467
|
+
var l, M, f, u, c, v, g;
|
|
3468
|
+
this.face === I.RIGHT ? h = rt(h, +_) : this.face === I.BACK ? h = rt(h, +k) : this.face === I.LEFT && (h = rt(h, -_)), u = Math.sin(i), c = Math.cos(i), v = Math.sin(h), g = Math.cos(h), l = c * g, M = c * v, f = u, this.face === I.FRONT ? (e = Math.acos(l), a = bt(e, f, M, o)) : this.face === I.RIGHT ? (e = Math.acos(M), a = bt(e, f, -l, o)) : this.face === I.BACK ? (e = Math.acos(-l), a = bt(e, f, -M, o)) : this.face === I.LEFT ? (e = Math.acos(-M), a = bt(e, f, l, o)) : (e = a = 0, o.value = G.AREA_0);
|
|
3469
|
+
}
|
|
3470
|
+
return r = Math.atan(12 / k * (a + Math.acos(Math.sin(a) * Math.cos(x)) - _)), n = Math.sqrt((1 - Math.cos(e)) / (Math.cos(r) * Math.cos(r)) / (1 - Math.cos(Math.atan(1 / Math.cos(a))))), o.value === G.AREA_1 ? r += _ : o.value === G.AREA_2 ? r += k : o.value === G.AREA_3 && (r += 1.5 * k), s.x = n * Math.cos(r), s.y = n * Math.sin(r), s.x = s.x * this.a + this.x0, s.y = s.y * this.a + this.y0, t.x = s.x, t.y = s.y, t;
|
|
3471
|
+
}
|
|
3472
|
+
function x0(t) {
|
|
3473
|
+
var s = { lam: 0, phi: 0 }, i, h, a, e, n, r, o, l, M, f = { value: 0 };
|
|
3474
|
+
if (t.x = (t.x - this.x0) / this.a, t.y = (t.y - this.y0) / this.a, h = Math.atan(Math.sqrt(t.x * t.x + t.y * t.y)), i = Math.atan2(t.y, t.x), t.x >= 0 && t.x >= Math.abs(t.y) ? f.value = G.AREA_0 : t.y >= 0 && t.y >= Math.abs(t.x) ? (f.value = G.AREA_1, i -= _) : t.x < 0 && -t.x >= Math.abs(t.y) ? (f.value = G.AREA_2, i = i < 0 ? i + k : i - k) : (f.value = G.AREA_3, i += _), M = k / 12 * Math.tan(i), n = Math.sin(M) / (Math.cos(M) - 1 / Math.sqrt(2)), r = Math.atan(n), a = Math.cos(i), e = Math.tan(h), o = 1 - a * a * e * e * (1 - Math.cos(Math.atan(1 / Math.cos(r)))), o < -1 ? o = -1 : o > 1 && (o = 1), this.face === I.TOP)
|
|
3475
|
+
l = Math.acos(o), s.phi = _ - l, f.value === G.AREA_0 ? s.lam = r + _ : f.value === G.AREA_1 ? s.lam = r < 0 ? r + k : r - k : f.value === G.AREA_2 ? s.lam = r - _ : s.lam = r;
|
|
3476
|
+
else if (this.face === I.BOTTOM)
|
|
3477
|
+
l = Math.acos(o), s.phi = l - _, f.value === G.AREA_0 ? s.lam = -r + _ : f.value === G.AREA_1 ? s.lam = -r : f.value === G.AREA_2 ? s.lam = -r - _ : s.lam = r < 0 ? -r - k : -r + k;
|
|
3478
|
+
else {
|
|
3479
|
+
var u, c, v;
|
|
3480
|
+
u = o, M = u * u, M >= 1 ? v = 0 : v = Math.sqrt(1 - M) * Math.sin(r), M += v * v, M >= 1 ? c = 0 : c = Math.sqrt(1 - M), f.value === G.AREA_1 ? (M = c, c = -v, v = M) : f.value === G.AREA_2 ? (c = -c, v = -v) : f.value === G.AREA_3 && (M = c, c = v, v = -M), this.face === I.RIGHT ? (M = u, u = -c, c = M) : this.face === I.BACK ? (u = -u, c = -c) : this.face === I.LEFT && (M = u, u = c, c = -M), s.phi = Math.acos(-v) - _, s.lam = Math.atan2(c, u), this.face === I.RIGHT ? s.lam = rt(s.lam, -_) : this.face === I.BACK ? s.lam = rt(s.lam, -k) : this.face === I.LEFT && (s.lam = rt(s.lam, +_));
|
|
3481
|
+
}
|
|
3482
|
+
if (this.es !== 0) {
|
|
3483
|
+
var g, w, d;
|
|
3484
|
+
g = s.phi < 0 ? 1 : 0, w = Math.tan(s.phi), d = this.b / Math.sqrt(w * w + this.one_minus_f_squared), s.phi = Math.atan(Math.sqrt(this.a * this.a - d * d) / (this.one_minus_f * d)), g && (s.phi = -s.phi);
|
|
3485
|
+
}
|
|
3486
|
+
return s.lam += this.long0, t.x = s.lam, t.y = s.phi, t;
|
|
3487
|
+
}
|
|
3488
|
+
function bt(t, s, i, h) {
|
|
3489
|
+
var a;
|
|
3490
|
+
return t < y ? (h.value = G.AREA_0, a = 0) : (a = Math.atan2(s, i), Math.abs(a) <= x ? h.value = G.AREA_0 : a > x && a <= _ + x ? (h.value = G.AREA_1, a -= _) : a > _ + x || a <= -(_ + x) ? (h.value = G.AREA_2, a = a >= 0 ? a - k : a + k) : (h.value = G.AREA_3, a += _)), a;
|
|
3491
|
+
}
|
|
3492
|
+
function rt(t, s) {
|
|
3493
|
+
var i = t + s;
|
|
3494
|
+
return i < -k ? i += gt : i > +k && (i -= gt), i;
|
|
3495
|
+
}
|
|
3496
|
+
var G0 = ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube", "qsc"];
|
|
3497
|
+
const b0 = {
|
|
3498
|
+
init: E0,
|
|
3499
|
+
forward: P0,
|
|
3500
|
+
inverse: x0,
|
|
3501
|
+
names: G0
|
|
3502
|
+
};
|
|
3503
|
+
var Qt = [
|
|
3504
|
+
[1, 22199e-21, -715515e-10, 31103e-10],
|
|
3505
|
+
[0.9986, -482243e-9, -24897e-9, -13309e-10],
|
|
3506
|
+
[0.9954, -83103e-8, -448605e-10, -986701e-12],
|
|
3507
|
+
[0.99, -135364e-8, -59661e-9, 36777e-10],
|
|
3508
|
+
[0.9822, -167442e-8, -449547e-11, -572411e-11],
|
|
3509
|
+
[0.973, -214868e-8, -903571e-10, 18736e-12],
|
|
3510
|
+
[0.96, -305085e-8, -900761e-10, 164917e-11],
|
|
3511
|
+
[0.9427, -382792e-8, -653386e-10, -26154e-10],
|
|
3512
|
+
[0.9216, -467746e-8, -10457e-8, 481243e-11],
|
|
3513
|
+
[0.8962, -536223e-8, -323831e-10, -543432e-11],
|
|
3514
|
+
[0.8679, -609363e-8, -113898e-9, 332484e-11],
|
|
3515
|
+
[0.835, -698325e-8, -640253e-10, 934959e-12],
|
|
3516
|
+
[0.7986, -755338e-8, -500009e-10, 935324e-12],
|
|
3517
|
+
[0.7597, -798324e-8, -35971e-9, -227626e-11],
|
|
3518
|
+
[0.7186, -851367e-8, -701149e-10, -86303e-10],
|
|
3519
|
+
[0.6732, -986209e-8, -199569e-9, 191974e-10],
|
|
3520
|
+
[0.6213, -0.010418, 883923e-10, 624051e-11],
|
|
3521
|
+
[0.5722, -906601e-8, 182e-6, 624051e-11],
|
|
3522
|
+
[0.5322, -677797e-8, 275608e-9, 624051e-11]
|
|
3523
|
+
], ft = [
|
|
3524
|
+
[-520417e-23, 0.0124, 121431e-23, -845284e-16],
|
|
3525
|
+
[0.062, 0.0124, -126793e-14, 422642e-15],
|
|
3526
|
+
[0.124, 0.0124, 507171e-14, -160604e-14],
|
|
3527
|
+
[0.186, 0.0123999, -190189e-13, 600152e-14],
|
|
3528
|
+
[0.248, 0.0124002, 710039e-13, -224e-10],
|
|
3529
|
+
[0.31, 0.0123992, -264997e-12, 835986e-13],
|
|
3530
|
+
[0.372, 0.0124029, 988983e-12, -311994e-12],
|
|
3531
|
+
[0.434, 0.0123893, -369093e-11, -435621e-12],
|
|
3532
|
+
[0.4958, 0.0123198, -102252e-10, -345523e-12],
|
|
3533
|
+
[0.5571, 0.0121916, -154081e-10, -582288e-12],
|
|
3534
|
+
[0.6176, 0.0119938, -241424e-10, -525327e-12],
|
|
3535
|
+
[0.6769, 0.011713, -320223e-10, -516405e-12],
|
|
3536
|
+
[0.7346, 0.0113541, -397684e-10, -609052e-12],
|
|
3537
|
+
[0.7903, 0.0109107, -489042e-10, -104739e-11],
|
|
3538
|
+
[0.8435, 0.0103431, -64615e-9, -140374e-14],
|
|
3539
|
+
[0.8936, 969686e-8, -64636e-9, -8547e-9],
|
|
3540
|
+
[0.9394, 840947e-8, -192841e-9, -42106e-10],
|
|
3541
|
+
[0.9761, 616527e-8, -256e-6, -42106e-10],
|
|
3542
|
+
[1, 328947e-8, -319159e-9, -42106e-10]
|
|
3543
|
+
], As = 0.8487, ks = 1.3523, qs = L / 5, N0 = 1 / qs, ht = 18, $t = function(t, s) {
|
|
3544
|
+
return t[0] + s * (t[1] + s * (t[2] + s * t[3]));
|
|
3545
|
+
}, I0 = function(t, s) {
|
|
3546
|
+
return t[1] + s * (2 * t[2] + s * 3 * t[3]);
|
|
3547
|
+
};
|
|
3548
|
+
function A0(t, s, i, h) {
|
|
3549
|
+
for (var a = s; h; --h) {
|
|
3550
|
+
var e = t(a);
|
|
3551
|
+
if (a -= e, Math.abs(e) < i)
|
|
3552
|
+
break;
|
|
3553
|
+
}
|
|
3554
|
+
return a;
|
|
3555
|
+
}
|
|
3556
|
+
function k0() {
|
|
3557
|
+
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.es = 0, this.title = this.title || "Robinson";
|
|
3558
|
+
}
|
|
3559
|
+
function q0(t) {
|
|
3560
|
+
var s = m(t.x - this.long0, this.over), i = Math.abs(t.y), h = Math.floor(i * qs);
|
|
3561
|
+
h < 0 ? h = 0 : h >= ht && (h = ht - 1), i = L * (i - N0 * h);
|
|
3562
|
+
var a = {
|
|
3563
|
+
x: $t(Qt[h], i) * s,
|
|
3564
|
+
y: $t(ft[h], i)
|
|
3565
|
+
};
|
|
3566
|
+
return t.y < 0 && (a.y = -a.y), a.x = a.x * this.a * As + this.x0, a.y = a.y * this.a * ks + this.y0, a;
|
|
3567
|
+
}
|
|
3568
|
+
function R0(t) {
|
|
3569
|
+
var s = {
|
|
3570
|
+
x: (t.x - this.x0) / (this.a * As),
|
|
3571
|
+
y: Math.abs(t.y - this.y0) / (this.a * ks)
|
|
3572
|
+
};
|
|
3573
|
+
if (s.y >= 1)
|
|
3574
|
+
s.x /= Qt[ht][0], s.y = t.y < 0 ? -_ : _;
|
|
3575
|
+
else {
|
|
3576
|
+
var i = Math.floor(s.y * ht);
|
|
3577
|
+
for (i < 0 ? i = 0 : i >= ht && (i = ht - 1); ; )
|
|
3578
|
+
if (ft[i][0] > s.y)
|
|
3579
|
+
--i;
|
|
3580
|
+
else if (ft[i + 1][0] <= s.y)
|
|
3581
|
+
++i;
|
|
3582
|
+
else
|
|
3583
|
+
break;
|
|
3584
|
+
var h = ft[i], a = 5 * (s.y - h[0]) / (ft[i + 1][0] - h[0]);
|
|
3585
|
+
a = A0(function(e) {
|
|
3586
|
+
return ($t(h, e) - s.y) / I0(h, e);
|
|
3587
|
+
}, a, y, 100), s.x /= $t(Qt[i], a), s.y = (5 * i + a) * A, t.y < 0 && (s.y = -s.y);
|
|
3588
|
+
}
|
|
3589
|
+
return s.x = m(s.x + this.long0, this.over), s;
|
|
3590
|
+
}
|
|
3591
|
+
var C0 = ["Robinson", "robin"];
|
|
3592
|
+
const $0 = {
|
|
3593
|
+
init: k0,
|
|
3594
|
+
forward: q0,
|
|
3595
|
+
inverse: R0,
|
|
3596
|
+
names: C0
|
|
3597
|
+
};
|
|
3598
|
+
function j0() {
|
|
3599
|
+
this.name = "geocent";
|
|
3600
|
+
}
|
|
3601
|
+
function O0(t) {
|
|
3602
|
+
var s = Ss(t, this.es, this.a);
|
|
3603
|
+
return s;
|
|
3604
|
+
}
|
|
3605
|
+
function L0(t) {
|
|
3606
|
+
var s = Es(t, this.es, this.a, this.b);
|
|
3607
|
+
return s;
|
|
3608
|
+
}
|
|
3609
|
+
var T0 = ["Geocentric", "geocentric", "geocent", "Geocent"];
|
|
3610
|
+
const F0 = {
|
|
3611
|
+
init: j0,
|
|
3612
|
+
forward: O0,
|
|
3613
|
+
inverse: L0,
|
|
3614
|
+
names: T0
|
|
3615
|
+
};
|
|
3616
|
+
var $ = {
|
|
3617
|
+
N_POLE: 0,
|
|
3618
|
+
S_POLE: 1,
|
|
3619
|
+
EQUIT: 2,
|
|
3620
|
+
OBLIQ: 3
|
|
3621
|
+
}, lt = {
|
|
3622
|
+
h: { def: 1e5, num: !0 },
|
|
3623
|
+
// default is Karman line, no default in PROJ.7
|
|
3624
|
+
azi: { def: 0, num: !0, degrees: !0 },
|
|
3625
|
+
// default is North
|
|
3626
|
+
tilt: { def: 0, num: !0, degrees: !0 },
|
|
3627
|
+
// default is Nadir
|
|
3628
|
+
long0: { def: 0, num: !0 },
|
|
3629
|
+
// default is Greenwich, conversion to rad is automatic
|
|
3630
|
+
lat0: { def: 0, num: !0 }
|
|
3631
|
+
// default is Equator, conversion to rad is automatic
|
|
3632
|
+
};
|
|
3633
|
+
function B0() {
|
|
3634
|
+
if (Object.keys(lt).forEach(function(i) {
|
|
3635
|
+
if (typeof this[i] > "u")
|
|
3636
|
+
this[i] = lt[i].def;
|
|
3637
|
+
else {
|
|
3638
|
+
if (lt[i].num && isNaN(this[i]))
|
|
3639
|
+
throw new Error("Invalid parameter value, must be numeric " + i + " = " + this[i]);
|
|
3640
|
+
lt[i].num && (this[i] = parseFloat(this[i]));
|
|
3641
|
+
}
|
|
3642
|
+
lt[i].degrees && (this[i] = this[i] * A);
|
|
3643
|
+
}.bind(this)), Math.abs(Math.abs(this.lat0) - _) < y ? this.mode = this.lat0 < 0 ? $.S_POLE : $.N_POLE : Math.abs(this.lat0) < y ? this.mode = $.EQUIT : (this.mode = $.OBLIQ, this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0)), this.pn1 = this.h / this.a, this.pn1 <= 0 || this.pn1 > 1e10)
|
|
3644
|
+
throw new Error("Invalid height");
|
|
3645
|
+
this.p = 1 + this.pn1, this.rp = 1 / this.p, this.h1 = 1 / this.pn1, this.pfact = (this.p + 1) * this.h1, this.es = 0;
|
|
3646
|
+
var t = this.tilt, s = this.azi;
|
|
3647
|
+
this.cg = Math.cos(s), this.sg = Math.sin(s), this.cw = Math.cos(t), this.sw = Math.sin(t);
|
|
3648
|
+
}
|
|
3649
|
+
function z0(t) {
|
|
3650
|
+
t.x -= this.long0;
|
|
3651
|
+
var s = Math.sin(t.y), i = Math.cos(t.y), h = Math.cos(t.x), a, e;
|
|
3652
|
+
switch (this.mode) {
|
|
3653
|
+
case $.OBLIQ:
|
|
3654
|
+
e = this.sinph0 * s + this.cosph0 * i * h;
|
|
3655
|
+
break;
|
|
3656
|
+
case $.EQUIT:
|
|
3657
|
+
e = i * h;
|
|
3658
|
+
break;
|
|
3659
|
+
case $.S_POLE:
|
|
3660
|
+
e = -s;
|
|
3661
|
+
break;
|
|
3662
|
+
case $.N_POLE:
|
|
3663
|
+
e = s;
|
|
3664
|
+
break;
|
|
3665
|
+
}
|
|
3666
|
+
switch (e = this.pn1 / (this.p - e), a = e * i * Math.sin(t.x), this.mode) {
|
|
3667
|
+
case $.OBLIQ:
|
|
3668
|
+
e *= this.cosph0 * s - this.sinph0 * i * h;
|
|
3669
|
+
break;
|
|
3670
|
+
case $.EQUIT:
|
|
3671
|
+
e *= s;
|
|
3672
|
+
break;
|
|
3673
|
+
case $.N_POLE:
|
|
3674
|
+
e *= -(i * h);
|
|
3675
|
+
break;
|
|
3676
|
+
case $.S_POLE:
|
|
3677
|
+
e *= i * h;
|
|
3678
|
+
break;
|
|
3679
|
+
}
|
|
3680
|
+
var n, r;
|
|
3681
|
+
return n = e * this.cg + a * this.sg, r = 1 / (n * this.sw * this.h1 + this.cw), a = (a * this.cg - e * this.sg) * this.cw * r, e = n * r, t.x = a * this.a, t.y = e * this.a, t;
|
|
3682
|
+
}
|
|
3683
|
+
function U0(t) {
|
|
3684
|
+
t.x /= this.a, t.y /= this.a;
|
|
3685
|
+
var s = { x: t.x, y: t.y }, i, h, a;
|
|
3686
|
+
a = 1 / (this.pn1 - t.y * this.sw), i = this.pn1 * t.x * a, h = this.pn1 * t.y * this.cw * a, t.x = i * this.cg + h * this.sg, t.y = h * this.cg - i * this.sg;
|
|
3687
|
+
var e = O(t.x, t.y);
|
|
3688
|
+
if (Math.abs(e) < y)
|
|
3689
|
+
s.x = 0, s.y = t.y;
|
|
3690
|
+
else {
|
|
3691
|
+
var n, r;
|
|
3692
|
+
switch (r = 1 - e * e * this.pfact, r = (this.p - Math.sqrt(r)) / (this.pn1 / e + e / this.pn1), n = Math.sqrt(1 - r * r), this.mode) {
|
|
3693
|
+
case $.OBLIQ:
|
|
3694
|
+
s.y = Math.asin(n * this.sinph0 + t.y * r * this.cosph0 / e), t.y = (n - this.sinph0 * Math.sin(s.y)) * e, t.x *= r * this.cosph0;
|
|
3695
|
+
break;
|
|
3696
|
+
case $.EQUIT:
|
|
3697
|
+
s.y = Math.asin(t.y * r / e), t.y = n * e, t.x *= r;
|
|
3698
|
+
break;
|
|
3699
|
+
case $.N_POLE:
|
|
3700
|
+
s.y = Math.asin(n), t.y = -t.y;
|
|
3701
|
+
break;
|
|
3702
|
+
case $.S_POLE:
|
|
3703
|
+
s.y = -Math.asin(n);
|
|
3704
|
+
break;
|
|
3705
|
+
}
|
|
3706
|
+
s.x = Math.atan2(t.x, t.y);
|
|
3707
|
+
}
|
|
3708
|
+
return t.x = s.x + this.long0, t.y = s.y, t;
|
|
3709
|
+
}
|
|
3710
|
+
var D0 = ["Tilted_Perspective", "tpers"];
|
|
3711
|
+
const W0 = {
|
|
3712
|
+
init: B0,
|
|
3713
|
+
forward: z0,
|
|
3714
|
+
inverse: U0,
|
|
3715
|
+
names: D0
|
|
3716
|
+
};
|
|
3717
|
+
function Q0() {
|
|
3718
|
+
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)
|
|
3719
|
+
throw new Error();
|
|
3720
|
+
if (this.radius_g = 1 + this.radius_g_1, this.C = this.radius_g * this.radius_g - 1, this.es !== 0) {
|
|
3721
|
+
var t = 1 - this.es, s = 1 / t;
|
|
3722
|
+
this.radius_p = Math.sqrt(t), this.radius_p2 = t, this.radius_p_inv2 = s, this.shape = "ellipse";
|
|
3723
|
+
} else
|
|
3724
|
+
this.radius_p = 1, this.radius_p2 = 1, this.radius_p_inv2 = 1, this.shape = "sphere";
|
|
3725
|
+
this.title || (this.title = "Geostationary Satellite View");
|
|
3726
|
+
}
|
|
3727
|
+
function p0(t) {
|
|
3728
|
+
var s = t.x, i = t.y, h, a, e, n;
|
|
3729
|
+
if (s = s - this.long0, this.shape === "ellipse") {
|
|
3730
|
+
i = Math.atan(this.radius_p2 * Math.tan(i));
|
|
3731
|
+
var r = this.radius_p / O(this.radius_p * Math.cos(i), Math.sin(i));
|
|
3732
|
+
if (a = r * Math.cos(s) * Math.cos(i), e = r * Math.sin(s) * Math.cos(i), n = r * Math.sin(i), (this.radius_g - a) * a - e * e - n * n * this.radius_p_inv2 < 0)
|
|
3733
|
+
return t.x = Number.NaN, t.y = Number.NaN, t;
|
|
3734
|
+
h = this.radius_g - a, this.flip_axis ? (t.x = this.radius_g_1 * Math.atan(e / O(n, h)), t.y = this.radius_g_1 * Math.atan(n / h)) : (t.x = this.radius_g_1 * Math.atan(e / h), t.y = this.radius_g_1 * Math.atan(n / O(e, h)));
|
|
3735
|
+
} else this.shape === "sphere" && (h = Math.cos(i), a = Math.cos(s) * h, e = Math.sin(s) * h, n = Math.sin(i), h = this.radius_g - a, this.flip_axis ? (t.x = this.radius_g_1 * Math.atan(e / O(n, h)), t.y = this.radius_g_1 * Math.atan(n / h)) : (t.x = this.radius_g_1 * Math.atan(e / h), t.y = this.radius_g_1 * Math.atan(n / O(e, h))));
|
|
3736
|
+
return t.x = t.x * this.a, t.y = t.y * this.a, t;
|
|
3737
|
+
}
|
|
3738
|
+
function X0(t) {
|
|
3739
|
+
var s = -1, i = 0, h = 0, a, e, n, r;
|
|
3740
|
+
if (t.x = t.x / this.a, t.y = t.y / this.a, this.shape === "ellipse") {
|
|
3741
|
+
this.flip_axis ? (h = Math.tan(t.y / this.radius_g_1), i = Math.tan(t.x / this.radius_g_1) * O(1, h)) : (i = Math.tan(t.x / this.radius_g_1), h = Math.tan(t.y / this.radius_g_1) * O(1, i));
|
|
3742
|
+
var o = h / this.radius_p;
|
|
3743
|
+
if (a = i * i + o * o + s * s, e = 2 * this.radius_g * s, n = e * e - 4 * a * this.C, n < 0)
|
|
3744
|
+
return t.x = Number.NaN, t.y = Number.NaN, t;
|
|
3745
|
+
r = (-e - Math.sqrt(n)) / (2 * a), s = this.radius_g + r * s, i *= r, h *= r, t.x = Math.atan2(i, s), t.y = Math.atan(h * Math.cos(t.x) / s), t.y = Math.atan(this.radius_p_inv2 * Math.tan(t.y));
|
|
3746
|
+
} else if (this.shape === "sphere") {
|
|
3747
|
+
if (this.flip_axis ? (h = Math.tan(t.y / this.radius_g_1), i = Math.tan(t.x / this.radius_g_1) * Math.sqrt(1 + h * h)) : (i = Math.tan(t.x / this.radius_g_1), h = Math.tan(t.y / this.radius_g_1) * Math.sqrt(1 + i * i)), a = i * i + h * h + s * s, e = 2 * this.radius_g * s, n = e * e - 4 * a * this.C, n < 0)
|
|
3748
|
+
return t.x = Number.NaN, t.y = Number.NaN, t;
|
|
3749
|
+
r = (-e - Math.sqrt(n)) / (2 * a), s = this.radius_g + r * s, i *= r, h *= r, t.x = Math.atan2(i, s), t.y = Math.atan(h * Math.cos(t.x) / s);
|
|
3750
|
+
}
|
|
3751
|
+
return t.x = t.x + this.long0, t;
|
|
3752
|
+
}
|
|
3753
|
+
var H0 = ["Geostationary Satellite View", "Geostationary_Satellite", "geos"];
|
|
3754
|
+
const K0 = {
|
|
3755
|
+
init: Q0,
|
|
3756
|
+
forward: p0,
|
|
3757
|
+
inverse: X0,
|
|
3758
|
+
names: H0
|
|
3759
|
+
};
|
|
3760
|
+
var ut = 1.340264, _t = -0.081106, ct = 893e-6, vt = 3796e-6, jt = Math.sqrt(3) / 2;
|
|
3761
|
+
function V0() {
|
|
3762
|
+
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, this.es !== 0 && (this.apa = Gs(this.es), this.qp = D(this.e, 1), this.rqda = Math.sqrt(0.5 * this.qp));
|
|
3763
|
+
}
|
|
3764
|
+
function J0(t) {
|
|
3765
|
+
var s = m(t.x - this.long0, this.over), i = t.y, h = Math.sin(i);
|
|
3766
|
+
this.es !== 0 && (h = D(this.e, h) / this.qp);
|
|
3767
|
+
var a = Math.asin(jt * h), e = a * a, n = e * e * e;
|
|
3768
|
+
return t.x = s * Math.cos(a) / (jt * (ut + 3 * _t * e + n * (7 * ct + 9 * vt * e))), t.y = a * (ut + _t * e + n * (ct + vt * e)), this.es !== 0 && (t.x *= this.rqda, t.y *= this.rqda), t.x = this.a * t.x + this.x0, t.y = this.a * t.y + this.y0, t;
|
|
3769
|
+
}
|
|
3770
|
+
function Z0(t) {
|
|
3771
|
+
t.x = (t.x - this.x0) / this.a, t.y = (t.y - this.y0) / this.a, this.es !== 0 && (t.x /= this.rqda, t.y /= this.rqda);
|
|
3772
|
+
var s = 1e-9, i = 12, h = t.y, a, e, n, r, o, l;
|
|
3773
|
+
for (l = 0; l < i && (a = h * h, e = a * a * a, n = h * (ut + _t * a + e * (ct + vt * a)) - t.y, r = ut + 3 * _t * a + e * (7 * ct + 9 * vt * a), h -= o = n / r, !(Math.abs(o) < s)); ++l)
|
|
3774
|
+
;
|
|
3775
|
+
return a = h * h, e = a * a * a, t.x = jt * t.x * (ut + 3 * _t * a + e * (7 * ct + 9 * vt * a)) / Math.cos(h), t.y = Math.asin(Math.sin(h) / jt), this.es !== 0 && (t.y = bs(t.y, this.apa)), t.x = m(t.x + this.long0, this.over), t;
|
|
3776
|
+
}
|
|
3777
|
+
var Y0 = ["eqearth", "Equal Earth", "Equal_Earth"];
|
|
3778
|
+
const te = {
|
|
3779
|
+
init: V0,
|
|
3780
|
+
forward: J0,
|
|
3781
|
+
inverse: Z0,
|
|
3782
|
+
names: Y0
|
|
3783
|
+
};
|
|
3784
|
+
var mt = 1e-10;
|
|
3785
|
+
function se() {
|
|
3786
|
+
var t;
|
|
3787
|
+
if (this.phi1 = this.lat1, Math.abs(this.phi1) < mt)
|
|
3788
|
+
throw new Error();
|
|
3789
|
+
this.es ? (this.en = Ht(this.es), this.m1 = ot(
|
|
3790
|
+
this.phi1,
|
|
3791
|
+
this.am1 = Math.sin(this.phi1),
|
|
3792
|
+
t = Math.cos(this.phi1),
|
|
3793
|
+
this.en
|
|
3794
|
+
), this.am1 = t / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse = ae, this.forward = ie) : (Math.abs(this.phi1) + mt >= _ ? this.cphi1 = 0 : this.cphi1 = 1 / Math.tan(this.phi1), this.inverse = ee, this.forward = he);
|
|
3795
|
+
}
|
|
3796
|
+
function ie(t) {
|
|
3797
|
+
var s = m(t.x - (this.long0 || 0), this.over), i = t.y, h, a, e;
|
|
3798
|
+
return h = this.am1 + this.m1 - ot(i, a = Math.sin(i), e = Math.cos(i), this.en), a = e * s / (h * Math.sqrt(1 - this.es * a * a)), t.x = h * Math.sin(a), t.y = this.am1 - h * Math.cos(a), t.x = this.a * t.x + (this.x0 || 0), t.y = this.a * t.y + (this.y0 || 0), t;
|
|
3799
|
+
}
|
|
3800
|
+
function ae(t) {
|
|
3801
|
+
t.x = (t.x - (this.x0 || 0)) / this.a, t.y = (t.y - (this.y0 || 0)) / this.a;
|
|
3802
|
+
var s, i, h, a;
|
|
3803
|
+
if (i = O(t.x, t.y = this.am1 - t.y), a = Kt(this.am1 + this.m1 - i, this.es, this.en), (s = Math.abs(a)) < _)
|
|
3804
|
+
s = Math.sin(a), h = i * Math.atan2(t.x, t.y) * Math.sqrt(1 - this.es * s * s) / Math.cos(a);
|
|
3805
|
+
else if (Math.abs(s - _) <= mt)
|
|
3806
|
+
h = 0;
|
|
3807
|
+
else
|
|
3808
|
+
throw new Error();
|
|
3809
|
+
return t.x = m(h + (this.long0 || 0), this.over), t.y = K(a), t;
|
|
3810
|
+
}
|
|
3811
|
+
function he(t) {
|
|
3812
|
+
var s = m(t.x - (this.long0 || 0), this.over), i = t.y, h, a;
|
|
3813
|
+
return a = this.cphi1 + this.phi1 - i, Math.abs(a) > mt ? (t.x = a * Math.sin(h = s * Math.cos(i) / a), t.y = this.cphi1 - a * Math.cos(h)) : t.x = t.y = 0, t.x = this.a * t.x + (this.x0 || 0), t.y = this.a * t.y + (this.y0 || 0), t;
|
|
3814
|
+
}
|
|
3815
|
+
function ee(t) {
|
|
3816
|
+
t.x = (t.x - (this.x0 || 0)) / this.a, t.y = (t.y - (this.y0 || 0)) / this.a;
|
|
3817
|
+
var s, i, h = O(t.x, t.y = this.cphi1 - t.y);
|
|
3818
|
+
if (i = this.cphi1 + this.phi1 - h, Math.abs(i) > _)
|
|
3819
|
+
throw new Error();
|
|
3820
|
+
return Math.abs(Math.abs(i) - _) <= mt ? s = 0 : s = h * Math.atan2(t.x, t.y) / Math.cos(i), t.x = m(s + (this.long0 || 0), this.over), t.y = K(i), t;
|
|
3821
|
+
}
|
|
3822
|
+
var re = ["bonne", "Bonne (Werner lat_1=90)"];
|
|
3823
|
+
const ne = {
|
|
3824
|
+
init: se,
|
|
3825
|
+
names: re
|
|
3826
|
+
}, gs = {
|
|
3827
|
+
OBLIQUE: {
|
|
3828
|
+
forward: ue,
|
|
3829
|
+
inverse: ce
|
|
3830
|
+
},
|
|
3831
|
+
TRANSVERSE: {
|
|
3832
|
+
forward: _e,
|
|
3833
|
+
inverse: ve
|
|
3834
|
+
}
|
|
3835
|
+
}, Ot = {
|
|
3836
|
+
ROTATE: {
|
|
3837
|
+
o_alpha: "oAlpha",
|
|
3838
|
+
o_lon_c: "oLongC",
|
|
3839
|
+
o_lat_c: "oLatC"
|
|
3840
|
+
},
|
|
3841
|
+
NEW_POLE: {
|
|
3842
|
+
o_lat_p: "oLatP",
|
|
3843
|
+
o_lon_p: "oLongP"
|
|
3844
|
+
},
|
|
3845
|
+
NEW_EQUATOR: {
|
|
3846
|
+
o_lon_1: "oLong1",
|
|
3847
|
+
o_lat_1: "oLat1",
|
|
3848
|
+
o_lon_2: "oLong2",
|
|
3849
|
+
o_lat_2: "oLat2"
|
|
3850
|
+
}
|
|
3851
|
+
};
|
|
3852
|
+
function oe() {
|
|
3853
|
+
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 = ys.includes(this.o_proj), !this.o_proj)
|
|
3854
|
+
throw new Error("Missing parameter: o_proj");
|
|
3855
|
+
if (this.o_proj === "ob_tran")
|
|
3856
|
+
throw new Error("Invalid value for o_proj: " + this.o_proj);
|
|
3857
|
+
const t = this.projStr.replace("+proj=ob_tran", "").replace("+o_proj=", "+proj=").trim(), s = z(t);
|
|
3858
|
+
if (!s)
|
|
3859
|
+
throw new Error("Invalid parameter: o_proj. Unknown projection " + this.o_proj);
|
|
3860
|
+
s.long0 = 0, this.obliqueProjection = s;
|
|
3861
|
+
let i;
|
|
3862
|
+
const h = Object.keys(Ot), a = (r) => {
|
|
3863
|
+
if (typeof this[r] > "u")
|
|
3864
|
+
return;
|
|
3865
|
+
const o = parseFloat(this[r]) * A;
|
|
3866
|
+
if (isNaN(o))
|
|
3867
|
+
throw new Error("Invalid value for " + r + ": " + this[r]);
|
|
3868
|
+
return o;
|
|
3869
|
+
};
|
|
3870
|
+
for (let r = 0; r < h.length; r++) {
|
|
3871
|
+
const o = h[r], l = Ot[o], M = Object.entries(l);
|
|
3872
|
+
if (M.some(
|
|
3873
|
+
([u]) => typeof this[u] < "u"
|
|
3874
|
+
)) {
|
|
3875
|
+
i = l;
|
|
3876
|
+
for (let u = 0; u < M.length; u++) {
|
|
3877
|
+
const [c, v] = M[u], g = a(c);
|
|
3878
|
+
if (typeof g > "u")
|
|
3879
|
+
throw new Error("Missing parameter: " + c + ".");
|
|
3880
|
+
this[v] = g;
|
|
3881
|
+
}
|
|
3882
|
+
break;
|
|
3883
|
+
}
|
|
3884
|
+
}
|
|
3885
|
+
if (!i)
|
|
3886
|
+
throw new Error("No valid parameters provided for ob_tran projection.");
|
|
3887
|
+
const { lamp: e, phip: n } = Me(this, i);
|
|
3888
|
+
this.lamp = e, Math.abs(n) > y ? (this.cphip = Math.cos(n), this.sphip = Math.sin(n), this.projectionType = gs.OBLIQUE) : this.projectionType = gs.TRANSVERSE;
|
|
3889
|
+
}
|
|
3890
|
+
function le(t) {
|
|
3891
|
+
return this.projectionType.forward(this, t);
|
|
3892
|
+
}
|
|
3893
|
+
function fe(t) {
|
|
3894
|
+
return this.projectionType.inverse(this, t);
|
|
3895
|
+
}
|
|
3896
|
+
function Me(t, s) {
|
|
3897
|
+
let i, h;
|
|
3898
|
+
if (s === Ot.ROTATE) {
|
|
3899
|
+
let a = t.oLongC, e = t.oLatC, n = t.oAlpha;
|
|
3900
|
+
if (Math.abs(Math.abs(e) - _) <= y)
|
|
3901
|
+
throw new Error("Invalid value for o_lat_c: " + t.o_lat_c + " should be < 90°");
|
|
3902
|
+
h = a + Math.atan2(-1 * Math.cos(n), -1 * Math.sin(n) * Math.sin(e)), i = Math.asin(Math.cos(e) * Math.sin(n));
|
|
3903
|
+
} else if (s === Ot.NEW_POLE)
|
|
3904
|
+
h = t.oLongP, i = t.oLatP;
|
|
3905
|
+
else {
|
|
3906
|
+
let a = t.oLong1, e = t.oLat1, n = t.oLong2, r = t.oLat2, o = Math.abs(e);
|
|
3907
|
+
if (Math.abs(e) > _ - y)
|
|
3908
|
+
throw new Error("Invalid value for o_lat_1: " + t.o_lat_1 + " should be < 90°");
|
|
3909
|
+
if (Math.abs(r) > _ - y)
|
|
3910
|
+
throw new Error("Invalid value for o_lat_2: " + t.o_lat_2 + " should be < 90°");
|
|
3911
|
+
if (Math.abs(e - r) < y)
|
|
3912
|
+
throw new Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");
|
|
3913
|
+
if (o < y)
|
|
3914
|
+
throw new Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");
|
|
3915
|
+
h = Math.atan2(
|
|
3916
|
+
Math.cos(e) * Math.sin(r) * Math.cos(a) - Math.sin(e) * Math.cos(r) * Math.cos(n),
|
|
3917
|
+
Math.sin(e) * Math.cos(r) * Math.sin(n) - Math.cos(e) * Math.sin(r) * Math.sin(a)
|
|
3918
|
+
), i = Math.atan(-1 * Math.cos(h - a) / Math.tan(e));
|
|
3919
|
+
}
|
|
3920
|
+
return { lamp: h, phip: i };
|
|
3921
|
+
}
|
|
3922
|
+
function ue(t, s) {
|
|
3923
|
+
let { x: i, y: h } = s;
|
|
3924
|
+
i = m(i - t.long0, t.over);
|
|
3925
|
+
const a = Math.cos(i), e = Math.sin(h), n = Math.cos(h);
|
|
3926
|
+
s.x = m(
|
|
3927
|
+
Math.atan2(
|
|
3928
|
+
n * Math.sin(i),
|
|
3929
|
+
t.sphip * n * a + t.cphip * e
|
|
3930
|
+
) + t.lamp
|
|
3931
|
+
), s.y = Math.asin(
|
|
3932
|
+
t.sphip * e - t.cphip * n * a
|
|
3933
|
+
);
|
|
3934
|
+
const r = t.obliqueProjection.forward(s);
|
|
3935
|
+
return t.isIdentity && (r.x *= L, r.y *= L), r;
|
|
3936
|
+
}
|
|
3937
|
+
function _e(t, s) {
|
|
3938
|
+
let { x: i, y: h } = s;
|
|
3939
|
+
i = m(i - t.long0, t.over);
|
|
3940
|
+
const a = Math.cos(h), e = Math.cos(i);
|
|
3941
|
+
s.x = m(
|
|
3942
|
+
Math.atan2(
|
|
3943
|
+
a * Math.sin(i),
|
|
3944
|
+
Math.sin(h)
|
|
3945
|
+
) + t.lamp
|
|
3946
|
+
), s.y = Math.asin(-1 * a * e);
|
|
3947
|
+
const n = t.obliqueProjection.forward(s);
|
|
3948
|
+
return t.isIdentity && (n.x *= L, n.y *= L), n;
|
|
3949
|
+
}
|
|
3950
|
+
function ce(t, s) {
|
|
3951
|
+
t.isIdentity && (s.x *= A, s.y *= A);
|
|
3952
|
+
const i = t.obliqueProjection.inverse(s);
|
|
3953
|
+
let { x: h, y: a } = i;
|
|
3954
|
+
if (h < Number.MAX_VALUE) {
|
|
3955
|
+
h -= t.lamp;
|
|
3956
|
+
const e = Math.cos(h), n = Math.sin(a), r = Math.cos(a);
|
|
3957
|
+
s.x = Math.atan2(
|
|
3958
|
+
r * Math.sin(h),
|
|
3959
|
+
t.sphip * r * e - t.cphip * n
|
|
3960
|
+
), s.y = Math.asin(
|
|
3961
|
+
t.sphip * n + t.cphip * r * e
|
|
3962
|
+
);
|
|
3963
|
+
}
|
|
3964
|
+
return s.x = m(s.x + t.long0), s;
|
|
3965
|
+
}
|
|
3966
|
+
function ve(t, s) {
|
|
3967
|
+
t.isIdentity && (s.x *= A, s.y *= A);
|
|
3968
|
+
const i = t.obliqueProjection.inverse(s);
|
|
3969
|
+
let { x: h, y: a } = i;
|
|
3970
|
+
if (h < Number.MAX_VALUE) {
|
|
3971
|
+
const e = Math.cos(a);
|
|
3972
|
+
h -= t.lamp, s.x = Math.atan2(
|
|
3973
|
+
e * Math.sin(h),
|
|
3974
|
+
-1 * Math.sin(a)
|
|
3975
|
+
), s.y = Math.asin(
|
|
3976
|
+
e * Math.cos(h)
|
|
3977
|
+
);
|
|
3978
|
+
}
|
|
3979
|
+
return s.x = m(s.x + t.long0), s;
|
|
3980
|
+
}
|
|
3981
|
+
var ge = ["General Oblique Transformation", "General_Oblique_Transformation", "ob_tran"];
|
|
3982
|
+
const ye = {
|
|
3983
|
+
init: oe,
|
|
3984
|
+
forward: le,
|
|
3985
|
+
inverse: fe,
|
|
3986
|
+
names: ge
|
|
3987
|
+
};
|
|
3988
|
+
function me(t) {
|
|
3989
|
+
t.Proj.projections.add(It), t.Proj.projections.add(At), t.Proj.projections.add(ea), t.Proj.projections.add(ca), t.Proj.projections.add(wa), t.Proj.projections.add(xa), t.Proj.projections.add(ka), t.Proj.projections.add(ja), t.Proj.projections.add(Ba), t.Proj.projections.add(Qa), t.Proj.projections.add(ih), t.Proj.projections.add(oh), t.Proj.projections.add(_h), t.Proj.projections.add(wh), t.Proj.projections.add(xh), t.Proj.projections.add(Ah), t.Proj.projections.add($h), t.Proj.projections.add(Fh), t.Proj.projections.add(Dh), t.Proj.projections.add(Hh), t.Proj.projections.add(Yh), t.Proj.projections.add(h0), t.Proj.projections.add(l0), t.Proj.projections.add(g0), t.Proj.projections.add(S0), t.Proj.projections.add(b0), t.Proj.projections.add($0), t.Proj.projections.add(F0), t.Proj.projections.add(W0), t.Proj.projections.add(K0), t.Proj.projections.add(te), t.Proj.projections.add(ne), t.Proj.projections.add(ye);
|
|
3990
|
+
}
|
|
3991
|
+
const we = Object.assign(Ri, {
|
|
3992
|
+
defaultDatum: "WGS84",
|
|
3993
|
+
Proj: z,
|
|
3994
|
+
WGS84: new z("WGS84"),
|
|
3995
|
+
Point: nt,
|
|
3996
|
+
toPoint: Xt,
|
|
3997
|
+
defs: C,
|
|
3998
|
+
nadgrid: Mi,
|
|
3999
|
+
transform: qi,
|
|
4000
|
+
mgrs: $s,
|
|
4001
|
+
version: "__VERSION__"
|
|
4002
|
+
});
|
|
4003
|
+
me(we);
|
|
4004
|
+
export {
|
|
4005
|
+
we as default
|
|
4006
|
+
};
|