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.

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).

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com