using php_proj to convert data

fx gamoy fx.gamoy at MAPXPLORE.COM
Sat Mar 5 11:26:40 PST 2005


Hello bart,
thanks a lot
afters several testing, it works fine!!
best regards
fx

Le Vendredi 4 Mars 2005 21:56, vous avez écrit :
> Hi,
>
> there are some docs inside of the php_proj.c file. I have attached it for
> you.
>
>   * 4) pj_transform : pj_transform(PJ pjsrc, PJ pjdst, double x, double y)
>   *      transforms coordinates from source projection to
>   *                   destination projection.
>   *
>   *   Example :  $projarray[0] = "proj=lcc";
>   *              $projarray[1] = "ellps=GRS80";
>   *              $projarray[2] = "lat_0=49";
>   *              $projarray[3] = "lon_0=-95";
>   *              $projarray[4] = "lat_1=49";
>   *              $projarray[5] = "lat_2=77";
>   *              $projarray[6] = "";
>   *
>   *              $pjlcc = pj_init($projarray);
>   *              $projarray2[0] = "proj=latlong";
>   *              $pjlat = pj_init($projarray2);
>   *
>   *              $ingeox = 1537490.335842;
>   *              $ingeoy = -181633.471555;
>   *
>   *              $ret = pj_transform($pjlcc, $pjlat, $ingeox, $ingeoy);
>
> Best regards,
> Bart
>
> On Fri, 4 Mar 2005 21:28:11 +0100, fx gamoy <fx.gamoy at MAPXPLORE.COM> wrote:
> > Hello everybody,
> >
> > i have installed proj4 and i use it to generate maps using on the fly
> > projection (form epsg=4326 to 27582) and it works fine!!
> >
> > I have also installed php_proj and i would like to convert some
> > coordinates
> > from epsg=4326 to epsg=27582 using pj_transform??
> >
> > what is the way?
> > any help will be appreciated
> >
> > thanks
> > fx
> > http://www.geomatika.fr/



More information about the MapServer-users mailing list