[mapserver-users] Problem in pointObj-> project from php/mapscript

Daniel Morissette dmorissette at mapgears.com
Tue Oct 4 13:56:20 EDT 2011


On 11-10-04 01:51 PM, Juanma M. R. wrote:
>
> The input coordinates are:
> $x = 642138
> $y = 2983678
>
> And the result:
> $pointObj->x = -109.5678723348
> $pointObj->y = 26.967831676085
>
> I think this is not the expected result. I have checked it with
> mapscript from  Mapserver 4.10 and 5.6.3. I have looked for a bug or
> something similar that could cause that. Anyone with the same problem?
>

$pointObj->x is the longitude (a.k.a. easting), and $pointObj->y the 
latitude (a.k.a. northing). A value of -109 can only be a longitude, 
since latitude must be in the +/-90 range.

What makes you think that the x and y are reversed?

-- 
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000



More information about the mapserver-users mailing list