AGI STK Util 11 Send comments on this topic.
QueryPlanetodeticArray Method (IAgPosition)
See Also  Example





Description

This method is similar to QueryPlanetodetic but can be used by earlybound(c#, vb.net...) and latebound(scripting languages) clients. The array returns the values in the order Latitude(index 0), Longitude(index 1) and Altitude(index 2).

Syntax

[Visual Basic .NET]
Public Function QueryPlanetodeticArray() As System.Array

[C#]
public System.Array QueryPlanetodeticArray();

[Managed C++]
public: System::Array QueryPlanetodeticArray();

[Java]
public Object[] queryPlanetodeticArray();

[Unmanaged C++]
public: HRESULT QueryPlanetodeticArray(
SAFEARRAY ** Array
);

Example

This example shows how to get the planetodetic position of a facility using the QueryPlanetodeticArray in vbscript.
Retrieving planetodetic coordinates of a facility [VBScript] Copy Code
set pos = facility.Position
planetodeticArray = pos.QueryPlanetodeticArray()
lat = planetodeticArray(0) 'Latitude
lon = planetodeticArray(1) 'Longitude
alt = planetodeticArray(2) 'Altitude

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1