Dear Daniel,<br><br>First of all thank you for answering so quickly. <br><br>Secondly, I must apologise for sending the email. It was my fault as I understood wrongly the meaning of the coordinates in degrees. When referring to them as Longitude and Latitude I misunderstood them. I know the values they can get but I changed the correct place for Latitude / Longitude in the x/y pointObj. Just reading your email (using easting and northing instead) I understood my problem.<br>
<br>The pointObj-&gt;project method works perfectly in php/mapscript.<br><br>Sorry again for this email and thank you very much for your answer Daniel.<br><br>Best regards,<br>Juan Manuel Moreno Rivera.<br><br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On 11-10-04 01:51 PM, Juanma M. R. wrote:<br>
&gt;<br>
&gt; The input coordinates are:<br>
&gt; $x = 642138<br>
&gt; $y = 2983678<br>
&gt;<br>
&gt; And the result:<br>
&gt; $pointObj-&gt;x = -109.5678723348<br>
&gt; $pointObj-&gt;y = 26.967831676085<br>
&gt;<br>
&gt; I think this is not the expected result. I have checked it with<br>
&gt; mapscript from  Mapserver 4.10 and 5.6.3. I have looked for a bug or<br>
&gt; something similar that could cause that. Anyone with the same problem?<br>
&gt;<br>
<br>
$pointObj-&gt;x is the longitude (a.k.a. easting), and $pointObj-&gt;y the<br>
latitude (a.k.a. northing). A value of -109 can only be a longitude,<br>
since latitude must be in the +/-90 range.<br>
<br>
What makes you think that the x and y are reversed?<br>
<br>
--<br>
Daniel Morissette<br>
<a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br>
Provider of Professional MapServer Support since 2000<br>
<br></blockquote></div><br>