Home > All Other Interfaces > IPosition > ToAbsolute

ToAbsolute

Returns an IPosition6 object that is converted to absolute height (ATC_TERRAIN_ABSOLUTE).

 

JavaScript

 

ToAbsolute(

      Accuracy = AccuracyLevel.ACCURACY_NORMAL)

 

C#

 

IPosition6 ToAbsolute(

      AccuracyLevel Accuracy = AccuracyLevel.ACCURACY_NORMAL)

 

C++

 

HRESULT ToAbsolute(

      AccuracyLevel Accuracy,

      IPosition6** 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_BEST_FROM_MPT = 2

Return Value

pVal

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

Exceptions

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