Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convertion of Gauss-Krueger coordinates #79

Open
jnphilipp opened this issue Feb 17, 2022 · 0 comments
Open

Convertion of Gauss-Krueger coordinates #79

jnphilipp opened this issue Feb 17, 2022 · 0 comments

Comments

@jnphilipp
Copy link

I'm trying to change the calculation, so that I can convert Gauss-Krueger coordinates. As far as I understand the difference is only that they use a different ellipsoide, i.e. Bessel in stead of WGS84, and the zones are 3° wide instead of 6°.

So I changed:

E = 0.006674372230688468
R = 6377397.155

def latlon_to_zone_number(latitude, longitude):
    ...
    return int((longitude + 180) / 3) + 1

def zone_number_to_central_longitude(zone_number):
    return (zone_number - 1) * 3 - 180 + 1.5

But my coorfiantes are way off:

from_latlon(50, 10)
464170.9085434285 5538183.190657409
# excpected
3571770.862 5540886.852

What am I missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant