Convert Seconds to Degrees, Minutes, Seconds - OMCSDMS
Convert Seconds to Degrees, Minutes, Seconds (OMCSDMS)
Required Parameter Group:
1 | Latitude in Signed Seconds | Input | Packed(7,0) |
2 | Latitude in Deg, Min, Sec | Output | Char(7) |
3 | Longitude in Signed Seconds | Input | Packed(7,0) |
4 | Longitude in Deg, Min, Sec | Output | Char(8) |
API Overview:
The Convert Seconds to Degrees, Minutes, Seconds API (OMCSDMS) is used to convert latitude and longitude expressed in total signed seconds to latitude and longitude expressed in degrees, minutes, and seconds.
Required Parameter Group Details:
(1) Latitude in Signed Seconds
INPUT; PACKED(7,0)
This parameter contains the latitude in total signed seconds. Latitudes in the southern hemisphere are negative values. Latitudes in the northern hemisphere are positive values.
(2) Latitude in Deg, Min, Sec
OUTPUT; CHAR(7)
This parameter is a fixed format data structure that returns the latitude in degrees, minutes, seconds format. See the shaded table below for the data structure format.
1-2 | Latitude Degrees | Zoned(2) |
3-4 | Latitude Minutes | Zoned(2) |
5-6 | Latitude Seconds | Zoned(2) |
7-7 | Latitude Hemisphere N Northern hemisphere S Southern hemisphere |
Char(1) |
(3) Longitude in Signed Seconds
INPUT; PACKED(7,0)
This parameter contains the longitude in total signed seconds. Longitudes in the eastern hemisphere are negative values. Longitudes in the western hemisphere are positive values.
(4) Longitude in Deg, Min, Sec
OUTPUT; CHAR(8)
This parameter is a fixed format data structure that returns the longitude in degrees, minutes, seconds format. See the shaded table below for the data structure format.
1-3 | Longitude Degrees | Zoned(3) |
4-5 | Longitude Minutes | Zoned(2) |
6-7 | Longitude Seconds | Zoned(2) |
8-8 | Longitude Hemisphere W Western hemisphere E Eastern hemisphere |
Char(1) |