This method returns the terrain coordinate system. Each terrain database includes its coordinate system, with this method you can retrieve this information. This method is similar to ITerrain3::GroupKey, ITerrain3::DatumKey etc.
HRESULT GetTerrainCS(
[out] VARIANT*bstrGroupKey,
[out] VARIANT* bstrSystemKey,
[out] VARIANT* bstrDatumKey,
[out] VARIANT* bstrUnitKey,
[out] VARIANT*longEPSG)
Parameters:
bstrGroupKey – The unique string of the coordinate system group.
bstrSystemKey – The unique string of the coordinate system.
bstrDatumKey – The unique string of the coordinate system datum.
bstrUnitKey – The unique string of the coordinate system units.
longEPSG – Reserved.
Return Values:
The return value obtained from the returned HRESULT can be one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_FAIL |
Catastrophic failure. |
TE_E_MPTNOTLOADED |
An MPT file must be loaded in TerraExplorer for this method to work. |
TE_E_NOLICENSE |
You are running TerraExplorer Viewer and therefore do not have permission to work with this interface. |