Geoid

From-v3.4

class Geoid - "Gravity Height Model"

The Geoid class calculates difference between mean see level height and WGS84 ellipsoid height. It needs to be initialized with an earth gravity model file.

Input data have to be loaded from "Earth Gravity Model" *.pgm file with "PGMLoader". A particular model file can be loaded on https://geographiclib.sourceforge.io/html/geoid.html

Methods

Constructor

Create a Geoid instance.

@param options - object which includes parameters parsed from .pgm header options.data - binary buffer of .pgm file

Calculates difference between mean see level height and WGS84 ellipsoid height

@param lat - latitude @param lon - longitude @returns height in meters

getHeight(lat: number, lon: number): number;