<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.mark
        {mso-style-name:mark;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">GeoTrans 3.2 and GeographicLib (GeoConvert –n) give<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">33UVP0500444998 -> 13.72028E 48.25107N<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">33UXP0500444998 -> 16.41449E 48.24949N<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">42<span class="mark">SWC</span>5522406275 -> 69.59450E 33.49457N<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">42EWC5522406275 -> 69.90386E 56.78416S<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">so it looks as though some of your problems are switched letters<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">in the MGRS codes.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">  --Charles<o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> metacrs-bounces@lists.osgeo.org [mailto:metacrs-bounces@lists.osgeo.org]
<b>On Behalf Of </b>Toph<br>
<b>Sent:</b> Tuesday, February 05, 2013 3:25 PM<br>
<b>To:</b> metacrs@lists.osgeo.org<br>
<b>Subject:</b> [MetaCRS] Proj4js MGRS conversion Geodectic<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">I'm trying to convert
<span class="mark">MGRS</span> to <span class="mark">WGS</span> 84 Geodetic Output Coordinate System.  The example in the test\<span class="mark">mgrs</span>.<span class="mark">js</span> works like I expect.  Some
<span class="mark">MGRS</span> don't provide the values I expect.  Am I missing something? 
<br>
<br>
Thanks Chris<br>
========================================================================<br>
<br>
If I use <span class="mark">Geotrans</span>, for <span class="mark">MGRS</span> "33<span class="mark">UVP</span>0500444998", I get 16.41449 for Lon and 48.24949 Lat. 
<br>
<br>
If I use Proj4js.Point.fromMGRS("33<span class="mark">UVP</span>0500444998"), I get point.x.toPrecision(7) = 16.41449 and point.y.toPrecision(7) = 48.24949<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">=========================================================================<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">If I use
<span class="mark">Geotrans</span>, for <span class="mark">MGRS</span> "42<span class="mark">SWC</span>5522406275", I get  for Lon 69.59450 and  Lat. 33.49458 
<br>
<br>
If I use Proj4js.Point.fromMGRS("42<span class="mark">SWC</span>5522406275"), I get point.x.toPrecision(7) =  69.90387 and point.y.toPrecision(7) = -56.78416<o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><br>
<br>
<o:p></o:p></span></p>
</div>
</div>
</body>
</html>