tmm_elev_point_get()

Note: Requires Terrain Modeling Module functionality

Abstract

Returns the height of the terrain at a specified position.

Syntax

tmm_elev_point_get (latitude, longitude)
Argument Type Description
latitude float the latitude of the position, in degrees
longitude float the longitude of the position, in degrees

Return Value

terrain_height

The height of the terrain at the specified position, in meters above sea level. If the height cannot be obtained, returns one of the constants in Table 88 “TMM Elevation Data Status Symbolic Constants“ on page 27.

tmm.h

Example

terrain_height = tmm_elev_point_get (tx_lat, tx_long);
if (terrain_height == TMMC_ELEV_UNKNOWN)
    {
    terrain_height = 0.0;
    }
if (terrain_height == TMMC_ELEV_DATA_MISSING)
    {
    terrain_height = 0.0;
    }
total_height = terrain_height + tx_alt;

Details

None.

Purpose

This function is used to get the height of the terrain at a specified latitude and longitude.

Errors

  • The terrain data directory (<name>) is invalid. Unable to open terrain file.

Reference

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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