s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
85 lines • 2.11 kB
TypeScript
import { ProjectionBase } from './base';
import type { VectorPoint } from '../../geometry';
import type { ProjectionParams, ProjectionTransform } from '.';
/**
* # Albers Conic Equal Area Projection
*
* **Classification**: Conic
*
* **Available forms**: Forward and inverse, spherical and ellipsoidal
*
* **Defined area**: Global
*
* **Alias**: `aea`
*
* **Domain**: 2D
*
* **Input type**: Geodetic coordinates
*
* **Output type**: Projected coordinates
*
* ## Projection String
* ```
* +proj=aea +lat_1=29.5 +lat_2=42.5
* ```
*
* ## Required Parameters
* - `lat1`
* - `lat2`
*
* ## Optional Parameters
* - `lon0`
* - `ellps`
* - `R`
* - `x0`
* - `y0`
*
* ## References
* - https://en.wikipedia.org/wiki/Albers_projection
*
* 
*/
export declare class AlbersConicEqualArea extends ProjectionBase implements ProjectionTransform {
name: string;
static names: string[];
ns0: number;
temp: number;
e3: number;
sin_po: number;
cos_po: number;
t1: number;
con: number;
ms1: number;
qs1: number;
t2: number;
ms2: number;
qs2: number;
t3: number;
qs0: number;
c: number;
rh: number;
/**
* Preps an Albers Conic Equal Area projection
* @param params - projection specific parameters
*/
constructor(params?: ProjectionParams);
/**
* Albers Conical Equal Area forward equations--mapping lon-lat to x-y
* @param p - lon-lat WGS84 point
*/
forward(p: VectorPoint): void;
/**
* Albers Conical Equal Area inverse equations--mapping x-y to lon-lat
* @param p - Albers Conic Equal Area point
*/
inverse(p: VectorPoint): void;
}
/**
* Function to compute phi1, the latitude for the inverse of the
* Albers Conical Equal-Area projection.
* @param eccent - eccentricity
* @param qs - qs
* @returns - phi1
*/
export declare function phi1z(eccent: number, qs: number): number;
//# sourceMappingURL=aea.d.ts.map