41#ifndef __SC_EARTH_ELEVATION__
42#define __SC_EARTH_ELEVATION__
47#include <MatrixLib/MatrixLib.h>
53#define kDegreesPerPixel 0.0083333333333
58 elev_precision_none = 0,
59 elev_precision_10 = 1,
61 elev_precision_01 = 3,
62 elev_precision_001 = 4
An object used internally to manage data from a single DEM file.
Definition: sc_earth_elevation.cc:205
Manages requests for earth elevation.
Definition: sc_earth_elevation.h:86
static sc_earth_elevation * default_manager()
Get a default singleton manager which uses the maps at the default location kDefaultElevationMapsPath...
Definition: sc_earth_elevation.cc:680
double elevationForLatLon(double lat, double lon)
Return an approximate land elevation for the given actual lat & lon (degrees) - return value in km.
Definition: sc_earth_elevation.cc:767
~sc_earth_elevation()
destructor
Definition: sc_earth_elevation.cc:721
bool hasLandInGridSquare(double lat, double lon, ElevationPrecision gridSize)
Returns true if there is any land in the grid square containing the lat/lon.
Definition: sc_earth_elevation.cc:800
double elevationForEFPos(const ml_matrix &efPos, double f=FLATTENING_FACTOR)
Return an approximate land elevation for the given EF coordinate position - return value in km.
Definition: sc_earth_elevation.cc:787
sc_earth_elevation(const char *pathToDemFiles)
constructor
Definition: sc_earth_elevation.cc:694
Physical and mathematical constants.
const double FLATTENING_FACTOR
Flattening factor default value which is for the earth.
Definition: sc_constants.h:65
const double RADIUS_EARTH
Earth equatorial radius in km.
Definition: sc_constants.h:59
ElevationPrecision
Elevation precision.
Definition: sc_earth_elevation.h:57
double earth_surface_elevation(double lat, double lon)
Return surface elevation above sea level for the given lat & lon (degrees)
Definition: sc_earth_elevation.cc:158
ml_matrix earth_surface_ef_pos(const ml_matrix &efpos, double f=FLATTENING_FACTOR, double a=RADIUS_EARTH)
Compensate for Earth land elevation at the given position by increasing or decreasing magnitude.
Definition: sc_earth_elevation.cc:185