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->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>
><br>
> The input coordinates are:<br>
> $x = 642138<br>
> $y = 2983678<br>
><br>
> And the result:<br>
> $pointObj->x = -109.5678723348<br>
> $pointObj->y = 26.967831676085<br>
><br>
> I think this is not the expected result. I have checked it with<br>
> mapscript from Mapserver 4.10 and 5.6.3. I have looked for a bug or<br>
> something similar that could cause that. Anyone with the same problem?<br>
><br>
<br>
$pointObj->x is the longitude (a.k.a. easting), and $pointObj->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>