This method moves a 2D-coordinate by a specified west-east and south-north offset. The X and Y coordinates to be converted should be given in doubleX and doubleY respectively. After the method is completed, the doubleX and doubleY return the new coordinates. For example, use this method to calculate the coordinates for drawing a square on a globe database.
HRESULT MoveCoord(
[in, out] VARIANT* doubleX,
[in, out] VARIANT* doubleY,
[in] double moveWestEast,
[in] double moveSouthNorth)
Parameters:
doubleX – X coordinate.
doubleY – Y coordinate.
moveWestEast – The offset in meters to move the point on the west-east axis. Positive values move the coordinate to the east, negative values move to the west.
moveSouthNorth – The offset in meters to move the point on the south-north axis. Positive values move the coordinate to the north, negative values move to the south.
Return Values:
The return value obtained from the returned HRESULT can be one of the following:
Return value |
Meaning |
S_OK |
Success. |
TE_E_INTERNAL |
TerraExplorer internal error. |