EPSG:9643 DEPRECATED

Degree representation conversion: DMS to DMSH

Attributes

Data source: OGP

Information source: EPSG guidance note #7.

Revision date: 2002-11-22

Remarks: Applies to 2D and the horizontal component of 3D ellipsoidal systems.

MapTiler banner

Export

Definition: OGP XML

<div class="syntax"><pre><span class="cp">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</span> <span class="nt">&lt;gml:OperationMethod</span> <span class="na">xmlns:epsg=</span><span class="s">&quot;urn:x-ogp:spec:schema-xsd:EPSG:1.0:dataset&quot;</span> <span class="na">xmlns:gml=</span><span class="s">&quot;http://www.opengis.net/gml/3.2&quot;</span> <span class="na">gml:id=</span><span class="s">&quot;epsg-method-9643&quot;</span><span class="nt">&gt;</span> <span class="nt">&lt;gml:metaDataProperty&gt;</span> <span class="nt">&lt;epsg:CommonMetaData&gt;</span> <span class="nt">&lt;epsg:informationSource&gt;</span>EPSG guidance note #7.<span class="nt">&lt;/epsg:informationSource&gt;</span> <span class="nt">&lt;epsg:revisionDate&gt;</span>2002-11-22<span class="nt">&lt;/epsg:revisionDate&gt;</span> <span class="nt">&lt;epsg:isDeprecated&gt;</span>true<span class="nt">&lt;/epsg:isDeprecated&gt;</span> <span class="nt">&lt;/epsg:CommonMetaData&gt;</span> <span class="nt">&lt;/gml:metaDataProperty&gt;</span> <span class="nt">&lt;gml:metaDataProperty&gt;</span> <span class="nt">&lt;epsg:CoordinateOperationMethodMetaData&gt;</span> <span class="nt">&lt;epsg:isOperationReversible&gt;</span>true<span class="nt">&lt;/epsg:isOperationReversible&gt;</span> <span class="nt">&lt;epsg:example&gt;</span>Source CRS = WGS 84 (DMS) (CRS code 63266411). Latitude = 35°45’09.18”, longitude = -85°12’14.94” Target CRS in DMSH = WGS 84 (CRS code 4326) Latitude = 35°45’09.18”N, longitude = 85°12’14.94”W<span class="nt">&lt;/epsg:example&gt;</span> <span class="nt">&lt;/epsg:CoordinateOperationMethodMetaData&gt;</span> <span class="nt">&lt;/gml:metaDataProperty&gt;</span> <span class="nt">&lt;gml:identifier</span> <span class="na">codeSpace=</span><span class="s">&quot;OGP&quot;</span><span class="nt">&gt;</span>urn:ogc:def:method:EPSG::9643<span class="nt">&lt;/gml:identifier&gt;</span> <span class="nt">&lt;gml:name&gt;</span>Degree representation conversion: DMS to DMSH<span class="nt">&lt;/gml:name&gt;</span> <span class="nt">&lt;gml:remarks&gt;</span>Applies to 2D and the horizontal component of 3D ellipsoidal systems.<span class="nt">&lt;/gml:remarks&gt;</span> <span class="nt">&lt;gml:formula&gt;</span>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 (both forward and reverse) the minute and second parameters remain unchanged. Forward calculation from DMS representation to DMSH representation: ideg = ABS(sdeg) If lat_sdeg <span class="ni">&amp;lt;</span> 0, lathem = S else lathem = N If lon_sdeg <span class="ni">&amp;lt;</span> 0, lonhem = W else lathem = E Reverse calculation from DMSH representation to DMS representation: sdeg = ideg * H where for latitude, H = 1 if lathem = N and H = -1 if lathem = S and for longitude H = 1 if lonhem = E and H = -1 if lonhem = W<span class="nt">&lt;/gml:formula&gt;</span> <span class="nt">&lt;gml:sourceDimensions&gt;</span>3<span class="nt">&lt;/gml:sourceDimensions&gt;</span> <span class="nt">&lt;gml:targetDimensions&gt;</span>2<span class="nt">&lt;/gml:targetDimensions&gt;</span> <span class="nt">&lt;/gml:OperationMethod&gt;</span> </pre></div>
<?xml version="1.0" encoding="UTF-8"?>
 <gml:OperationMethod xmlns:epsg="urn:x-ogp:spec:schema-xsd:EPSG:1.0:dataset" xmlns:gml="http://www.opengis.net/gml/3.2" gml:id="epsg-method-9643">
   <gml:metaDataProperty>
      <epsg:CommonMetaData>
         <epsg:informationSource>EPSG guidance note #7.</epsg:informationSource>
         <epsg:revisionDate>2002-11-22</epsg:revisionDate>
         <epsg:isDeprecated>true</epsg:isDeprecated>
      </epsg:CommonMetaData>
   </gml:metaDataProperty>
   <gml:metaDataProperty>
      <epsg:CoordinateOperationMethodMetaData>
         <epsg:isOperationReversible>true</epsg:isOperationReversible>
         <epsg:example>Source CRS = WGS 84 (DMS) (CRS code 63266411).
Latitude = 35°45’09.18”, longitude = -85°12’14.94”

Target CRS in DMSH = WGS 84 (CRS code 4326)
Latitude = 35°45’09.18”N, longitude =  85°12’14.94”W</epsg:example>
      </epsg:CoordinateOperationMethodMetaData>
   </gml:metaDataProperty>
   <gml:identifier codeSpace="OGP">urn:ogc:def:method:EPSG::9643</gml:identifier>
   <gml:name>Degree representation conversion: DMS to DMSH</gml:name>
   <gml:remarks>Applies to 2D and the horizontal component of 3D ellipsoidal  systems.</gml:remarks>
   <gml:formula>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 (both forward and reverse) the minute and second parameters remain unchanged.

Forward calculation from DMS representation to DMSH representation:

ideg = ABS(sdeg)
If lat_sdeg &lt; 0, lathem = S else lathem = N
If lon_sdeg &lt; 0, lonhem = W else lathem = E

Reverse calculation from DMSH representation to DMS representation:
sdeg = ideg * H
where for latitude, H = 1 if lathem = N and H = -1 if lathem = S
and for longitude  H = 1 if lonhem = E and H = -1 if lonhem = W</gml:formula>
   <gml:sourceDimensions>3</gml:sourceDimensions>
   <gml:targetDimensions>2</gml:targetDimensions>
</gml:OperationMethod>