<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt">Thanks Charles for your help.<br><br>If I put '<span style="font-size:10.0pt;color:black;">42EWC5522406275' into </span><br><span style="font-size:10.0pt;color:black;">Proj4js.Point.fromMGR("</span><span style="font-size:10.0pt;color:black;"><span style="font-size:10.0pt;color:black;">42EWC5522406275</span>"); I get </span><br><span style="font-size:10.0pt;color:black;"> I get point.x.toPrecision(7) = 16.41449 and point.x.toPrecision(7) = 69.59450 and </span><span style="font-size:10.0pt;color:black;">point.y.toPrecision(7) = 33.49457<br><br>I was expecting:</span><br><span style="font-size:10.0pt;color:black;"><span style="font-size:10.0pt;color:black;">point.x.toPrecision(7) = 69.90387 and point.y.toPrecision(7) = -56.78416 like you said and like it is in GeoTrans.<br><br></span>I guess Proj4js is confused between 42E and 42S?
<br></span><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span> <br></span></div><div>I think I'll try your GeographicLib JavaScript interface next.</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">Thanks,</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">Chris</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family:
times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Charles Karney <charles.karney@sri.com><br> <b><span style="font-weight: bold;">To:</span></b> 'Toph' <toph_vt-web@yahoo.com>; "metacrs@lists.osgeo.org" <metacrs@lists.osgeo.org> <br><b><span style="font-weight: bold;">Cc:</span></b> Charles Karney <charles.karney@sri.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, February 5, 2013 4:09 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> RE: [MetaCRS] Proj4js MGRS conversion Geodectic<br> </font> </div> <br><div id="yiv572292063">
<style><!--
#yiv572292063
_filtered #yiv572292063 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered #yiv572292063 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv572292063
#yiv572292063 p.yiv572292063MsoNormal, #yiv572292063 li.yiv572292063MsoNormal, #yiv572292063 div.yiv572292063MsoNormal
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv572292063 a:link, #yiv572292063 span.yiv572292063MsoHyperlink
{color:blue;text-decoration:underline;}
#yiv572292063 a:visited, #yiv572292063 span.yiv572292063MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
#yiv572292063 span.yiv572292063mark
{}
#yiv572292063 span.yiv572292063EmailStyle18
{font-family:"Calibri", "sans-serif";color:#1F497D;}
#yiv572292063 .yiv572292063MsoChpDefault
{font-size:10.0pt;}
_filtered #yiv572292063 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv572292063 div.yiv572292063WordSection1
{}
--></style>
<div>
<div class="yiv572292063WordSection1">
<div class="yiv572292063MsoNormal"><span style="font-size:10.0pt;color:black;">GeoTrans 3.2 and GeographicLib (GeoConvert –n) give</span></div>
<div class="yiv572292063MsoNormal"><span style="font-size:10.0pt;color:black;">33UVP0500444998 -> 13.72028E 48.25107N</span></div>
<div class="yiv572292063MsoNormal"><span style="font-size:10.0pt;color:black;">33UXP0500444998 -> 16.41449E 48.24949N</span></div>
<div class="yiv572292063MsoNormal"><span style="font-size:10.0pt;color:black;">42<span class="yiv572292063mark">SWC</span>5522406275 -> 69.59450E 33.49457N</span></div>
<div class="yiv572292063MsoNormal"><span style="font-size:10.0pt;color:black;">42EWC5522406275 -> 69.90386E 56.78416S</span></div>
<div class="yiv572292063MsoNormal"><span style="font-size:10.0pt;color:black;"> </span></div>
<div class="yiv572292063MsoNormal"><span style="font-size:10.0pt;color:black;">so it looks as though some of your problems are switched letters</span></div>
<div class="yiv572292063MsoNormal"><span style="font-size:10.0pt;color:black;">in the MGRS codes.</span></div>
<div class="yiv572292063MsoNormal"><span style="font-size:10.0pt;color:black;"> --Charles</span></div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;">
<div class="yiv572292063MsoNormal"><b><span style="font-size:10.0pt;">From:</span></b><span style="font-size:10.0pt;"> 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</span></div>
</div>
</div>
<div class="yiv572292063MsoNormal"> </div>
<div>
<div>
<div class="yiv572292063MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">I'm trying to convert
<span class="yiv572292063mark">MGRS</span> to <span class="yiv572292063mark">WGS</span> 84 Geodetic Output Coordinate System. The example in the test\<span class="yiv572292063mark">mgrs</span>.<span class="yiv572292063mark">js</span> works like I expect. Some
<span class="yiv572292063mark">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="yiv572292063mark">Geotrans</span>, for <span class="yiv572292063mark">MGRS</span> "33<span class="yiv572292063mark">UVP</span>0500444998", I get 16.41449 for Lon and 48.24949 Lat.
<br>
<br>
If I use Proj4js.Point.fromMGRS("33<span class="yiv572292063mark">UVP</span>0500444998"), I get point.x.toPrecision(7) = 16.41449 and point.y.toPrecision(7) = 48.24949</span></div>
</div>
<div>
<div class="yiv572292063MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;"> </span></div>
</div>
<div class="yiv572292063MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="font-size:10.0pt;color:black;">=========================================================================</span></div>
<div>
<div class="yiv572292063MsoNormal"><span style="font-size:10.0pt;color:black;">If I use
<span class="yiv572292063mark">Geotrans</span>, for <span class="yiv572292063mark">MGRS</span> "42<span class="yiv572292063mark">SWC</span>5522406275", I get for Lon 69.59450 and Lat. 33.49458
<br>
<br>
If I use Proj4js.Point.fromMGRS("42<span class="yiv572292063mark">SWC</span>5522406275"), I get point.x.toPrecision(7) = 69.90387 and point.y.toPrecision(7) = -56.78416</span></div>
</div>
<div class="yiv572292063MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="font-size:10.0pt;color:black;"><br>
<br>
</span></div>
</div>
</div>
</div>
</div><br><br> </div> </div> </blockquote></div> </div></body></html>