s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
61 lines • 1.68 kB
TypeScript
import { ProjectionBase } from '.';
import type { VectorPoint } from '../../geometry';
import type { ProjectionParams, ProjectionTransform } from '.';
/**
* # Robinson
*
* **Classification**: Pseudocylindrical
*
* **Available forms**: Forward and inverse, spherical projection
*
* **Defined area**: Global
*
* **Alias**: robin
*
* **Domain**: 2D
*
* **Input type**: Geodetic coordinates
*
* **Output type**: Projected coordinates
*
* ## Projection String
* ```
* +proj=robin
* ```
*
* ## Required Parameters
* - None
*
* ## Optional Parameters
* - `+lon_0=<value>`: Central meridian.
* - `+R=<value>`: Radius of the projection sphere.
* - `+x_0=<value>`: False easting.
* - `+y_0=<value>`: False northing.
*
* 
*/
export declare class Robinson extends ProjectionBase implements ProjectionTransform {
name: string;
static names: string[];
x0: number;
y0: number;
long0: number;
/**
* Preps an Robinson projection
* Based on https://github.com/OSGeo/proj.4/blob/master/src/PJ_robin.c
* Polynomial coeficients from http://article.gmane.org/gmane.comp.gis.proj-4.devel/6039
* @param params - projection specific parameters
*/
constructor(params?: ProjectionParams);
/**
* Robinson forward equations--mapping lon-lat to x-y
* @param p - lon-lat WGS84 point
*/
forward(p: VectorPoint): void;
/**
* Robinson inverse equations--mapping x-y to lon-lat
* @param p - Robinson point
*/
inverse(p: VectorPoint): void;
}
//# sourceMappingURL=robin.d.ts.map