ToRelative

Returns an IPosition80 object that is converted to height relative to terrain (ATC_TERRAIN_RELATIVE).

 

JavaScript

 

ToRelative(

       Accuracy)

 

C#

 

IPosition80 ToRelative(

       AccuracyLevel Accuracy = AccuracyLevel.ACCURACY_NORMAL)

 

C++

 

HRESULT ToRelative(

       AccuracyLevel Accuracy,

       IPosition80** pVal)

Parameters

Accuracy

An enum that determines the accuracy level. The following are the possible values:

·          ACCURACY_NORMAL = 0,

·          ACCURACY_BEST_FROM_MEMORY = 1,

·          ACCURACY_FORCE_BEST_RENDERED = 2

Return Value

pVal

An IPosition80 object that has the same x and y coordinates as the caller’s but with altitude property converted to relative to terrain based on the caller x and y.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.