Data source: EPSG
Information source: EPSG guidance note #7.
Revision date: 2002-11-22
Remarks: Applies to 2D and the horizontal component of 3D ellipsoidal systems.
In the formulas that follow, the coordinate strings are symbolically represented as follows:
deg decimal degrees
adeg absolute value of decimal degrees
ideg integer degrees
sdeg signed integer degree
min real-number minutes
imin integer minutes
sec real-number seconds
lathem, lonhem hemisphere abbreviation
In this conversion the parameter values remain unchanged but are re-ordered.
For the forward calculation from HDMS representation to DMSH representation, for each of latitude and longitude re-order the fields:
from hem, ideg, imin, sec
to ideg, imin, sec, hem
For the reverse calculation from DMSH representation to HDMS representation, for each of latitude and longitude re-order the fields:
from ideg, imin, sec, hem
to hem, ideg, imin, sec