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
|
| [C#] |
|---|
public System.Array QueryPlanetodeticArray();
|
| [Managed C++] |
|---|
public: System::Array QueryPlanetodeticArray();
|
| [Java] |
|---|
public VariantArray queryPlanetodeticArray();
|
| [Unmanaged C++] |
|---|
public: HRESULT QueryPlanetodeticArray(
SAFEARRAY * * ppRetVal
);
|
See Also
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] |
|---|
set pos = facility.Position planetodeticArray = pos.QueryPlanetodeticArray() lat = planetodeticArray(0) 'Latitude lon = planetodeticArray(1) 'Longitude alt = planetodeticArray(2) 'Altitude |
|