https://github.com/juliuste/gauss-krueger
Convert GK2, GK3, GK4 & GK5 coordinates to WGS84 lat/lon.
https://github.com/juliuste/gauss-krueger
library
Last synced: about 1 year ago
JSON representation
Convert GK2, GK3, GK4 & GK5 coordinates to WGS84 lat/lon.
- Host: GitHub
- URL: https://github.com/juliuste/gauss-krueger
- Owner: juliuste
- License: mit
- Created: 2016-06-14T14:44:06.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-07-21T17:56:19.000Z (almost 6 years ago)
- Last Synced: 2025-04-02T05:05:25.540Z (about 1 year ago)
- Topics: library
- Language: JavaScript
- Homepage:
- Size: 53.7 KB
- Stars: 16
- Watchers: 3
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gauss-krueger
JavaScript module for converting [*Gauß-Krüger*-coordinates](https://en.wikipedia.org/wiki/Gauss%E2%80%93Kr%C3%BCger_coordinate_system) 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.
[](https://www.npmjs.com/package/gauss-krueger)
[](https://travis-ci.org/juliuste/gauss-krueger)
[](https://greenkeeper.io/)
[](https://david-dm.org/juliuste/gauss-krueger)
[](https://david-dm.org/juliuste/gauss-krueger#info=devDependencies)
[](LICENSE)
[](https://gitter.im/juliuste)
## Usage
```javascript
const gk = require('gauss-krueger')
let wgs84 = gk.toWGS({x: 4591270, y: 5819620}) // {longitude: 13.34255019849783, latitude: 52.50210050984162}
let gk = gk.toGK({longitude: 13.4, latitude: 52.5}) // {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.toGK({longitude: 13.4, latitude: 52.5}, 5) // {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](https://github.com/juliuste/gauss-krueger/issues).