This document is archived and information here might be outdated.  Recommended version.


IARGlobe.GetSurfacePoint Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (PublisherControls)  

IARGlobe.GetSurfacePoint Method

Converts a point in device coordinates (typically pixels) to coordinates in latitude and longitude.

[Visual Basic .NET]
Public Function GetSurfacePoint ( _
    ByVal x As Integer, _
    ByVal y As Integer, _
    ByRef longitude As Double, _
    ByRef latitude As Double, _
    ByRef elev As Double _
) As Boolean
[C#]
public bool GetSurfacePoint (
    int x,
    int y,
    ref double longitude,
    ref double latitude,
    ref double elev
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Given a screen coordinate in pixels, this method returns the longitude and latitude of the point on the ARGlobe surface at the screen X and Y location.  It also returns the elevation of the globe surface at that point.

Remarks

Latitude and longitude are measured in decimal degrees.  Elevation is measured in Kilometers.

See Also

IARGlobe Interface