proj4 2.20.3 → 2.20.4
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/bower.json +1 -1
- package/component.json +1 -1
- package/dist/lib/constants/Datum.d.ts +108 -0
- package/dist/proj4-src.js +107 -30
- package/dist/proj4.js +1 -1
- package/lib/constants/Datum.js +90 -9
- package/lib/parseCode.js +11 -15
- package/lib/projections/krovak.js +1 -1
- package/package.json +1 -1
- package/proj.db +0 -0
package/bower.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proj4",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.4",
|
|
4
4
|
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",
|
|
5
5
|
"homepage": "https://github.com/proj4js/proj4js",
|
|
6
6
|
"main": "dist/proj4.js",
|
package/component.json
CHANGED
|
@@ -1712,4 +1712,112 @@ declare namespace datums {
|
|
|
1712
1712
|
let towgs84_409: string;
|
|
1713
1713
|
export { towgs84_409 as towgs84 };
|
|
1714
1714
|
}
|
|
1715
|
+
namespace EPSG_10328 {
|
|
1716
|
+
let towgs84_410: string;
|
|
1717
|
+
export { towgs84_410 as towgs84 };
|
|
1718
|
+
}
|
|
1719
|
+
namespace EPSG_9782 {
|
|
1720
|
+
let towgs84_411: string;
|
|
1721
|
+
export { towgs84_411 as towgs84 };
|
|
1722
|
+
}
|
|
1723
|
+
namespace EPSG_9777 {
|
|
1724
|
+
let towgs84_412: string;
|
|
1725
|
+
export { towgs84_412 as towgs84 };
|
|
1726
|
+
}
|
|
1727
|
+
namespace EPSG_10690 {
|
|
1728
|
+
let towgs84_413: string;
|
|
1729
|
+
export { towgs84_413 as towgs84 };
|
|
1730
|
+
}
|
|
1731
|
+
namespace EPSG_10639 {
|
|
1732
|
+
let towgs84_414: string;
|
|
1733
|
+
export { towgs84_414 as towgs84 };
|
|
1734
|
+
}
|
|
1735
|
+
namespace EPSG_10739 {
|
|
1736
|
+
let towgs84_415: string;
|
|
1737
|
+
export { towgs84_415 as towgs84 };
|
|
1738
|
+
}
|
|
1739
|
+
namespace EPSG_7686 {
|
|
1740
|
+
let towgs84_416: string;
|
|
1741
|
+
export { towgs84_416 as towgs84 };
|
|
1742
|
+
}
|
|
1743
|
+
namespace EPSG_8900 {
|
|
1744
|
+
let towgs84_417: string;
|
|
1745
|
+
export { towgs84_417 as towgs84 };
|
|
1746
|
+
}
|
|
1747
|
+
namespace EPSG_5886 {
|
|
1748
|
+
let towgs84_418: string;
|
|
1749
|
+
export { towgs84_418 as towgs84 };
|
|
1750
|
+
}
|
|
1751
|
+
namespace EPSG_7683 {
|
|
1752
|
+
let towgs84_419: string;
|
|
1753
|
+
export { towgs84_419 as towgs84 };
|
|
1754
|
+
}
|
|
1755
|
+
namespace EPSG_6668 {
|
|
1756
|
+
let towgs84_420: string;
|
|
1757
|
+
export { towgs84_420 as towgs84 };
|
|
1758
|
+
}
|
|
1759
|
+
namespace EPSG_20046 {
|
|
1760
|
+
let towgs84_421: string;
|
|
1761
|
+
export { towgs84_421 as towgs84 };
|
|
1762
|
+
}
|
|
1763
|
+
namespace EPSG_10299 {
|
|
1764
|
+
let towgs84_422: string;
|
|
1765
|
+
export { towgs84_422 as towgs84 };
|
|
1766
|
+
}
|
|
1767
|
+
namespace EPSG_10310 {
|
|
1768
|
+
let towgs84_423: string;
|
|
1769
|
+
export { towgs84_423 as towgs84 };
|
|
1770
|
+
}
|
|
1771
|
+
namespace EPSG_10475 {
|
|
1772
|
+
let towgs84_424: string;
|
|
1773
|
+
export { towgs84_424 as towgs84 };
|
|
1774
|
+
}
|
|
1775
|
+
namespace EPSG_4742 {
|
|
1776
|
+
let towgs84_425: string;
|
|
1777
|
+
export { towgs84_425 as towgs84 };
|
|
1778
|
+
}
|
|
1779
|
+
namespace EPSG_10671 {
|
|
1780
|
+
let towgs84_426: string;
|
|
1781
|
+
export { towgs84_426 as towgs84 };
|
|
1782
|
+
}
|
|
1783
|
+
namespace EPSG_10762 {
|
|
1784
|
+
let towgs84_427: string;
|
|
1785
|
+
export { towgs84_427 as towgs84 };
|
|
1786
|
+
}
|
|
1787
|
+
namespace EPSG_10725 {
|
|
1788
|
+
let towgs84_428: string;
|
|
1789
|
+
export { towgs84_428 as towgs84 };
|
|
1790
|
+
}
|
|
1791
|
+
namespace EPSG_10791 {
|
|
1792
|
+
let towgs84_429: string;
|
|
1793
|
+
export { towgs84_429 as towgs84 };
|
|
1794
|
+
}
|
|
1795
|
+
namespace EPSG_10800 {
|
|
1796
|
+
let towgs84_430: string;
|
|
1797
|
+
export { towgs84_430 as towgs84 };
|
|
1798
|
+
}
|
|
1799
|
+
namespace EPSG_10305 {
|
|
1800
|
+
let towgs84_431: string;
|
|
1801
|
+
export { towgs84_431 as towgs84 };
|
|
1802
|
+
}
|
|
1803
|
+
namespace EPSG_10941 {
|
|
1804
|
+
let towgs84_432: string;
|
|
1805
|
+
export { towgs84_432 as towgs84 };
|
|
1806
|
+
}
|
|
1807
|
+
namespace EPSG_10968 {
|
|
1808
|
+
let towgs84_433: string;
|
|
1809
|
+
export { towgs84_433 as towgs84 };
|
|
1810
|
+
}
|
|
1811
|
+
namespace EPSG_10875 {
|
|
1812
|
+
let towgs84_434: string;
|
|
1813
|
+
export { towgs84_434 as towgs84 };
|
|
1814
|
+
}
|
|
1815
|
+
namespace EPSG_6318 {
|
|
1816
|
+
let towgs84_435: string;
|
|
1817
|
+
export { towgs84_435 as towgs84 };
|
|
1818
|
+
}
|
|
1819
|
+
namespace EPSG_10910 {
|
|
1820
|
+
let towgs84_436: string;
|
|
1821
|
+
export { towgs84_436 as towgs84 };
|
|
1822
|
+
}
|
|
1715
1823
|
}
|
package/dist/proj4-src.js
CHANGED
|
@@ -1623,31 +1623,27 @@
|
|
|
1623
1623
|
* @returns {import('./defs').ProjectionDefinition}
|
|
1624
1624
|
*/
|
|
1625
1625
|
function parse(code) {
|
|
1626
|
+
let out;
|
|
1626
1627
|
if (testObj(code)) {
|
|
1627
1628
|
// check to see if this is a WKT string
|
|
1628
1629
|
if (testDef(code)) {
|
|
1629
|
-
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
var out = wkt(code);
|
|
1633
|
-
// test of spetial case, due to this being a very common and often malformed
|
|
1634
|
-
if (checkMercator(out)) {
|
|
1635
|
-
return defs['EPSG:3857'];
|
|
1636
|
-
}
|
|
1630
|
+
out = defs[code];
|
|
1631
|
+
} else if (testWKT(code)) {
|
|
1632
|
+
out = wkt(code);
|
|
1637
1633
|
var maybeProjStr = checkProjStr(out);
|
|
1638
1634
|
if (maybeProjStr) {
|
|
1639
|
-
|
|
1635
|
+
out = projStr(maybeProjStr);
|
|
1640
1636
|
}
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
if (testProj(code)) {
|
|
1644
|
-
return projStr(code);
|
|
1637
|
+
} else if (testProj(code)) {
|
|
1638
|
+
out = projStr(code);
|
|
1645
1639
|
}
|
|
1646
1640
|
} else if (!('projName' in code)) {
|
|
1647
|
-
|
|
1641
|
+
out = wkt(code);
|
|
1648
1642
|
} else {
|
|
1649
|
-
|
|
1643
|
+
out = code;
|
|
1650
1644
|
}
|
|
1645
|
+
// test for special Web Mercator case, due to this being a very common and often malformed
|
|
1646
|
+
return out && checkMercator(out) ? defs['EPSG:3857'] : out;
|
|
1651
1647
|
}
|
|
1652
1648
|
|
|
1653
1649
|
function extend (destination, source) {
|
|
@@ -2271,7 +2267,7 @@
|
|
|
2271
2267
|
towgs84: '-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166'
|
|
2272
2268
|
},
|
|
2273
2269
|
EPSG_4231: {
|
|
2274
|
-
towgs84: '-83.11,-97.38,-117.22,0.
|
|
2270
|
+
towgs84: '-83.11,-97.38,-117.22,0.005693,-0.044698,0.044285,0.1218'
|
|
2275
2271
|
},
|
|
2276
2272
|
EPSG_4274: {
|
|
2277
2273
|
towgs84: '-230.994,102.591,25.199,0.633,-0.239,0.9,1.95'
|
|
@@ -2301,7 +2297,7 @@
|
|
|
2301
2297
|
towgs84: '8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926'
|
|
2302
2298
|
},
|
|
2303
2299
|
EPSG_4289: {
|
|
2304
|
-
towgs84: '565.7381,50.4018,465.2904,-
|
|
2300
|
+
towgs84: '565.7381,50.4018,465.2904,-0.395026,0.330772,-1.876073,4.07244'
|
|
2305
2301
|
},
|
|
2306
2302
|
EPSG_4230: {
|
|
2307
2303
|
towgs84: '-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4'
|
|
@@ -2331,7 +2327,7 @@
|
|
|
2331
2327
|
towgs84: '-45,417,-3.5'
|
|
2332
2328
|
},
|
|
2333
2329
|
EPSG_4611: {
|
|
2334
|
-
towgs84: '-162.619,-276.959,-161.764,0.067753,-2.
|
|
2330
|
+
towgs84: '-162.619,-276.959,-161.764,0.067753,-2.243648,-1.158828,-1.094246'
|
|
2335
2331
|
},
|
|
2336
2332
|
EPSG_4633: {
|
|
2337
2333
|
towgs84: '137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824'
|
|
@@ -2349,7 +2345,7 @@
|
|
|
2349
2345
|
towgs84: '482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15'
|
|
2350
2346
|
},
|
|
2351
2347
|
EPSG_4660: {
|
|
2352
|
-
towgs84: '982.6087,552.753,-540.873,
|
|
2348
|
+
towgs84: '982.6087,552.753,-540.873,6.681627,-31.611492,-19.848161,16.805'
|
|
2353
2349
|
},
|
|
2354
2350
|
EPSG_4662: {
|
|
2355
2351
|
towgs84: '97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259'
|
|
@@ -2379,7 +2375,7 @@
|
|
|
2379
2375
|
towgs84: '217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093'
|
|
2380
2376
|
},
|
|
2381
2377
|
EPSG_9333: {
|
|
2382
|
-
towgs84: '0,0,0,-
|
|
2378
|
+
towgs84: '0,0,0,-0.008393,0.000749,-0.010276,0'
|
|
2383
2379
|
},
|
|
2384
2380
|
EPSG_9059: {
|
|
2385
2381
|
towgs84: '0,0,0'
|
|
@@ -2535,7 +2531,7 @@
|
|
|
2535
2531
|
towgs84: '674.374,15.056,405.346'
|
|
2536
2532
|
},
|
|
2537
2533
|
EPSG_4617: {
|
|
2538
|
-
towgs84: '-0.991,1.9072,0.5129,
|
|
2534
|
+
towgs84: '-0.991,1.9072,0.5129,0.02579,0.00965,0.01166,0'
|
|
2539
2535
|
},
|
|
2540
2536
|
EPSG_4663: {
|
|
2541
2537
|
towgs84: '-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485'
|
|
@@ -2598,10 +2594,10 @@
|
|
|
2598
2594
|
towgs84: '275.57,676.78,229.6'
|
|
2599
2595
|
},
|
|
2600
2596
|
EPSG_4283: {
|
|
2601
|
-
towgs84: '
|
|
2597
|
+
towgs84: '0.06155,-0.01087,-0.04019,0.039492,0.032722,0.032898,-0.009994'
|
|
2602
2598
|
},
|
|
2603
2599
|
EPSG_4317: {
|
|
2604
|
-
towgs84: '2.3287,-147.0425,-92.0802,-0.
|
|
2600
|
+
towgs84: '2.3287,-147.0425,-92.0802,-0.309248,0.324822,0.497299,5.689063'
|
|
2605
2601
|
},
|
|
2606
2602
|
EPSG_4272: {
|
|
2607
2603
|
towgs84: '59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993'
|
|
@@ -2724,7 +2720,7 @@
|
|
|
2724
2720
|
towgs84: '-208.4058,-109.8777,-2.5764'
|
|
2725
2721
|
},
|
|
2726
2722
|
ESRI_104101: {
|
|
2727
|
-
towgs84: '
|
|
2723
|
+
towgs84: '372.87,149.23,585.29'
|
|
2728
2724
|
},
|
|
2729
2725
|
EPSG_4693: {
|
|
2730
2726
|
towgs84: '0,-0.15,0.68'
|
|
@@ -3409,6 +3405,87 @@
|
|
|
3409
3405
|
},
|
|
3410
3406
|
EPSG_4818: {
|
|
3411
3407
|
towgs84: '589,76,480'
|
|
3408
|
+
},
|
|
3409
|
+
EPSG_10328: {
|
|
3410
|
+
towgs84: '0,0,0'
|
|
3411
|
+
},
|
|
3412
|
+
EPSG_9782: {
|
|
3413
|
+
towgs84: '0,0,0'
|
|
3414
|
+
},
|
|
3415
|
+
EPSG_9777: {
|
|
3416
|
+
towgs84: '0,0,0'
|
|
3417
|
+
},
|
|
3418
|
+
EPSG_10690: {
|
|
3419
|
+
towgs84: '0,0,0'
|
|
3420
|
+
},
|
|
3421
|
+
EPSG_10639: {
|
|
3422
|
+
towgs84: '0,0,0'
|
|
3423
|
+
},
|
|
3424
|
+
EPSG_10739: {
|
|
3425
|
+
towgs84: '0,0,0'
|
|
3426
|
+
},
|
|
3427
|
+
EPSG_7686: {
|
|
3428
|
+
towgs84: '0,0,0'
|
|
3429
|
+
},
|
|
3430
|
+
EPSG_8900: {
|
|
3431
|
+
towgs84: '0,0,0'
|
|
3432
|
+
},
|
|
3433
|
+
EPSG_5886: {
|
|
3434
|
+
towgs84: '0,0,0'
|
|
3435
|
+
},
|
|
3436
|
+
EPSG_7683: {
|
|
3437
|
+
towgs84: '0,0,0'
|
|
3438
|
+
},
|
|
3439
|
+
EPSG_6668: {
|
|
3440
|
+
towgs84: '0,0,0'
|
|
3441
|
+
},
|
|
3442
|
+
EPSG_20046: {
|
|
3443
|
+
towgs84: '0,0,0'
|
|
3444
|
+
},
|
|
3445
|
+
EPSG_10299: {
|
|
3446
|
+
towgs84: '0,0,0'
|
|
3447
|
+
},
|
|
3448
|
+
EPSG_10310: {
|
|
3449
|
+
towgs84: '0,0,0'
|
|
3450
|
+
},
|
|
3451
|
+
EPSG_10475: {
|
|
3452
|
+
towgs84: '0,0,0'
|
|
3453
|
+
},
|
|
3454
|
+
EPSG_4742: {
|
|
3455
|
+
towgs84: '0,0,0'
|
|
3456
|
+
},
|
|
3457
|
+
EPSG_10671: {
|
|
3458
|
+
towgs84: '0,0,0'
|
|
3459
|
+
},
|
|
3460
|
+
EPSG_10762: {
|
|
3461
|
+
towgs84: '0,0,0'
|
|
3462
|
+
},
|
|
3463
|
+
EPSG_10725: {
|
|
3464
|
+
towgs84: '0,0,0'
|
|
3465
|
+
},
|
|
3466
|
+
EPSG_10791: {
|
|
3467
|
+
towgs84: '0,0,0'
|
|
3468
|
+
},
|
|
3469
|
+
EPSG_10800: {
|
|
3470
|
+
towgs84: '0,0,0'
|
|
3471
|
+
},
|
|
3472
|
+
EPSG_10305: {
|
|
3473
|
+
towgs84: '0,0,0'
|
|
3474
|
+
},
|
|
3475
|
+
EPSG_10941: {
|
|
3476
|
+
towgs84: '0,0,0'
|
|
3477
|
+
},
|
|
3478
|
+
EPSG_10968: {
|
|
3479
|
+
towgs84: '0,0,0'
|
|
3480
|
+
},
|
|
3481
|
+
EPSG_10875: {
|
|
3482
|
+
towgs84: '0,0,0'
|
|
3483
|
+
},
|
|
3484
|
+
EPSG_6318: {
|
|
3485
|
+
towgs84: '0,0,0'
|
|
3486
|
+
},
|
|
3487
|
+
EPSG_10910: {
|
|
3488
|
+
towgs84: '0,0,0'
|
|
3412
3489
|
}
|
|
3413
3490
|
};
|
|
3414
3491
|
|
|
@@ -6927,7 +7004,7 @@
|
|
|
6927
7004
|
return (p);
|
|
6928
7005
|
}
|
|
6929
7006
|
|
|
6930
|
-
var names$n = ['Krovak', 'krovak'];
|
|
7007
|
+
var names$n = ['Krovak', 'Krovak Modified', 'Krovak (North Orientated)', 'Krovak Modified (North Orientated)', 'krovak'];
|
|
6931
7008
|
var krovak = {
|
|
6932
7009
|
init: init$n,
|
|
6933
7010
|
forward: forward$m,
|
|
@@ -9133,7 +9210,7 @@
|
|
|
9133
9210
|
if (this.face === FACE_ENUM.RIGHT) {
|
|
9134
9211
|
lon = qsc_shift_lon_origin(lon, +HALF_PI);
|
|
9135
9212
|
} else if (this.face === FACE_ENUM.BACK) {
|
|
9136
|
-
lon = qsc_shift_lon_origin(lon,
|
|
9213
|
+
lon = qsc_shift_lon_origin(lon, +SPI);
|
|
9137
9214
|
} else if (this.face === FACE_ENUM.LEFT) {
|
|
9138
9215
|
lon = qsc_shift_lon_origin(lon, -HALF_PI);
|
|
9139
9216
|
}
|
|
@@ -9313,7 +9390,7 @@
|
|
|
9313
9390
|
if (this.face === FACE_ENUM.RIGHT) {
|
|
9314
9391
|
lp.lam = qsc_shift_lon_origin(lp.lam, -HALF_PI);
|
|
9315
9392
|
} else if (this.face === FACE_ENUM.BACK) {
|
|
9316
|
-
lp.lam = qsc_shift_lon_origin(lp.lam, -
|
|
9393
|
+
lp.lam = qsc_shift_lon_origin(lp.lam, -SPI);
|
|
9317
9394
|
} else if (this.face === FACE_ENUM.LEFT) {
|
|
9318
9395
|
lp.lam = qsc_shift_lon_origin(lp.lam, +HALF_PI);
|
|
9319
9396
|
}
|
|
@@ -9367,9 +9444,9 @@
|
|
|
9367
9444
|
/* Helper function: shift the longitude. */
|
|
9368
9445
|
function qsc_shift_lon_origin(lon, offset) {
|
|
9369
9446
|
var slon = lon + offset;
|
|
9370
|
-
if (slon < -
|
|
9447
|
+
if (slon < -SPI) {
|
|
9371
9448
|
slon += TWO_PI;
|
|
9372
|
-
} else if (slon >
|
|
9449
|
+
} else if (slon > +SPI) {
|
|
9373
9450
|
slon -= TWO_PI;
|
|
9374
9451
|
}
|
|
9375
9452
|
return slon;
|
|
@@ -10566,7 +10643,7 @@
|
|
|
10566
10643
|
nadgrid,
|
|
10567
10644
|
transform,
|
|
10568
10645
|
mgrs,
|
|
10569
|
-
version: '2.20.
|
|
10646
|
+
version: '2.20.4'
|
|
10570
10647
|
});
|
|
10571
10648
|
includedProjections(proj4);
|
|
10572
10649
|
|