gauss-krueger
JavaScript module for converting Gauß-Krüger-coordinates into WGS84 latitide and longitude, and vice versa. Supported zones: GK2 (EPSG:31466), GK3 (EPSG:31467), GK4 (EPSG:31468), GK5 (EPSG:31469), based on the the Bessel ellipsoide and Potsdam / Rauenberg datum.
Usage
const gk = let wgs84 = gk // {longitude: 13.34255019849783, latitude: 52.50210050984162} let gk = gk // {x: 4595175.488530577, y: 5819460.402152777} // The script guesses the GK zone based on the input coordinate longitude.// You can also supply a zone directly via the zone parameter:let gk5 = gk // {x: 5391482.283752493, y: 5819737.58836849}
Contributing
If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.