Hi,<br><br>I have been doing more tests to try to identify exactly the problem and I ahve realized that, according to <a href="http://twcc.free.fr/" target="_blank">http://twcc.free.fr/</a>,
 the coordinates returned when working with php_mapscript from version 
4.10 are not correct. I am trying to get where is the problem, so that I
 can decide wether sorting out a The issue is that the function project 
returns different things depending on the server configuration:<br>
<br>Input coordinates in Google Spherical Mercator:<br>(-20500513.477395,-3641436.<div id=":1rf">715144)<br><br>Server 1: proj 4.1.5 and MapServer 4.10 returns (-90270074.105905,-216622133.8792)<br>Server 2: proj 4.1.7 and MapServer 5.6 returns (-20500513.477395,-3641436.715144)<br>

The World Coordinate Converter automatically transform the output CRS to
 UTM 60S, so I can&#39;t not validate the transformation with it.<br> <br>The
 issue is that I would like to understand the expected behaviour from 
this function, so that I can go on checking it and defining the best way
 to support the functionality or detecting a problem in servers 
configuration.<br>
<br>The code is as follows:<br><br>function project($x, $y, $srsIn, $srsOut)<br>        {<br>                $pointObj=ms_newPointObj();<br><br>                $pointObj-&gt;setXY($x,$y);<br><br>                $pointObj-&gt;project(ms_newProjectionObj(&quot;init=&quot;.strtolower($srsIn)), ms_newProjectionObj(&quot;init=&quot;.strtolower($srsOut)));<br>


<br>                $xout=$pointObj-&gt;x;<br>                $yout=$pointObj-&gt;y;<br><br>                $pointObj-&gt;free();<br><br>                return $xout.&quot;,&quot;.$yout;<br>        }<br>?&gt;</div><br><br>
<div class="gmail_quote">2012/4/16 Lime, Steve D (DNR) <span dir="ltr">&lt;<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">The transformation is done in place, I’ve not had problems with it. What language? Can you post a code snippet?<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>]
<b>On Behalf Of </b>Juanma M. R.<br>
<b>Sent:</b> Thursday, April 12, 2012 4:13 AM<br>
<b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> [mapserver-users] pointObj-&gt;project behaviour differences from 4.10 to 5.6 versions<u></u><u></u></span></p>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Dear list,<br>
<br>
I have a webgis application working with different CRS all over the world. I have realized that the behaviour from version 4.10 of the function pointObj-&gt;project differs from the one of version 5.6 from Mapserver. For example, I try to convert (-116,-15) in
 4326 and in mapscript from version 4.10 it returns  (-26158630.407638,-25040425.679281) when passing to 32630. On the other hand, in version 5.6 of mapscript it returns the original coordinates without transforming them.
<br>
<br>
Is this intended or am I doing something wrong? Which is the intended behaviour of project function in MapServer 5.6?<br clear="all">
<br>
Best regards,<br>
-- <br>
Juan Manuel Moreno Rivera.<br>
University of Castilla-La Mancha<br>
Albacete, Spain<u></u><u></u></p>
</div></div></div>
</div>

</blockquote></div><br><br clear="all"><br>-- <br>Juan Manuel Moreno Rivera.<br>
University of Castilla-La Mancha<br>
Albacete, Spain<br>