ToGpsLat
Converts a latitude value from decimal degrees to degrees, minutes, and seconds format.
Syntax:
$ToGpsLat( decimalDegrees )
| Parameter | Type | Description |
|---|---|---|
decimalDegrees | INTEGER / DOUBLE | Value in degrees. |
Example
$ToGpsLat( 45.333333 )ToGpsLon
Converts a longitude value from decimal degrees to degrees, minutes, and seconds format.
Syntax:
$ToGpsLon( decimalDegrees )
| Parameter | Type | Description |
|---|---|---|
decimalDegrees | INTEGER / DOUBLE | Value in degrees. |
Example
$ToGpsLon( 45.333333 )ToDMS
Converts an input value in degrees to degrees, minutes, and seconds format.
Syntax:
$ToDMS( inputDegrees, anyText )
| Parameter | Type | Description |
|---|---|---|
inputDegrees | INTEGER / DOUBLE | Value in degrees. |
Available Variables
| Parameter | Type | Description |
|---|---|---|
positiveHemisphere | BOOL | True if inputDegrees is positive; otherwise false. |
degrees | UINT | Use $(degrees:.6) to output the integer part of the degrees value. |
minutes | UINT | Use $(minutes:.6) to output the integer part of the minutes value. |
seconds | DOUBLE | Use $(seconds:.6) to output the seconds value. |
Example
$ExportControlPoints(
$If( "$(inputCSIsLatLon)" == "true",
lat: $ToDMS( actualLat, $(degrees:.6)° $(minutes:.6)' $(seconds:.6)'' $If( positiveHemisphere, N ) $If( positiveHemisphere == false, S ) )
lon: $ToDMS( actualLon, $(degrees:.6)° $(minutes:.6)' $(seconds:.6)'' $If( positiveHemisphere, E ) $If( positiveHemisphere == false, W ) )
alt: $(actualAlt) $(unitsShort)
)
)FormatTime
Converts a time value from seconds to the format "dd hh:mm:ss".
Syntax:
$FormatTime( seconds )
| Parameter | Type | Description |
|---|---|---|
seconds | DOUBLE | Time value in seconds. |
Example
$FormatTime( 50000 )