<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Courier New" color=#000000 size=2>Hi list,</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>(Apologies for sending HTML email - I'm stuck on OWA ...)</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>I'm trying to reproject data in an obsolete Danish orthogonal projection called System34 in MapServer. To this end, I've found a .prj file for ArcMap distributed by the Danish National Survey &amp; Cadastre, which defines the following parameters:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>PROJCS["Approximation of non-projective System 34 Sjælland",</FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp; GEOGCS["GCS_WGS_1984",</FONT></DIV>
<DIV><FONT size=2><FONT face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATUM["D_WGS_1984",&nbsp;S</FONT><FONT face="Courier New">PHEROID["WGS_1984",6378137.0,298.257223563]</FONT><FONT face="Courier New">],</FONT></FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PRIMEM["Greenwich",0.0],</FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UNIT["Degree",0.0174532925199433]</FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp; ],</FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp; PROJECTION["Orthographic"],</FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp;&nbsp;PARAMETER["False_Easting",-100000.0],</FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp; PARAMETER["False_Northing",100000.0],</FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp; PARAMETER["Longitude_Of_Center",12.105661],</FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp; PARAMETER["Latitude_Of_Center",55.29235],</FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp; UNIT["Meter",1.0]</FONT></DIV>
<DIV><FONT face="Courier New" size=2>]</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>To get MapServer to reproject my data, I added the following code to ms4w\proj\nad\epsg:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>&lt;34005&gt; +proj=ortho +lat_0=55.29235 +lon_0=12.105661 +x_0=-100000.0 +y_0=100000.0</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>Problem is that this transposes the data many kilometres north and slightly west (and perhaps also distorts it slightly, I'm not sure). The effect can be seen in these three maps:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV><FONT face="Courier New" size=2><A href="http://quovadis.dk/img/proj/">http://quovadis.dk/img/proj/</A></FONT>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT face="Courier New">All three maps are drawn in EPSG:32632. The green line data is natively EPSG:32632. The blue points are fetched from a WMS service in EPSG:4326, EPSG:32632 and my custom transformation respectively. The difference between lat/lon and UTM is noticeable but acceptable, but my own projection is way off. I have confirmed the distortion with different data sources in System 34 -&nbsp;this WMS and an orthophoto from another source - so I'm certain the error is on my end. </FONT><FONT face="Courier New">Can anybody tell me which rookie mistake I've commited? ;-)</FONT></FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>best regards,</FONT></DIV>
<DIV><FONT face="Courier New" size=2>Kristian Thy</FONT></DIV><br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff" color=#ff0000><STRONG><FONT color=#000000>This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding</FONT>.</STRONG></FONT><A href="http://www.blackspider.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000></FONT></A></P>
</body></HTML>