UNPKG

s2-tools

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

84 lines 2.45 kB
import { ProjectionBase } from '.'; import type { VectorPoint } from '../../geometry'; import type { ProjectionParams, ProjectionTransform } from '.'; export declare const S_POLE = 1; export declare const N_POLE = 2; export declare const EQUIT = 3; export declare const OBLIQ = 4; /** Lambert Azimuthal Equal Area projection parameters */ export type APA = [number, number, number]; /** * # Lambert Azimuthal Equal Area * * **Classification**: Azimuthal * * **Available forms**: Forward and inverse, spherical and ellipsoidal * * **Defined area**: Global * * **Alias**: laea * * **Domain**: 2D * * **Input type**: Geodetic coordinates * * **Output type**: Projected coordinates * * ## Projection String * ``` * +proj=laea * ``` * * ## Required Parameters * - None, all parameters are optional for this projection. * * ## Optional Parameters * - `+lon_0`: Longitude of projection center. Defaults to `0`. * - `+lat_0`: Latitude of projection center. Defaults to `0`. * - `+ellps`: Ellipsoid. Defaults to `WGS84`. * - `+R`: Radius of the sphere. * - `+x_0`: False easting. Defaults to `0`. * - `+y_0`: False northing. Defaults to `0`. * * Reference * "New Equal-Area Map Projections for Noncircular Regions", John P. Snyder, * The American Cartographer, Vol 15, No. 4, October 1988, pp. 341-355. * * ![Lambert Azimuthal Equal Area](https://github.com/Open-S2/s2-tools/blob/master/assets/proj4/projections/images/laea.png?raw=true) */ export declare class LambertAzimuthalEqualArea extends ProjectionBase implements ProjectionTransform { name: string; static names: string[]; mode: number; S_POLE: number; N_POLE: number; EQUIT: number; OBLIQ: number; qp: number; mmf: number; apa: APA; dd: number; rq: number; xmf: number; ymf: number; sinb1: number; cosb1: number; sinph0: number; cosph0: number; /** * Preps an LambertAzimuthalEqualArea projection * @param params - projection specific parameters */ constructor(params?: ProjectionParams); /** * LambertAzimuthalEqualArea forward equations--mapping lon-lat to x-y * @param p - lon-lat WGS84 point */ forward(p: VectorPoint): void; /** * LambertAzimuthalEqualArea inverse equations--mapping x-y to lon-lat * @param p - LambertAzimuthalEqualArea point */ inverse(p: VectorPoint): void; } //# sourceMappingURL=laea.d.ts.map