UNPKG

swiss-projection

Version:

Convert from LV03(EPSG:21781) and LV95(EPSG:2056) to WGS84(EPSG:4326)

19 lines (15 loc) 341 B
import test from 'tape' import { toLV03, toLV95 } from '../toCH' const lngLat: [number, number] = [ 7.438633, 46.951082 ] test('toLV03', t => { const [y, x] = toLV03(lngLat) t.same(y, 600000) t.same(x, 200000) t.end() }) test('toLV95', t => { const [E, N] = toLV95(lngLat) t.same(E, 2600000) t.same(N, 1200000) t.end() })