s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
49 lines • 2.13 kB
TypeScript
export declare const PJD_3PARAM = 1;
export declare const PJD_7PARAM = 2;
export declare const PJD_GRIDSHIFT = 3;
export declare const PJD_WGS84 = 4;
export declare const PJD_NODATUM = 5;
export declare const SRS_WGS84_SEMIMAJOR = 6378137;
export declare const SRS_WGS84_SEMIMINOR = 6356752.314;
export declare const SRS_WGS84_ESQUARED = 0.0066943799901413165;
export declare const SEC_TO_RAD = 0.00000484813681109536;
export declare const HALF_PI = 1.5707963267948966;
export declare const SIXTH = 0.16666666666666666;
export declare const RA4 = 0.04722222222222222;
export declare const RA6 = 0.022156084656084655;
export declare const EPSLN = 1e-10;
/** 1 degree = π/180 radians */
export declare const D2R = 0.017453292519943295;
/** 1 radian = 180/pi degrees */
export declare const R2D = 57.29577951308232;
/** An arc minute is 1/60th of a degree [(π/180) / 60 radians] */
export declare const MIN2R = 0.0002908882086657216;
/** An arc second is 1/60th of an arc minute, or 1/3600th of a degree [(π/180) / 3600 radians] */
export declare const SEC2R = 0.00000484813681109536;
/**
* The grad, or gradian, is a unit of angular measure where a right angle is 100 grads,
* and a full circle is 400 grads.
* [1 grad = π/200 radians]
*/
export declare const GRD2R = 0.015707963267948967;
/**
* The gon is equivalent to the grad and is primarily used in surveying.
* A full circle is 400 gons.
* [1 gon = π/200 radians]
*/
export declare const GON2R = 0.015707963267948967;
/** 1/4 π */
export declare const QUART_PI = 0.7853981633974483;
/** 2 π */
export declare const TWO_PI = 6.283185307179586;
/**
* 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 declare const SPI = 3.14159265359;
export declare const FT_TO_M = 0.3048;
export declare const US_FT_TO_M = 0.3048006096012192;
export declare const US_MOD_FT_TO_M = 0.304812252984506;
//# sourceMappingURL=values.d.ts.map