UNPKG

s2-tools

Version:

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

59 lines 1.61 kB
import { ProjectionBase } from '.'; import type { VectorPoint } from '../../geometry'; import type { ProjectionParams, ProjectionTransform } from '.'; /** * # Mollweide * * **Classification**: Pseudocylindrical * * **Available forms**: Forward and inverse, spherical projection * * **Defined area**: Global * * **Alias**: moll * * **Domain**: 2D * * **Input type**: Geodetic coordinates * * **Output type**: Projected coordinates * * ## Projection String * ``` * +proj=moll * ``` * * ## Required Parameters * - None * * ## Optional Parameters * - `+lon_0`: Longitude of projection center. Defaults to `0`. * - `+R`: Radius of the sphere. * - `+x_0`: False easting. Defaults to `0`. * - `+y_0`: False northing. Defaults to `0`. * * ## Further reading * - [Wikipedia on Mollweide Projection](https://en.wikipedia.org/wiki/Mollweide_projection) * * ![Mollweide](https://github.com/Open-S2/s2-tools/blob/master/assets/proj4/projections/images/moll.png?raw=true) */ export declare class Mollweide extends ProjectionBase implements ProjectionTransform { name: string; static names: string[]; /** * Preps an Mollweide projection * @param params - projection specific parameters */ constructor(params?: ProjectionParams); /** * Mollweide forward equations--mapping lon-lat to x-y * @param p - lon-lat WGS84 point */ forward(p: VectorPoint): void; /** * Mollweide inverse equations--mapping x-y to lon-lat * @param p - Mollweide point */ inverse(p: VectorPoint): void; } //# sourceMappingURL=moll.d.ts.map