UNPKG

ol-proj-ch

Version:
67 lines (66 loc) 1.79 kB
/** * BD09 Coordinate Reference System. * This crs is applied to web map and apps of baidu co. * It is secondly encrypted crs based on GCJ02 crs. * * @Author: wkgreat * @Date: 2020/08/08 * */ /** * the code of bd09 * @const * @type {string} * */ import { Extent } from 'ol/extent'; import Projection from 'ol/proj/Projection'; export declare const CODE = "BD09"; /** * radius of WGS84 ellipsoid * @const * @type {number} * */ export declare const RADIUS: number; /** * extent of gcj02 * @const * @type {ol/Extent} * */ export declare const EXTENT: Extent; /** * coefficient between degree and radian * @const * @type {number} * */ export declare const METERS_PER_UNIT: number; /** * the class of bd09 (baidu) coordinate reference system * @class BD09Projection * */ declare class BD09Projection extends Projection { constructor(code: string, opt_axisOrientation?: string); } /** * all codes of bd09 reference system * @const * @type {BD09Projection[]} * */ export declare const PROJECTIONS: BD09Projection[]; /** * transform coordinate from BD09 to gcj02 * @function * @param {number[]} input input coordinate * @param {number[]} opt_output output coordinate * @param {number} opt_dimension dimension of coordinate * @return {number[]} tranformed coordinate * */ export declare function toGCJ02(input: number[], opt_output: number[], opt_dimension: number): number[]; /** * transform coordinate from GCJ02 to BD09 * @function * @param {number[]} input input coordinate * @param {number[]} opt_output output coordinate * @param {number} opt_dimension dimension of coordinate * @return {number[]} tranformed coordinate * */ export declare function fromGcj02(input: number[], opt_output: number[], opt_dimension: number): number[]; export {};