geometric altitude to wgs84 altitude
tommynanny opened this issue · 0 comments
tommynanny commented
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