[mapserver-users] Re: Problem in pointObj-> project from php/mapscript
Juanma M. R.
juanma.mr at gmail.com
Wed Oct 5 07:05:05 PDT 2011
Dear Daniel,
First of all thank you for answering so quickly.
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.
The pointObj->project method works perfectly in php/mapscript.
Sorry again for this email and thank you very much for your answer Daniel.
Best regards,
Juan Manuel Moreno Rivera.
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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111005/2a4cf31c/attachment.htm>
More information about the MapServer-users
mailing list