<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span><br></span></div><div>Mikael,</div><div><br></div><div>> <span style="font-size: 12pt; font-family: Arial; ">I think you have just switched the values of x_0 and y_0, since x_0 should be False_Easting and y_0 should be False_Northing.</span></div><div><br></div><div>How could I make such a mistake!</div><div><br></div><div>I appreciate your help.</div><div><br></div><div>Also, I will go with +k_0.</div><div><br></div><div>Thanks,</div><div><br></div><div>Rick</div><div><br></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Mikael Rittri <Mikael.Rittri@carmenta.com><br> <b><span
style="font-weight: bold;">To:</span></b> Rick Graves <gravesricharde@yahoo.com>; PROJ.4 and general Projections Discussions <proj@lists.maptools.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, August 13, 2012 10:29 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> RE: [Proj] request help with Transverse_Mercator in proj<br> </font> </div> <br>
<div id="yiv802239308">
<style>
<!--
#yiv802239308
_filtered #yiv802239308 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv802239308
#yiv802239308 p.yiv802239308MsoNormal, #yiv802239308 li.yiv802239308MsoNormal, #yiv802239308 div.yiv802239308MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}
#yiv802239308 a:link, #yiv802239308 span.yiv802239308MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv802239308 a:visited, #yiv802239308 span.yiv802239308MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv802239308 span.yiv802239308EmailStyle17
        {font-family:Arial;color:navy;}
_filtered #yiv802239308 {margin:70.85pt 70.85pt 70.85pt 70.85pt;}
#yiv802239308 div.yiv802239308Section1
        {}
-->
</style>
<div>
<div class="yiv802239308Section1">
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; color: black; ">Hello Rick,</span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; color: black; ">I think you have just switched
the values of x_0 and y_0, since x_0 should be False_Easting and y_0 should be
False_Northing.</span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; color: black; ">With Proj 4.8.0, I get</span></font></div>
<div class="yiv802239308MsoNormal"><font size="2" color="black" face="Arial"><span lang="EN-US" style="font-size: 10pt; font-family: Arial; color: black; "> </span></font></div>
<div class="yiv802239308MsoNormal"><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">C:\Windows\System32>proj
+proj=tmerc +lat_0=0 +lon_0=-90 +k=0.9996 +y_0=-4480000.0 +x_0=520000.0 -v</span></font></div>
<div class="yiv802239308MsoNormal"><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; "> </span></font></div>
<div class="yiv802239308MsoNormal"><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">#Transverse
Mercator</span></font></div>
<div class="yiv802239308MsoNormal"><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">#
Cyl, Sph&Ell</span></font></div>
<div class="yiv802239308MsoNormal"><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">#
+proj=tmerc +lat_0=0 +lon_0=-90 +k=0.9996 +y_0=-4480000.0 +x_0=520000.0</span></font></div>
<div class="yiv802239308MsoNormal"><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">#
+ellps=WGS84</span></font></div>
<div class="yiv802239308MsoNormal"><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; "> </span></font></div>
<div class="yiv802239308MsoNormal"><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">-92.88943290699996
45.64120292600006</span></font></div>
<div class="yiv802239308MsoNormal"><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; "> </span></font></div>
<div class="yiv802239308MsoNormal"><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'; color: black; ">294824.82
578245.14</span></font></div>
<div class="yiv802239308MsoNormal"><font size="2" color="black" face="Arial"><span lang="EN-US" style="font-size: 10pt; font-family: Arial; color: black; "> </span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; color: black; ">which is at least near
your expected result. (Maybe I made some other mistake.) </span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; color: black; ">I would prefer to give
the +ellps explicitly, but the default seems to be what you need, or nearly so.
</span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; color: black; ">(Not much difference
between the WGS84 and the GRS_1980 ellipsoid.) </span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; color: black; ">And I think +k_0 is now
the recommended parameter name instead of +k, but it seems that +k still works.</span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; color: black; ">Best regards,</span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">Mikael Rittri</span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">Carmenta</span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">Sweden</span></font></div>
<div class="yiv802239308MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">http://www.carmenta.com</span></font></div>
<div class="yiv802239308MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "> </span></font></div>
<div>
<div class="yiv802239308MsoNormal" align="center" style="text-align:center;"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;">
<hr size="2" width="100%" align="center" tabindex="-1">
</span></font></div>
<div class="yiv802239308MsoNormal"><b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size: 10pt; font-family: Tahoma; font-weight: bold; ">From:</span></font></b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size: 10pt; font-family: Tahoma; ">
proj-bounces@lists.maptools.org [mailto:proj-bounces@lists.maptools.org] <b><span style="font-weight:bold;">On Behalf Of </span></b>Rick Graves<br>
<b><span style="font-weight:bold;">Sent:</span></b> Monday, August 13, 2012 3:42
AM<br>
<b><span style="font-weight:bold;">To:</span></b> PROJ.4 Projections Discussions<br>
<b><span style="font-weight:bold;">Subject:</span></b> [Proj] request help with
Transverse_Mercator in proj</span></font><span lang="EN-US"></span></div>
</div>
<div class="yiv802239308MsoNormal"><font size="3" face="Times New Roman"><span style="
font-size:12.0pt;"> </span></font></div>
<div>
<div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">Hey,</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">Sorry
to trouble you, but I still have a couple of states for which I need to get
proj.4 working. This time, it is Wisconsin.</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">I am
starting with the Western most point in the state. If you plug the
following into <a target="_blank" href="http://maps.google.com/">maps.google.com</a>, you will see it:</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">45.64120292600006,
-92.88943290699996 </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">I
downloaded the shapefiles from the state web site. In the shapefile, the
minimum X point is this:</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">294822.7664999999,
578184.1052999999</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">Here is
the metadata from the prj file:</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">PROJCS["NAD_1983_HARN_Wisconsin_TM",</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">GEOGCS["GCS_North_American_1983_HARN",</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">DATUM["D_North_American_1983_HARN",</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">SPHEROID["GRS_1980",6378137.0,298.257222101]],</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">PRIMEM["Greenwich",0.0],</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">UNIT["Degree",0.0174532925199433]],</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">PROJECTION["Transverse_Mercator"],</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">PARAMETER["False_Easting",520000.0],</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">PARAMETER["False_Northing",-4480000.0],</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">PARAMETER["Central_Meridian",-90.0],</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">PARAMETER["Scale_Factor",0.9996],</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">PARAMETER["Latitude_Of_Origin",0.0],</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">UNIT["Meter",1.0]]</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">I
initialized proj as follows:</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">proj
+proj=tmerc +lat_0=0.0 +lon_0=-90.0 +k=0.9996 +x_0=-4480000.0 +y_0=520000.0</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">When
give proj this: </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">-92.88943290699996
45.64120292600006</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">I get
this:</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">-4705175.18
5578245.14</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">But I
am expecting this:</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">294822.7664999999,
578184.1052999999</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">I
assume I am not initializing proj correctly. </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">If
someone could spot my mistake, I would appreciate it.</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">Thanks,</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; ">Rick
Graves</span></font></div>
</div>
<div>
<div class="yiv802239308MsoNormal" style="background:white;"><font size="3" color="black" face="Arial"><span style="font-size: 12pt; font-family: Arial; color: black; "> </span></font></div>
</div>
</div>
</div>
</div>
</div>
</div><br><br> </div> </div> </div></body></html>