ArcObjects Library Reference (PublisherControls)  

IARGlobe.GetObserverLocation Method

Gets the current observer location.

[Visual Basic .NET]
Public Sub GetObserverLocation ( _
    ByRef longitude As Double, _
    ByRef latitude As Double, _
    ByRef elev As Double _
)
[C#]
public void GetObserverLocation (
    ref double longitude,
    ref double latitude,
    ref double elev
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Returns the current observer location.  The current observer location is described using a point on the ARGlobes surface beneath the current observer location and the current observer elevation.  The point on the ARGlobe's surface is intersected by an imaginary line from the center of the globe to the observers location.  Elevation returns the altitude, relative to sea level, of the current observer location.

Remarks

Observer location latitude and longitude are measured in decimal degrees.  Observer location elevation is measured in Kilometers.

See Also

IARGlobe Interface