s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
89 lines • 2.73 kB
TypeScript
import { ProjectionBase } from '.';
import type { VectorPoint } from '../../geometry';
import type { ProjectionParams, ProjectionTransform } from '.';
/**
* # Krovak
*
* **Classification**: Conformal Conical
*
* **Available forms**: Forward and inverse, spherical and ellipsoidal
*
* **Defined area**: Global, but more accurate around Czech Republic and Slovakia
*
* **Alias**: krovak
*
* **Domain**: 2D
*
* **Input type**: Geodetic coordinates
*
* **Output type**: Projected coordinates
*
* ## Projection String
* ```
* +proj=krovak
* ```
*
* By default, coordinates in the forward direction are output in easting, northing,
* and negative in the Czech Republic and Slovakia, with absolute value of
* easting/westing being smaller than absolute value of northing/southing.
*
* See also `mod_krovak` for a variation of Krovak used with the S-JTSK/05 datum
* in the Czech Republic.
*
* ## Required Parameters
* - None, all parameters are optional for this projection.
*
* ## Optional Parameters
* - `+czech`: Reverses the sign of the output coordinates for use in the Czech Republic and Slovakia (positive values become westing and southing).
* - `+lon_0`: Longitude of projection center. Defaults to `24°50'` (24.8333).
* - `+lat_0`: Latitude of projection center. Defaults to `49.5`.
* - `+k_0`: Scale factor. Defaults to `0.9999`.
* - `+x_0`: False easting. Defaults to `0`.
* - `+y_0`: False northing. Defaults to `0`.
*
* ## Notes
* - The latitude of the pseudo standard parallel is hardcoded to `78.5°`.
* - The ellipsoid used is Bessel by default.
* - Before PROJ 9.4, using custom `x_0` or `y_0` without the `+czech` switch resulted in incorrect values.
*
* 
*/
export declare class Krovak extends ProjectionBase implements ProjectionTransform {
name: string;
static names: string[];
s45: number;
s90: number;
fi0: number;
e2: number;
e: number;
alfa: number;
uq: number;
u0: number;
g: number;
a: number;
es: number;
k1: number;
n0: number;
n: number;
s0: number;
ro0: number;
ad: number;
k: number;
czech?: number;
/**
* Preps an Krovak projection
* @param params - projection specific parameters
*/
constructor(params?: ProjectionParams);
/**
* Krovak forward equations--mapping lon-lat to x-y
* @param p - lon-lat WGS84 point
*/
forward(p: VectorPoint): void;
/**
* Krovak inverse equations--mapping x-y to lon-lat
* @param p - Krovak point
*/
inverse(p: VectorPoint): void;
}
//# sourceMappingURL=krovak.d.ts.map