Terrain.GetHeight(Variable, Variable) Method

Top 

Description

Returns the terrain height with respect to the Earth ellipsoid at the specified latitude and longitude. The Earth uses the WGS84 ellipsoid by default. This method will raise an error if the provided latitude and longitude are outside the bounds of any available terrain data. The Terrain.ContainsLocation() method can be used to check whether a location is within the bounds of any of the available terrain data.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

Terrain.GetHeight(

Variable latitude,


Variable longitude)

 

 

Arguments

latitude


Description:

Latitude to query.

Valid Range:

-90 ≤ latitude ≤ 90

 

 

longitude


Description:

Longitude to query.

Valid Range:

-360 ≤ longitude ≤ 360

 

 

 

Return Value

Type:

number

Units:

km

 

 

Returns the terrain height with respect to the Earth ellipsoid at the specified latitude and longitude.

 

Syntax

myVariable1 = myTerrain1.GetHeight(myVariable2, myVariable3);

 

 

See also

Terrain Object