tethys-feature-service/node_modules/proj4/lib/constants/values.js
2023-10-02 15:04:02 +02:00

30 lines
1.3 KiB
JavaScript

export var PJD_3PARAM = 1;
export var PJD_7PARAM = 2;
export var PJD_GRIDSHIFT = 3;
export var PJD_WGS84 = 4; // WGS84 or equivalent
export var PJD_NODATUM = 5; // WGS84 or equivalent
export var SRS_WGS84_SEMIMAJOR = 6378137.0; // only used in grid shift transforms
export var SRS_WGS84_SEMIMINOR = 6356752.314; // only used in grid shift transforms
export var SRS_WGS84_ESQUARED = 0.0066943799901413165; // only used in grid shift transforms
export var SEC_TO_RAD = 4.84813681109535993589914102357e-6;
export var HALF_PI = Math.PI/2;
// ellipoid pj_set_ell.c
export var SIXTH = 0.1666666666666666667;
/* 1/6 */
export var RA4 = 0.04722222222222222222;
/* 17/360 */
export var RA6 = 0.02215608465608465608;
export var EPSLN = 1.0e-10;
// you'd think you could use Number.EPSILON above but that makes
// Mollweide get into an infinate loop.
export var D2R = 0.01745329251994329577;
export var R2D = 57.29577951308232088;
export var FORTPI = Math.PI/4;
export var TWO_PI = Math.PI * 2;
// SPI is slightly greater than Math.PI, so values that exceed the -180..180
// degree range by a tiny amount don't get wrapped. This prevents points that
// have drifted from their original location along the 180th meridian (due to
// floating point error) from changing their sign.
export var SPI = 3.14159265359;