|
GeoTessCPP
2.1
Software to facilitate storage and retrieval of 3D information about the Earth.
|
#include <EarthShape.h>
Public Member Functions | |
| EarthShape (const string &earthShape="WGS84") | |
| virtual | ~EarthShape () |
| virtual int | class_size () const |
| double | getEarthRadius (const double *const v) |
| double | getEccentricitySqr () const |
| double | getEquatorialRadius () const |
| double | getGeocentricLat (const double &lat) |
| double | getGeocentricLatDegrees (const double &lat) |
| double | getGeographicLat (const double &lat) |
| double | getGeographicLatDegrees (const double &lat) |
| double | getInverseFlattening () const |
| double | getLat (const double *const v) |
| double | getLatDegrees (const double *const v) |
| string | getLatLonString (const double *const v) |
| double | getLon (const double *const v) |
| double | getLonDegrees (const double *const v) |
| const string & | getShapeName () const |
| double * | getVector (const double &lat, const double &lon) |
| double * | getVector (const double &lat, const double &lon, double *v) |
| void | getVectorDegrees (const double &lat, const double &lon, double *v) |
| double * | getVectorDegrees (const double &lat, const double &lon) |
| bool | isConstantRadius () const |
| bool | isSphere () const |
| void | setEarthShape (const string &earthShape) |
Static Public Member Functions | |
| static string | class_name () |
EarthShape defines the ellipsoid that is to be used to convert between geocentric and geographic latitude and between depth and radius. The default is WGS84. The following EarthShapes are defined:
|
inline |
Define the shape of the Earth that is to be used to convert between geocentric and geographic latitude and between depth and radius. The default is WGS84.
| earthShape | one of SPHERE, GRS80, GRS80_RCONST, WGS84, WGS84_RCONST |
|
inlinevirtual |
Destructor.
|
inlinestatic |
Returns the class name.
|
inlinevirtual |
Returns the class size.
|
inline |
Retrieve the radius of the Earth in km at the position specified by an Earth-centered unit vector. Uses the WGS84 ellipsoid.
| v | Earth-centered unit vector |
|
inline |
|
inline |
|
inline |
Return geocentric latitude given a geographic latitude
| lat | geographic latitude in radians |
|
inline |
Return geocentric latitude given a geographic latitude
| lat | geographic latitude in degrees |
|
inline |
Return geographic latitude given a geocentric latitude
| lat | geocentric latitude in radians |
|
inline |
Return geographic latitude given a geocentric latitude
| lat | geocentric latitude in degrees |
|
inline |
|
inline |
Convert a 3-component unit vector to geographic latitude, in radians.
| v | 3-component unit vector |
|
inline |
Convert a 3-component unit vector to geographic latitude, in degrees.
| v | 3-component unit vector |
|
inline |
| v | unit vector to be converted to lat, lon string |
|
inline |
Convert a 3-component unit vector to a longitude, in radians.
| v | 3 component unit vector |
|
inline |
Convert a 3-component unit vector to a longitude, in degrees.
| v | 3 component unit vector |
|
inline |
|
inline |
Convert geographic lat, lon into a geocentric unit vector. The x-component points toward lat,lon = 0, 0. The y-component points toward lat,lon = 0, PI/2. The z-component points toward north pole.
| lat | geographic latitude in radians. |
| lon | longitude in radians. |
|
inline |
Convert geographic lat, lon into a geocentric unit vector. The x-component points toward lat,lon = 0, 0. The y-component points toward lat,lon = 0, PI/2 The z-component points toward north pole.
| lat | geographic latitude in radians. |
| lon | longitude in radians. |
| v | 3-component unit vector. |
|
inline |
Convert geographic lat, lon into a geocentric unit vector. The x-component points toward lat,lon = 0, 0. The y-component points toward lat,lon = 0, 90. The z-component points toward north pole.
| lat | geographic latitude in degrees. |
| lon | longitude in degrees. |
| v | 3 component unit vector. |
|
inline |
Convert geographic lat, lon into a geocentric unit vector. The x-component points toward lat,lon = 0, 0. The y-component points toward lat,lon = 0, 90. The z-component points toward north pole.
| lat | geographic latitude in degrees. |
| lon | longitude in degrees. |
| v | 3 component unit vector. |
|
inline |
|
inline |
|
inline |
Define the shape of the Earth that is to be used to convert between geocentric and geographic latitude and between depth and radius. The default is WGS84.
| earthShape | one of SPHERE, GRS80, GRS80_RCONST, WGS84, WGS84_RCONST, IERS2003, IERS2003_RCONST |
1.8.1.1