prg_geo_lat_long_alt_to_geoxyz()
Abstract
Converts a 3-D position from geodetic to geocentric coordinates.
Syntax
prg_geo_lat_long_alt_to_geoxyz (lat, lon, alt, x_ptr, y_ptr, z_ptr)
| Argument | Type | Description |
|---|---|---|
lat |
double |
Latitude, in degrees. |
lon |
double |
Longitude, in degrees. |
alt |
double |
Altitude, in meters. |
x_ptr |
double * |
Pointer to x coordinate. |
y_ptr |
double * |
Pointer to y coordinate. |
z_ptr |
double * |
Pointer to z coordinate. |
Return Type
PrgT_Compcode
PrgC_Compcode_Success if the calculation is successful; PrgC_Compcode_Failure otherwise.
Header
prg_geo.h
Details
Altitude is assumed to be in meters above the earth's surface (using the current geocentric model).
X, y, and z are returned as meters from the center of the earth, in the coordinate system specified by the “geocentric_model“ preference (right sphere, left sphere, or ellipsoid).