proj4 2.17.0 → 2.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/component.json +1 -1
- package/dist/lib/Point.d.ts +24 -0
- package/dist/lib/Proj.d.ts +71 -0
- package/dist/lib/adjust_axis.d.ts +1 -0
- package/dist/lib/checkSanity.d.ts +1 -0
- package/dist/lib/common/acosh.d.ts +1 -0
- package/dist/lib/common/adjust_lat.d.ts +1 -0
- package/dist/lib/common/adjust_lon.d.ts +1 -0
- package/dist/lib/common/adjust_zone.d.ts +1 -0
- package/dist/lib/common/asinh.d.ts +1 -0
- package/dist/lib/common/asinhy.d.ts +1 -0
- package/dist/lib/common/asinz.d.ts +1 -0
- package/dist/lib/common/atanh.d.ts +1 -0
- package/dist/lib/common/clens.d.ts +1 -0
- package/dist/lib/common/clens_cmplx.d.ts +1 -0
- package/dist/lib/common/cosh.d.ts +1 -0
- package/dist/lib/common/e0fn.d.ts +1 -0
- package/dist/lib/common/e1fn.d.ts +1 -0
- package/dist/lib/common/e2fn.d.ts +1 -0
- package/dist/lib/common/e3fn.d.ts +1 -0
- package/dist/lib/common/fL.d.ts +1 -0
- package/dist/lib/common/gN.d.ts +1 -0
- package/dist/lib/common/gatg.d.ts +1 -0
- package/dist/lib/common/hypot.d.ts +1 -0
- package/dist/lib/common/imlfn.d.ts +1 -0
- package/dist/lib/common/invlatiso.d.ts +1 -0
- package/dist/lib/common/iqsfnz.d.ts +1 -0
- package/dist/lib/common/latiso.d.ts +1 -0
- package/dist/lib/common/log1py.d.ts +1 -0
- package/dist/lib/common/mlfn.d.ts +1 -0
- package/dist/lib/common/msfnz.d.ts +1 -0
- package/dist/lib/common/phi2z.d.ts +1 -0
- package/dist/lib/common/pj_enfn.d.ts +1 -0
- package/dist/lib/common/pj_inv_mlfn.d.ts +1 -0
- package/dist/lib/common/pj_mlfn.d.ts +1 -0
- package/dist/lib/common/qsfnz.d.ts +1 -0
- package/dist/lib/common/sign.d.ts +1 -0
- package/dist/lib/common/sinh.d.ts +1 -0
- package/dist/lib/common/srat.d.ts +1 -0
- package/dist/lib/common/tanh.d.ts +1 -0
- package/dist/lib/common/toPoint.d.ts +5 -0
- package/dist/lib/common/tsfnz.d.ts +1 -0
- package/dist/lib/common/vincenty.d.ts +35 -0
- package/dist/lib/constants/Datum.d.ts +1715 -0
- package/dist/lib/constants/Ellipsoid.d.ts +353 -0
- package/dist/lib/constants/PrimeMeridian.d.ts +16 -0
- package/dist/lib/constants/units.d.ts +63 -0
- package/dist/lib/constants/values.d.ts +19 -0
- package/dist/lib/core.d.ts +119 -0
- package/dist/lib/datum.d.ts +10 -0
- package/dist/lib/datumUtils.d.ts +28 -0
- package/dist/lib/datum_transform.d.ts +2 -0
- package/dist/lib/defs.d.ts +57 -0
- package/dist/lib/deriveConstants.d.ts +11 -0
- package/dist/lib/extend.d.ts +1 -0
- package/dist/lib/global.d.ts +1 -0
- package/dist/lib/includedProjections.d.ts +1 -0
- package/dist/lib/index.d.ts +24 -0
- package/dist/lib/match.d.ts +1 -0
- package/dist/lib/nadgrid.d.ts +107 -0
- package/dist/lib/parseCode.d.ts +6 -0
- package/dist/lib/projString.d.ts +5 -0
- package/dist/lib/projections/aea.d.ts +83 -0
- package/dist/lib/projections/aeqd.d.ts +32 -0
- package/dist/lib/projections/bonne.d.ts +27 -0
- package/dist/lib/projections/cass.d.ts +36 -0
- package/dist/lib/projections/cea.d.ts +28 -0
- package/dist/lib/projections/eqc.d.ts +20 -0
- package/dist/lib/projections/eqdc.d.ts +71 -0
- package/dist/lib/projections/eqearth.d.ts +15 -0
- package/dist/lib/projections/equi.d.ts +40 -0
- package/dist/lib/projections/etmerc.d.ts +45 -0
- package/dist/lib/projections/gauss.d.ts +38 -0
- package/dist/lib/projections/geocent.d.ts +22 -0
- package/dist/lib/projections/geos.d.ts +51 -0
- package/dist/lib/projections/gnom.d.ts +37 -0
- package/dist/lib/projections/gstmerc.d.ts +41 -0
- package/dist/lib/projections/krovak.d.ts +34 -0
- package/dist/lib/projections/laea.d.ts +70 -0
- package/dist/lib/projections/lcc.d.ts +36 -0
- package/dist/lib/projections/longlat.d.ts +11 -0
- package/dist/lib/projections/merc.d.ts +30 -0
- package/dist/lib/projections/mill.d.ts +11 -0
- package/dist/lib/projections/moll.d.ts +11 -0
- package/dist/lib/projections/nzmg.d.ts +33 -0
- package/dist/lib/projections/omerc.d.ts +60 -0
- package/dist/lib/projections/ortho.d.ts +25 -0
- package/dist/lib/projections/poly.d.ts +32 -0
- package/dist/lib/projections/qsc.d.ts +31 -0
- package/dist/lib/projections/robin.d.ts +24 -0
- package/dist/lib/projections/sinu.d.ts +37 -0
- package/dist/lib/projections/somerc.d.ts +35 -0
- package/dist/lib/projections/stere.d.ts +52 -0
- package/dist/lib/projections/sterea.d.ts +33 -0
- package/dist/lib/projections/tmerc.d.ts +38 -0
- package/dist/lib/projections/tpers.d.ts +45 -0
- package/dist/lib/projections/utm.d.ts +19 -0
- package/dist/lib/projections/vandg.d.ts +28 -0
- package/dist/lib/projections.d.ts +10 -0
- package/dist/lib/transform.d.ts +8 -0
- package/dist/proj4-src.js +849 -247
- package/dist/proj4.js +1 -1
- package/dist/projs.d.ts +1 -0
- package/lib/Point.js +9 -3
- package/lib/Proj.js +25 -1
- package/lib/adjust_axis.js +1 -0
- package/lib/common/toPoint.js +4 -0
- package/lib/common/vincenty.js +123 -0
- package/lib/constants/PrimeMeridian.js +16 -15
- package/lib/core.js +154 -16
- package/lib/defs.js +65 -5
- package/lib/index.js +17 -11
- package/lib/nadgrid.js +70 -0
- package/lib/parseCode.js +5 -1
- package/lib/projString.js +6 -0
- package/lib/projections/aea.js +25 -0
- package/lib/projections/aeqd.js +22 -26
- package/lib/projections/bonne.js +11 -0
- package/lib/projections/cass.js +11 -0
- package/lib/projections/cea.js +7 -1
- package/lib/projections/eqdc.js +29 -7
- package/lib/projections/equi.js +11 -2
- package/lib/projections/etmerc.js +12 -0
- package/lib/projections/gauss.js +12 -0
- package/lib/projections/geos.js +16 -0
- package/lib/projections/gnom.js +11 -2
- package/lib/projections/gstmerc.js +12 -0
- package/lib/projections/laea.js +30 -11
- package/lib/projections/lcc.js +10 -0
- package/lib/projections/merc.js +9 -0
- package/lib/projections/omerc.js +29 -4
- package/lib/projections/ortho.js +7 -0
- package/lib/projections/poly.js +14 -0
- package/lib/projections/qsc.js +11 -0
- package/lib/projections/sinu.js +11 -0
- package/lib/projections/somerc.js +10 -0
- package/lib/projections/stere.js +16 -2
- package/lib/projections/sterea.js +10 -0
- package/lib/projections/tmerc.js +8 -0
- package/lib/projections/tpers.js +24 -3
- package/lib/projections/utm.js +1 -0
- package/lib/projections/vandg.js +9 -2
- package/lib/transform.js +9 -0
- package/package.json +8 -6
- package/tsconfig.json +14 -0
- package/.github/workflows/build-and-test.yml +0 -69
- package/.nyc_output/6b047fc9-1bf2-4565-9e8a-9c0defc09dd7.json +0 -1
- package/.nyc_output/e2c5d0cc-9478-4f26-ad2f-de246d4c35de.json +0 -1
- package/.nyc_output/f4b0e40f-04ca-4b6d-bfeb-51d617db9841.json +0 -1
- package/.nyc_output/processinfo/6b047fc9-1bf2-4565-9e8a-9c0defc09dd7.json +0 -1
- package/.nyc_output/processinfo/e2c5d0cc-9478-4f26-ad2f-de246d4c35de.json +0 -1
- package/.nyc_output/processinfo/f4b0e40f-04ca-4b6d-bfeb-51d617db9841.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** @this {import('../defs.js').ProjectionDefinition & LocalThis} */
|
|
2
|
+
export function init(this: import("../defs.js").ProjectionDefinition & LocalThis): void;
|
|
3
|
+
export class init {
|
|
4
|
+
mode: number;
|
|
5
|
+
sinph0: number;
|
|
6
|
+
cosph0: number;
|
|
7
|
+
pn1: number;
|
|
8
|
+
p: number;
|
|
9
|
+
rp: number;
|
|
10
|
+
h1: number;
|
|
11
|
+
pfact: number;
|
|
12
|
+
es: number;
|
|
13
|
+
cg: number;
|
|
14
|
+
sg: number;
|
|
15
|
+
cw: number;
|
|
16
|
+
sw: number;
|
|
17
|
+
}
|
|
18
|
+
export function forward(p: any): any;
|
|
19
|
+
export function inverse(p: any): any;
|
|
20
|
+
export const names: string[];
|
|
21
|
+
declare namespace _default {
|
|
22
|
+
export { init };
|
|
23
|
+
export { forward };
|
|
24
|
+
export { inverse };
|
|
25
|
+
export { names };
|
|
26
|
+
}
|
|
27
|
+
export default _default;
|
|
28
|
+
export type LocalThis = {
|
|
29
|
+
mode: number;
|
|
30
|
+
sinph0: number;
|
|
31
|
+
cosph0: number;
|
|
32
|
+
pn1: number;
|
|
33
|
+
h: number;
|
|
34
|
+
rp: number;
|
|
35
|
+
p: number;
|
|
36
|
+
h1: number;
|
|
37
|
+
pfact: number;
|
|
38
|
+
es: number;
|
|
39
|
+
tilt: number;
|
|
40
|
+
azi: number;
|
|
41
|
+
cg: number;
|
|
42
|
+
sg: number;
|
|
43
|
+
cw: number;
|
|
44
|
+
sw: number;
|
|
45
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** @this {import('../defs.js').ProjectionDefinition} */
|
|
2
|
+
export function init(this: import("../defs.js").ProjectionDefinition): void;
|
|
3
|
+
export class init {
|
|
4
|
+
lat0: number;
|
|
5
|
+
long0: number;
|
|
6
|
+
x0: number;
|
|
7
|
+
y0: number;
|
|
8
|
+
k0: number;
|
|
9
|
+
forward: typeof import("./etmerc").forward;
|
|
10
|
+
inverse: typeof import("./etmerc").inverse;
|
|
11
|
+
}
|
|
12
|
+
export const dependsOn: string;
|
|
13
|
+
export const names: string[];
|
|
14
|
+
declare namespace _default {
|
|
15
|
+
export { init };
|
|
16
|
+
export { names };
|
|
17
|
+
export { dependsOn };
|
|
18
|
+
}
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} LocalThis
|
|
3
|
+
* @property {number} R - Radius of the Earth
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Initialize the Van Der Grinten projection
|
|
7
|
+
* @this {import('../defs.js').ProjectionDefinition & LocalThis}
|
|
8
|
+
*/
|
|
9
|
+
export function init(this: import("../defs.js").ProjectionDefinition & LocalThis): void;
|
|
10
|
+
export class init {
|
|
11
|
+
R: number;
|
|
12
|
+
}
|
|
13
|
+
export function forward(p: any): any;
|
|
14
|
+
export function inverse(p: any): any;
|
|
15
|
+
export const names: string[];
|
|
16
|
+
declare namespace _default {
|
|
17
|
+
export { init };
|
|
18
|
+
export { forward };
|
|
19
|
+
export { inverse };
|
|
20
|
+
export { names };
|
|
21
|
+
}
|
|
22
|
+
export default _default;
|
|
23
|
+
export type LocalThis = {
|
|
24
|
+
/**
|
|
25
|
+
* - Radius of the Earth
|
|
26
|
+
*/
|
|
27
|
+
R: number;
|
|
28
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function getNormalizedProjName(n: any): any;
|
|
2
|
+
export function get(name: any): any;
|
|
3
|
+
export function start(): void;
|
|
4
|
+
declare namespace _default {
|
|
5
|
+
export { start };
|
|
6
|
+
export { add };
|
|
7
|
+
export { get };
|
|
8
|
+
}
|
|
9
|
+
export default _default;
|
|
10
|
+
export function add(proj: any, i: any): any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {import('./defs').ProjectionDefinition} source
|
|
3
|
+
* @param {import('./defs').ProjectionDefinition} dest
|
|
4
|
+
* @param {import('./core').TemplateCoordinates} point
|
|
5
|
+
* @param {boolean} enforceAxis
|
|
6
|
+
* @returns {import('./core').InterfaceCoordinates | undefined}
|
|
7
|
+
*/
|
|
8
|
+
export default function transform(source: import("./defs").ProjectionDefinition, dest: import("./defs").ProjectionDefinition, point: import("./core").TemplateCoordinates, enforceAxis: boolean): import("./core").InterfaceCoordinates | undefined;
|