Description | Example | Return Message | Group

MeasureSurfaceDistance

Returns the distance between two points on the surface of the central body in meters

Syntax

MeasureSurfaceDistance <ScenarioPath> <StartLat> <StartLon> <EndLat> <EndLon> [<CentralBodyName>]

Description

The MeasureSurfaceDistance command returns the distance between two points on the surface of the central body in meters. Distance is measured along a great arc path.

<StartLat> <StartLon> are the starting geodetic latitude and longitude in degrees. <EndLat> <EndLon> are the ending geodetic latitude and longitude in degrees. <CentralBodyName> is an optional parameter used to specify the central body on which the distance is measured. The default is the current scenario central body.

Example

To measure the distance between Philadelphia and London:

MeasureSurfaceDistance * 40.0068 -75.1347 51.4879 -0.1780 Earth

ReturnMessage

Connect would return a message similar to the following:
5706450.538

Group Membership

This command belongs to the following group(s):

Scenarios

Version

5.0

STK Programming Interface 11.0.1