Skip to content

geometric altitude to wgs84 altitude #3

@tommynanny

Description

@tommynanny

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions