s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
77 lines • 2.2 kB
TypeScript
import { ProjectionBase } from './base';
import type { En } from '../common';
import type { VectorPoint } from '../../geometry';
import type { ProjectionParams, ProjectionTransform } from '.';
/**
* # Bonne (Werner lat_1=90) Projection
*
* **Classification**: Miscellaneous
*
* **Available forms**: Forward and inverse, spherical and ellipsoidal
*
* **Defined area**: Global
*
* **Alias**: `bonne`
*
* **Domain**: 2D
*
* **Input type**: Geodetic coordinates
*
* **Output type**: Projected coordinates
*
* ## Projection String
* ```
* +proj=bonne +lat_1=10
* ```
*
* ## Required Parameters
* - `lat1`: Latitude of first standard parallel
*
* ## Optional Parameters
* - `lon0`: Longitude of origin
* - `ellps`: Ellipsoid name
* - `R`: Radius of sphere
* - `x0`: False easting
* - `y0`: False northing
*
* 
*/
export declare class BonneWerner extends ProjectionBase implements ProjectionTransform {
name: string;
static names: string[];
phi1: number;
en: En;
m1: number;
am1: number;
cphi1: number;
/**
* Preps an Albers Conic Equal Area projection
* @param params - projection specific parameters
*/
constructor(params?: ProjectionParams);
/**
* Bonne Werner Easting forward equations--mapping lon-lat to x-y
* @param p - lon-lat WGS84 point
* @returns - an Bonne Werner point
*/
eFwd(p: VectorPoint): VectorPoint;
/**
* Bonne Werner Easting inverse equations--mapping x-y to lon-lat
* @param p - Bonne Werner point
* @returns - lon-lat WGS84 point
*/
eInv(p: VectorPoint): VectorPoint;
/**
* Bonne Werner Southing forward equations--mapping lon-lat to x-y
* @param p - lon-lat WGS84 point
* @returns - an Bonne Werner point
*/
sFwd(p: VectorPoint): VectorPoint;
/**
* Bonne Werner Southing inverse equations--mapping x-y to lon-lat
* @param p - Bonne Werner point
* @returns - lon-lat WGS84 point
*/
sInv(p: VectorPoint): VectorPoint;
}
//# sourceMappingURL=bonne.d.ts.map