This method adds a terrain tie point to the currently selected map. You must call SetMapTiePoint with the same TiePointIndex to define the respective map point coordinate. When all three (0, 1 and 2) indexes are set with both terrain and map points, the map is referenced.
HRESULT SetTerrainTiePoint(
[in] int TiePointIndex,
[in] double TerrainX,
[in] double TerrainY)
Parameters:
TiePointIndex – An integer value of 0, 1, or 2 that defines which of the possible three tie points is set.
TerrainX – The West-East coordinate in MPT units.
TerrainY – The North-South coordinate in MPT units.
Return Values:
The return value obtained from the returned HRESULT can be one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_INVALIDARG |
There is a problem with one or more of the arguments passed to this method. Use the IErrorInfo interface to extract more information about this error. |