UNPKG

s2-tools

Version:

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

69 lines 2.07 kB
import { ProjectionBase } from '.'; import type { VectorPoint } from '../../geometry'; import type { ProjectionParams, ProjectionTransform } from '.'; /** * # Swiss Oblique Mercator * * **Classification**: Oblique Mercator * * **Available forms**: Forward and inverse, ellipsoidal only * * **Defined area**: Global * * **Alias**: somerc * * **Domain**: 2D * * **Input type**: Geodetic coordinates * * **Output type**: Projected coordinates * * ## Projection String * ``` * +proj=somerc * ``` * * ## Required Parameters * - None * * ## Optional Parameters * - `+lon_0=<value>`: Central meridian. * - `+ellps=<value>`: Ellipsoid used. * - `+R=<value>`: Radius of the projection sphere. * - `+k_0=<value>`: Scale factor. * - `+x_0=<value>`: False easting. * - `+y_0=<value>`: False northing. * * ## References: * Formules et constantes pour le Calcul pour la * projection cylindrique conforme à axe oblique et pour la transformation entre * des systèmes de référence. * http://www.swisstopo.admin.ch/internet/swisstopo/fr/home/topics/survey/sys/refsys/switzerland.parsysrelated1.31216.downloadList.77004.DownloadFile.tmp/swissprojectionfr.pdf * * ![Swiss Oblique Mercator](https://github.com/Open-S2/s2-tools/blob/master/assets/proj4/projections/images/somerc.png?raw=true) */ export declare class SwissObliqueMercator extends ProjectionBase implements ProjectionTransform { name: string; static names: string[]; lambda0: number; alpha: number; b0: number; K: number; R: number; /** * Preps an SwissObliqueMercator projection * @param params - projection specific parameters */ constructor(params?: ProjectionParams); /** * SwissObliqueMercator forward equations--mapping lon-lat to x-y * @param p - lon-lat WGS84 point */ forward(p: VectorPoint): void; /** * SwissObliqueMercator inverse equations--mapping x-y to lon-lat * @param p - SwissObliqueMercator point */ inverse(p: VectorPoint): void; } //# sourceMappingURL=somerc.d.ts.map