ol-proj-ch
Version:
china's gcj02 for openlayers
18 lines (17 loc) • 805 B
TypeScript
import { TransformFunction } from 'ol/proj';
/**
* whether two coordinates are equivalent
* @param c1 {number[]} coordinate 1
* @param c2 {number[]} coordinate 2
* @return {boolean} equals or not
* */
export declare const coordsEquals: (c1: number[], c2: number[]) => boolean;
/**
* transform a coordinate between more than two projection
* projection1 -(f1)-> projection2 -(f2)-> projection3
*
* @param f1 {TransformFunction} the first transform
* @param f2 {TransformFunction} the sconed transform
* @return {TransformFunction} a new transformation func which can transform a coordinate from projection a to projection b and then projection c
* */
export declare const transformChain: (f1: TransformFunction, f2: TransformFunction) => (p0: number[], p1?: number[], p2?: number) => number[];