Description | Example | Return Message | Group

Convert MapGridPoint

Convert a map point between Latitude/Longitude and UTM.

Syntax

Convert <ScenarioPath> MapGridPoint {FromMapGridSpec} {PointDef} {ToMapGridSpec}

Description

Convert the point entered in {FromMapGridSpec} representation to {ToMapGridSpec} representation. Valid values for MapGridSpec are LatLon, UTM and MGRS.

The following table describes the format for {PointDef} based on the MapGridSpec, and also the format of the returned string.

{MapGridSpec} {PointDef}
LatLon <Latitude> <Longitude>
UTM <ZoneStr> <Easting> <Northing>
MGRS <MGRSString>

The following table describes the specifications for the above values:

Value Unit
Latitude and Longitude Connect Latitude and Longitude units (default is degrees).
ZoneStr Valid values for <ZoneStr> are A, B, Y, Z or ddc, where 00>dd>61 and c can be C through X, but not I or O. The c character indicates the zone row and is optional. If not included the value T will be used.
Easting and Northing <Easting> and <Northing> are entered in Connect distance units.

Note: When UTM is the {ToMapGridSpec} the <Easting> and <Northing> values are returned in Connect distance units.

Example

To convert the specified point from LatLon to UTM:

Convert * MapGridPoint LatLon 33.5 74.75 UTM

ReturnMessage

Return entry 1:
43S 476779 3706747

Example

To convert the specified point from UTM to LatLon (Easting and Northing values, in this example, are entered in meters):

Convert * MapGridPoint UTM 38T 419826 4872359 LatLon

ReturnMessage

Return entry 1:
44.0000010597138030000000000 44.0000032231451430000000000

Example

To convert the specified point from LatLon to MGRS:

Convert * MapGridPoint LatLon 33.5 74.75 MGRS

ReturnMessage

Return entry 1:
43SDT7677906747

Example

To convert the specified point from MGRS to LatLon:

Convert * MapGridPoint MGRS 43SDT7677906747 LatLon

ReturnMessage

Return entry 1:
33.4999983630538270000000000 74.7500040171926660000000000

Group Membership

This command belongs to the following group(s):

Scenarios

Version

6.2

STK Programming Interface 11.0.1