UNPKG

s2-tools

Version:

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

61 lines 1.87 kB
import { ProjectionBase } from '.'; import type { En } from '../common'; import type { VectorPoint } from '../../geometry'; import type { ProjectionParams, ProjectionTransform } from '.'; /** * # Transverse Mercator * * **Classification**: Transverse and oblique cylindrical * * **Available forms**: Forward and inverse, spherical and ellipsoidal * * **Defined area**: Global, with full accuracy within 3900 km of the central meridian * * **Alias**: tmerc * * **Domain**: 2D * * **Input type**: Geodetic coordinates * * **Output type**: Projected coordinates * * ## Projection String * ``` * +proj=tmerc * ``` * * ## Required Parameters * - `+lon_0`: Longitude of the central meridian. * * ## Optional Parameters * - `+approx`: Use the faster Evenden-Snyder algorithm, less accurate beyond 3°. * - `+algo`: Select algorithm from "auto", "evenden_snyder", or "poder_engsager". * - `+lat_0`: Latitude of origin. * - `+k_0`: Scale factor on the central meridian. * - `+x_0`: False easting. * - `+y_0`: False northing. * * ![Transverse Mercator](https://github.com/Open-S2/s2-tools/blob/master/assets/proj4/projections/images/tmerc.png?raw=true) */ export declare class TransverseMercator extends ProjectionBase implements ProjectionTransform { name: string; static names: string[]; en: En; ml0: number; /** * Preps an TransverseMercator projection * @param params - projection specific parameters */ constructor(params?: ProjectionParams); /** * TransverseMercator forward equations--mapping lon-lat to x-y * @param p - lon-lat WGS84 point */ forward(p: VectorPoint): void; /** * TransverseMercator inverse equations--mapping x-y to lon-lat * @param p - TransverseMercator point */ inverse(p: VectorPoint): void; } //# sourceMappingURL=tmerc.d.ts.map