<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:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @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:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:10.0pt;
        font-family:Arial;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=SV link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>Mohammad, <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>I&#8217;m starting to think that the long/lat of your
black-box tool is not WGS84 long/lat, but DHDN long/lat. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>The DHDN long/lat has EPSG code 4314, and DHDN /
3-degree Gauss-Kruger zone 4 <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>has EPSG code 31468, and I get:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Courier New"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Courier New"'>&gt; cs2cs +init=epsg:4314
+to +init=epsg:31468<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Courier New"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Courier New"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Courier New"'>13.755944 51.0545555<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Courier New"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Courier New"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Courier New"'>4623099.53 5659041.38
0.00<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>Here, the default datum shift that Proj.4 uses for
DHDN is not important, since both<br>
the source and target uses the DHDN datum. The result is only 1.46 m from your<br>
tool result. Close, but no cigar. At least you can use a smaller Finagle&#8217;s
constant ;-) <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>(&#8220;That quantity which, when multiplied by,
divided by, added to, or subtracted from the <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>answer which you got, yields the answer you should
have gotten.&#8221;) <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>I don&#8217;t know if DHDN long/lat is often used for
German GIS data. The analogous thing<br>
in <st1:country-region w:st="on"><st1:place w:st="on">Sweden</st1:place></st1:country-region>
would be RT90 long/lat, a format that you never see for GIS data, at least not<br>
from the <st1:place w:st="on"><st1:PlaceName w:st="on">Swedish</st1:PlaceName> <st1:PlaceType
 w:st="on">Land</st1:PlaceType></st1:place> Survey. But the practice in <st1:country-region
w:st="on"><st1:place w:st="on">Germany</st1:place></st1:country-region> may be
different, of course.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=yiv891269233st><font size=2 color=black
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:black'>&gt; &#8230; until as you said the 2012 new modifications come to
Proj.4.<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=yiv891269233st><font size=2 color=black
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:black'><o:p>&nbsp;</o:p></span></font></span></p>

<p class=MsoNormal><span class=yiv891269233st><font size=3 color=black
face=Arial><span lang=EN-GB style='font-size:12.0pt;font-family:Arial;
color:black'>I don&#8217;t think they will help you. I think they are identical
to the current definitions, except<br>
in the axis order and axis abbreviations. This is important in certain GIS
standards from<br>
OGC for transmitting coordinates on the web, but not for you. (Since your
problem is not<br>
that you have confused northing with easting.) </span></font></span><font
color=black face=Arial><span lang=EN-GB style='font-family:Arial;color:black'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=yiv891269233st><font size=2 color=black
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:black'>&gt; One last question to all, how do I revers the conversion from
X/Y Cartesian to Long/Lat Geographical?<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=yiv891269233st><font size=2 color=black
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:black'><o:p>&nbsp;</o:p></span></font></span></p>

<p class=MsoNormal><span class=yiv891269233st><font size=3 color=black
face=Arial><span lang=EN-GB style='font-size:12.0pt;font-family:Arial;
color:black'>When you use cs2cs on the command line, the &#8220;left hand side&#8221;
is everything<br>
between cs2cs and +to, while the &#8220;right hand side&#8221; is everything
after +to. <o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=yiv891269233st><font size=3 color=black
face=Arial><span lang=EN-GB style='font-size:12.0pt;font-family:Arial;
color:black'>Just exchange the left and right hand sides to reverse the
direction. <o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=yiv891269233st><font size=3 color=black
face=Arial><span lang=EN-GB style='font-size:12.0pt;font-family:Arial;
color:black'><o:p>&nbsp;</o:p></span></font></span></p>

<p class=MsoNormal><span class=yiv891269233st><font size=3 color=black
face=Arial><span lang=EN-GB style='font-size:12.0pt;font-family:Arial;
color:black'>Best regards,<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=yiv891269233st><font size=3 color=black
face=Arial><span lang=EN-GB style='font-size:12.0pt;font-family:Arial;
color:black'><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=yiv891269233st><font size=3 color=black
face=Arial><span lang=EN-GB style='font-size:12.0pt;font-family:Arial;
color:black'>Mikael Rittri<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=yiv891269233st><font size=3 color=black
face=Arial><span lang=EN-GB style='font-size:12.0pt;font-family:Arial;
color:black'>Carmenta<o:p></o:p></span></font></span></p>

<p class=MsoNormal><st1:country-region w:st="on"><st1:place w:st="on"><span
  class=yiv891269233st><font size=3 color=black face=Arial><span lang=EN-GB
  style='font-size:12.0pt;font-family:Arial;color:black'>Sweden</span></font></span></st1:place></st1:country-region><span
class=yiv891269233st><font color=black face=Arial><span lang=EN-GB
style='font-family:Arial;color:black'><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=yiv891269233st><font size=3 color=black
face=Arial><span lang=EN-GB style='font-size:12.0pt;font-family:Arial;
color:black'>http://www.carmenta.com</span></font></span><font face=Arial><span
lang=EN-GB style='font-family:Arial'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal 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>

<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;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>Mohammad Amro<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, May 09, 2012 2:06
PM<br>
<b><span style='font-weight:bold'>To:</span></b> proj@lists.maptools.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Proj] Using EPSG
codes with cs2cs (the one who asked: Amro_rt_rps)</span></font><span
lang=EN-US><o:p></o:p></span></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div>

<p class=MsoNormal style='background:white'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'>Hi all,</span></font><font
color=black face=Arial><span style='font-family:Arial;color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='background:white'><font size=3 color=black
face=Arial><span style='font-size:12.0pt;font-family:Arial;color:black'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='background:white'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>[ - text
deleted - ]<o:p></o:p></span></font></p>

<p class=MsoNormal style='background:white'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='background:white'><font size=2 color=navy face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>&#8230; </span></font><font
size=2 color=black face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:black'>may be there is no better way to do it than
offsetting the different and be happy with that. May be the tool I am using
(closed box) is following different methods for conversion?!<span class=tab>&nbsp;&nbsp;&nbsp;
</span></span></font><font color=black face=Arial><span lang=EN-GB
style='font-family:Arial;color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='background:white'><font size=3 color=black
face=Arial><span lang=EN-GB style='font-size:12.0pt;font-family:Arial;
color:black'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='background:white'><span class=tab><font size=2
color=black face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial;color:black'>e.g., Long:&nbsp;</span></font></span><font size=2
color=black face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial;color:black'> <span class=tab>13.755944, Lat: 51.0</span></span></font><span
class=tab><font size=2 color=black face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:black'>545555</span></font></span><font color=black
face=Arial><span style='font-family:Arial;color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='background:white'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='background:white'><span class=tab><font size=2
color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'>Tools coordinates:</span></font></span><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='background:white'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'>4623100&nbsp;&nbsp;&nbsp;
5659040<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='background:white'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='background:white'><span class=tab><font size=2
color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'>7-parameters (X is shifted: 118 m, and Y is shifted 140 m)::</span></font></span><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='background:white'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'>4623218.84&nbsp;&nbsp;&nbsp;
5659181.12<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='background:white'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'><o:p>&nbsp;</o:p></span></font></p>

</div>

<p class=MsoNormal style='background:white'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'>BETA2007
<span class=tab>Datum shifts (X is shifted: 120 m, and Y is shifted 140 m):</span><br>
4623220.44&nbsp;&nbsp;&nbsp; 5659181.52<br>
<br>
Anyway, I think, as I am doing this conversion on a small scale area, then a
linear offset (-118m, -140m) would result in &lt;<span class=yiv891269233st>2
meters which is the best I can go with until as you said the 2012 new
modifications come to Proj.4.</span><br>
<br>
<span class=yiv891269233st>One last question to all, how do I revers the
conversion from X/Y Cartesian to Long/Lat Geographical?</span><br>
<br>
<span class=yiv891269233st>A huge thanks you,</span><br>
<span class=yiv891269233st>Mohammad Amro</span></span></font><font color=black
face=Arial><span style='font-family:Arial;color:black'><o:p></o:p></span></font></p>

<div>

<p class=MsoNormal style='background:white'><font size=3 color=black
face=Arial><span style='font-size:12.0pt;font-family:Arial;color:black'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>

</div>

</body>

</html>