This method returns the coordinate, if it exist, defined in the point cloud model as its default location.
HRESULT GetDefaultLocation(
[out] VARIANT* doubleX,
[out] VARIANT* doubleHeight,
[out] VARIANT* doubleY)
Parameters:
doubleX – The West-East coordinate of the default location. Note that the coordinate may be in a different coordinate system than the terrain database.
doubleHeight – The height of the default location, in meters above the ground.
doubleY – The North-South coordinate of the default location. Note that the coordinate may be in a different coordinate system than the terrain database.
Return Values:
The return value obtained from the returned HRESULT is one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_FAIL |
There is no default location or catastrophic failure. |
TE_E_TEOBJECT_NOLONGEREXIST |
The object you are trying to access no longer exists. This may have occurred because, while keeping an interface to the object, the user deleted it from TerraExplorer (via the TE user interface). Without the object, the interface cannot be used. Therefore, you should release the interface. |
TE_E_INTERNAL |
TerraExplorer was unable to create the object. To get more information about this error use the IErrorInfo Interface. |