using php_proj to convert data
Bart van den Eijnden
bartvde at XS4ALL.NL
Fri Mar 4 12:56:05 PST 2005
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/
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: php_proj.c
Type: application/octet-stream
Size: 25284 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050304/9603775e/attachment.obj>
More information about the MapServer-users
mailing list