<font size=3>Hi all, </font>
<br><font size=3>I would like to transform local cartesian coordinates
into longitude and latitude. According to all the documentation I could
find, I tried doing this (in C++, specifying a center for the orthographic
projection at 56 N 15 E): </font>
<br>
<br><font size=3 face="Courier">projPJ cSourceProjection = pj_init_plus("+proj=ortho
+ellps=WGS84 +datum=WGS84 +lat_0=56 +lon_0=15 +no_defs");</font>
<br><font size=3 face="Courier">projPJ cTargetProjection = pj_init_plus("+proj=longlat
+ellps=WGS84 +datum=WGS84 +no_defs");</font>
<br><font size=3 face="Courier">projXY pt;</font>
<br><font size=3 face="Courier">// 1</font>
<br><font size=3 face="Courier">pt.u = 0; pt.v = 0; </font>
<br><font size=3 face="Courier">pj_transform( cSourceProjection, cTargetProjection,
1, 0, &pt.u, &pt.v, 0 );</font>
<br><font size=3 face="Courier">printf ("Result 1: %2.6f %2.6f",
pt.u, pt.v); </font>
<br><font size=3 face="Courier">// 2</font>
<br><font size=3 face="Courier">pt.u = 0; pt.v = 111120; </font>
<br><font size=3 face="Courier">pj_transform( cSourceProjection, cTargetProjection,
1, 0, &pt.u, &pt.v, 0 );</font>
<br><font size=3 face="Courier">printf ("Result 2: %2.6f %2.6f",
pt.u, pt.v); </font>
<br>
<br><font size=2 face="sans-serif">--> Delivers : </font>
<br><font size=3 face="Courier">Result 1: 0.26180 0.97738 </font>
<br><font size=3 face="Courier">Result 2: 0.29295 0.97716</font>
<br><font size=3 face="Courier"> </font>
<br><font size=3>However, I would like to get something like </font>
<br><font size=3>"</font><font size=3 face="Courier">Result 1: 56.0..
15.0</font><font size=3>.." (i.e. the projection center itself, no
matter what scaling there might be) and </font>
<br><font size=3>"</font><font size=3 face="Courier">Result 2: 57.0..
15..</font><font size=3>" (if </font><font size=3 face="Courier">pt</font><font size=3>
is interpreted in meters) </font>
<br><font size=3>- at least anything that resembles reasonable longitude
and latitude values, but I don't...</font>
<br>
<br><font size=3>Could you maybe give me a hint what is going wrong here?
</font>
<br>
<br><font size=3>Thank you in advance for any help!</font>
<br>
<br><font size=3>Regards</font>
<br><font size=3>Niels</font>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>