Click or drag to resize

TerrainProviderGetHeightRelativeToShape Method

Gets the interpolated height of the terrain at the specified longitude and latitude relative to the provider's Shape. This method takes into account the heights of any reference surfaces.

Namespace:  AGI.Foundation.Terrain
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 19.1.398.0 (19.1.398.0)
public double GetHeightRelativeToShape(
	double longitude,
	double latitude


Type: SystemDouble
The longitude, in radians. Requesting a height for a longitude less than -PI or greater than PI will always return NaN.
Type: SystemDouble
The latitude, in radians. Requesting a height for a latitude less than -PI/2 or greater than PI/2 will always return NaN.

Return Value

Type: Double
The height of terrain relative to Shape, in meters.
InvalidOperationExceptionIn order to use the GetHeightRelativeToShape(Double, Double) method, all reference surfaces must have the same Shape and ShapeFixedFrame as the terrain provider on which the method is called.
See Also