s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
76 lines • 2.3 kB
TypeScript
import { ProjectionBase } from './base';
import type { VectorPoint } from '../../geometry';
import type { ProjectionParams, ProjectionTransform } from '.';
/**
* # Equal Area Cylindrical Projection
*
* **Classification**: Cylindrical
*
* **Available forms**: Forward and Inverse, spherical and ellipsoidal
*
* **Defined area**: Global
*
* **Alias**: `cea`
*
* **Domain**: 2D
*
* **Input type**: Geodetic coordinates
*
* **Output type**: Projected coordinates
*
* ## Projection String
* ```
* +proj=cea
* ```
*
* ## Named Specializations
*
* The Equal Area Cylindrical projection is sometimes known under other names when instantiated with particular values of the `lat_ts` parameter:
*
* - **Lambert cylindrical equal-area**: `lat_ts = 0`
* - **Behrmann**: `lat_ts = 30`
* - **Gall-Peters**: `lat_ts = 45`
*
* ## Optional Parameters
* - `lat_ts`: Latitude of true scale
* - `lon_0`: Longitude of origin
* - `ellps`: Ellipsoid
* - `R`: Radius of the sphere
* - `k_0`: Scaling factor
* - `x_0`: False easting
* - `y_0`: False northing
*
* > **Note**: `lat_ts` and `k_0` are mutually exclusive. If `lat_ts` is specified, it is equivalent to setting `k_0` to:
* >
* > ```
* > k_0 = cos(lat_ts) / sqrt(1 - e^2 * sin^2(lat_ts))
* > ```
*
* reference:
* "Cartographic Projection Procedures for the UNIX Environment-
* A User's Manual" by Gerald I. Evenden,
* USGS Open File Report 90-284and Release 4 Interim Reports (2003)
*
* 
*/
export declare class CylindricalEqualArea extends ProjectionBase implements ProjectionTransform {
name: string;
static names: string[];
latTs: number;
/**
* Preps an Equal Area Cylindrical projection
* @param params - projection specific parameters
*/
constructor(params?: ProjectionParams);
/**
* Equal Area Cylindrical forward equations--mapping lon-lat to x-y
* @param p - lon-lat WGS84 point
*/
forward(p: VectorPoint): void;
/**
* Equal Area Cylindrical inverse equations--mapping x-y to lon-lat
* @param p - Equal Area Cylindrical point
*/
inverse(p: VectorPoint): void;
}
//# sourceMappingURL=cea.d.ts.map