Outputs a requested vertex.
HRESULT GetVertex(
[in] int Index,
[out] VARIANT* doubleX,
[out] VARIANT* doubleHeight,
[out] VARIANT* doubleY)
Parameters:
Index – Indicates which vertex you are referring to, within the polyline (this must be a value between 0 and NumOfVertices-1).
doubleX – The West-East coordinate of vertex. You can use the ITerrain interface to retrieve information about the MPT units. If you are working in Lat-Long format, the Lat-Long values are in decimal Lat-Long.
doubleHeight – The height of the vertex in meters.
doubleY – The North-South coordinate of the vertex. You can use the ITerrain interface to retrieve information about the MPT units. If you are working in Lat-Long format, the Lat-Long values are in decimal Lat-Long.
Return Values:
The return value obtained from the returned HRESULT is one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_FAIL |
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. |