proj4 2.19.9 → 2.20.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/Gruntfile.js +2 -1
- package/README.md +2 -0
- package/bower.json +1 -1
- package/changelog.md +2 -0
- package/component.json +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/lib/common/adjust_lon.d.ts +1 -1
- package/dist/lib/defs.d.ts +2 -0
- package/dist/lib/projections/eqearth.d.ts +2 -0
- package/dist/lib/projections/moll.d.ts +7 -1
- package/dist/lib/projections/ob_tran.d.ts +78 -0
- package/dist/proj4-src.cjs +10168 -0
- package/dist/proj4-src.js +705 -338
- package/dist/proj4.cjs +1 -0
- package/dist/proj4.js +1 -1
- package/lib/common/adjust_lon.js +4 -1
- package/lib/defs.js +5 -0
- package/lib/global.js +2 -0
- package/lib/includedProjections.js +3 -1
- package/lib/projString.js +4 -0
- package/lib/projections/aea.js +2 -2
- package/lib/projections/aeqd.js +6 -6
- package/lib/projections/bonne.js +4 -4
- package/lib/projections/cass.js +2 -2
- package/lib/projections/cea.js +3 -3
- package/lib/projections/eqc.js +2 -2
- package/lib/projections/eqdc.js +3 -3
- package/lib/projections/eqearth.js +4 -2
- package/lib/projections/equi.js +2 -2
- package/lib/projections/etmerc.js +2 -2
- package/lib/projections/gnom.js +2 -2
- package/lib/projections/krovak.js +1 -1
- package/lib/projections/laea.js +2 -2
- package/lib/projections/lcc.js +2 -2
- package/lib/projections/merc.js +3 -3
- package/lib/projections/mill.js +2 -2
- package/lib/projections/moll.js +10 -3
- package/lib/projections/ob_tran.js +347 -0
- package/lib/projections/omerc.js +2 -2
- package/lib/projections/ortho.js +4 -4
- package/lib/projections/poly.js +5 -5
- package/lib/projections/robin.js +2 -2
- package/lib/projections/sinu.js +3 -3
- package/lib/projections/stere.js +6 -6
- package/lib/projections/sterea.js +2 -2
- package/lib/projections/tmerc.js +3 -3
- package/lib/projections/vandg.js +2 -2
- package/package.json +2 -2
- package/projs.js +2 -0
- package/dist/globals.d.ts +0 -77
package/Gruntfile.js
CHANGED
package/README.md
CHANGED
|
@@ -113,6 +113,8 @@ instead of writing out the whole proj definition, by default proj4 has the follo
|
|
|
113
113
|
- 'EPSG:102113'
|
|
114
114
|
- EPSG:32601 to EPSG:32660 (WGS84 / UTM zones 1 to 60 North)
|
|
115
115
|
- EPSG:32701 to EPSG:32760 (WGS84 / UTM zones 1 to 60 South)
|
|
116
|
+
- EPSG:5041 (WGS 84 / UPS North (E,N))
|
|
117
|
+
- EPSG:5042 (WGS 84 / UPS South (E,N))
|
|
116
118
|
|
|
117
119
|
Defined projections can also be accessed through the proj4.defs function (`proj4.defs('EPSG:4326')`).
|
|
118
120
|
|
package/bower.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proj4",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.0",
|
|
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/changelog.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
Change log
|
|
2
2
|
===
|
|
3
|
+
- 2.20.0: Include WGS84 UTM zones 1-60 North/South and WGS84 UPS North/South; add support for `+over`; add general oblique transformation; make projjson work with `proj4.defs(code, projjson)`
|
|
4
|
+
|
|
3
5
|
- 2.19.0: TypeScript type definitions are now included. When upgrading, please uninstall the `@types/proj4` package.
|
|
4
6
|
|
|
5
7
|
- 2.2.1: Documentation fixes and added proj4.defs('name') as an alias for proj4.defs['name'];
|
package/component.json
CHANGED
package/dist/index.d.ts
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function _default(x: any): any;
|
|
1
|
+
export default function _default(x: any, skipAdjust: any): any;
|
package/dist/lib/defs.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ export type ProjectionDefinition = {
|
|
|
33
33
|
sphere?: boolean;
|
|
34
34
|
rectified_grid_angle?: number;
|
|
35
35
|
approx?: boolean;
|
|
36
|
+
over?: boolean;
|
|
37
|
+
projStr?: string;
|
|
36
38
|
inverse: <T extends import("./core").TemplateCoordinates>(coordinates: T, enforceAxis?: boolean) => T;
|
|
37
39
|
forward: <T extends import("./core").TemplateCoordinates>(coordinates: T, enforceAxis?: boolean) => T;
|
|
38
40
|
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/** @this {import('../defs.js').ProjectionDefinition} */
|
|
2
|
+
export function init(this: import("../defs.js").ProjectionDefinition): void;
|
|
3
|
+
export class init {
|
|
4
|
+
x0: number;
|
|
5
|
+
y0: number;
|
|
6
|
+
long0: number;
|
|
7
|
+
}
|
|
2
8
|
export function forward(p: any): any;
|
|
3
9
|
export function inverse(p: any): any;
|
|
4
10
|
export const names: string[];
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/** @this {import('../defs.js').ProjectionDefinition & LocalThis} */
|
|
2
|
+
export function init(this: import("../defs.js").ProjectionDefinition & LocalThis): void;
|
|
3
|
+
export class init {
|
|
4
|
+
x0: number;
|
|
5
|
+
y0: number;
|
|
6
|
+
long0: number;
|
|
7
|
+
title: string;
|
|
8
|
+
obliqueProjection: import("../defs.js").ProjectionDefinition;
|
|
9
|
+
lamp: number;
|
|
10
|
+
cphip: number;
|
|
11
|
+
sphip: number;
|
|
12
|
+
projectionType: {
|
|
13
|
+
forward: typeof forwardOblique;
|
|
14
|
+
inverse: typeof inverseOblique;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/** @this {import('../defs.js').ProjectionDefinition & LocalThis} */
|
|
18
|
+
export function forward(this: import("../defs.js").ProjectionDefinition & LocalThis, p: any): any;
|
|
19
|
+
/** @this {import('../defs.js').ProjectionDefinition & LocalThis} */
|
|
20
|
+
export function inverse(this: import("../defs.js").ProjectionDefinition & LocalThis, p: any): any;
|
|
21
|
+
export const names: string[];
|
|
22
|
+
declare namespace _default {
|
|
23
|
+
export { init };
|
|
24
|
+
export { forward };
|
|
25
|
+
export { inverse };
|
|
26
|
+
export { names };
|
|
27
|
+
}
|
|
28
|
+
export default _default;
|
|
29
|
+
export type LocalThis = {
|
|
30
|
+
lamp: number;
|
|
31
|
+
cphip: number;
|
|
32
|
+
sphip: number;
|
|
33
|
+
projectionType: any;
|
|
34
|
+
o_proj: string | undefined;
|
|
35
|
+
o_lon_p: string | undefined;
|
|
36
|
+
o_lat_p: string | undefined;
|
|
37
|
+
o_alpha: string | undefined;
|
|
38
|
+
o_lon_c: string | undefined;
|
|
39
|
+
o_lat_c: string | undefined;
|
|
40
|
+
o_lon_1: string | undefined;
|
|
41
|
+
o_lat_1: string | undefined;
|
|
42
|
+
o_lon_2: string | undefined;
|
|
43
|
+
o_lat_2: string | undefined;
|
|
44
|
+
oLongP: number | undefined;
|
|
45
|
+
oLatP: number | undefined;
|
|
46
|
+
oAlpha: number | undefined;
|
|
47
|
+
oLongC: number | undefined;
|
|
48
|
+
oLatC: number | undefined;
|
|
49
|
+
oLong1: number | undefined;
|
|
50
|
+
oLat1: number | undefined;
|
|
51
|
+
oLong2: number | undefined;
|
|
52
|
+
oLat2: number | undefined;
|
|
53
|
+
obliqueProjection: import("..").Converter;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Forward (lng, lat) to (x, y) for oblique case
|
|
57
|
+
* @param {import('../defs.js').ProjectionDefinition & LocalThis} self
|
|
58
|
+
* @param {{x: number, y: number}} lp - lambda, phi
|
|
59
|
+
*/
|
|
60
|
+
declare function forwardOblique(self: import("../defs.js").ProjectionDefinition & LocalThis, lp: {
|
|
61
|
+
x: number;
|
|
62
|
+
y: number;
|
|
63
|
+
}): {
|
|
64
|
+
x: number;
|
|
65
|
+
y: number;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Inverse (x, y) to (lng, lat) for oblique case
|
|
69
|
+
* @param {import('../defs.js').ProjectionDefinition & LocalThis} self
|
|
70
|
+
* @param {{x: number, y: number}} lp - lambda, phi
|
|
71
|
+
*/
|
|
72
|
+
declare function inverseOblique(self: import("../defs.js").ProjectionDefinition & LocalThis, lp: {
|
|
73
|
+
x: number;
|
|
74
|
+
y: number;
|
|
75
|
+
}): {
|
|
76
|
+
x: number;
|
|
77
|
+
y: number;
|
|
78
|
+
};
|