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

geometric altitude to wgs84 altitude #3

Open
tommynanny opened this issue Feb 21, 2023 · 0 comments
Open

geometric altitude to wgs84 altitude #3

tommynanny opened this issue Feb 21, 2023 · 0 comments

Comments

@tommynanny
Copy link

tommynanny commented Feb 21, 2023

Hi, I am very new to gis, but if I have lat, long, and a geometric altitude (above mean sea level), can I use this package to convert the geometric altitude to the wgs84 altitude or egm96 altitude?

lat, lng := 39.865315, -121.32870643118366
loc := egm96.NewLocationGeodetic(lat, lng, 0)
h, err := loc.HeightAboveMSL()
if err != nil {
log.Panicln("err", err)
}

however, I got:

2023/02/22 09:53:41 err requested longitude -121.33 lies outside of EGM96 longitude range  0.0 to 360.0
panic: err requested longitude -121.33 lies outside of EGM96 longitude range  0.0 to 360.0

image

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