cesium-native
0.41.0
|
Loads and queries heights from an Earth Gravitational Model 1996 (EGM96) grid. More...
#include <CesiumGeospatial/EarthGravitationalModel1996Grid.h>
Public Member Functions | |
double | sampleHeight (const Cartographic &position) const |
Samples the height at the given position. More... | |
Static Public Member Functions | |
static std::optional< EarthGravitationalModel1996Grid > | fromBuffer (const gsl::span< const std::byte > &buffer) |
Attempts to create a EarthGravitationalModel1996Grid from the given buffer. More... | |
Loads and queries heights from an Earth Gravitational Model 1996 (EGM96) grid.
EGM96 is a standard geopotential model of the earth's surface, which can be used to obtain an approximation of the mean sea level (MSL) height at any location on Earth.
Definition at line 24 of file EarthGravitationalModel1996Grid.h.
|
static |
Attempts to create a EarthGravitationalModel1996Grid from the given buffer.
This method expects the buffer to contain the contents of the WW15MGH.DAC 15-arcminute grid. It must be at least 721 * 1440 * 2 = 2,076,480 bytes. Any additional bytes at the end of the buffer are ignored.
std::nullopt
if the buffer cannot be interpreted as an EGM96 grid. double CesiumGeospatial::EarthGravitationalModel1996Grid::sampleHeight | ( | const Cartographic & | position | ) | const |
Samples the height at the given position.
position | The position to sample. The height is ignored. |