Opened 23 years ago

Closed 23 years ago

Last modified 23 years ago

#47 closed enhancement (fixed)

PHP PROJ - Add calls for pj_transform with PROJ 4.4.3+

Reported by: dmorissette Owned by: assefa
Priority: high Milestone:
Component: PROJ-PHP Module Version: 3.5
Severity: minor Keywords:
Cc: claude.philipona@…

Description

Subject:         [mapserver-users] proj module for php with pj_transform ?
   Date:         Thu, 20 Sep 2001 14:10:38 +0200
   From:         "Claude Philipona" <claude.philipona@camptocamp.com>
     To:         <mapserver-users@lists.gis.umn.edu>

There is the source for a proj module for php in the distribution of Mapserver.
We compiled it and use it to have forward and inverse porjection directly
available in PHP.

In the new version of proj 4.4.3 there are some new fonctions allowing to make
datum shift and to transform from any coordinates (projection or geographic)
system to another one, with pj_transform.

We know that these function are not implemented yet in the php module. As we are
not expert in building php module, we wanted to know if anybody is planning to
extend the php proj module with those fucntion?

For now, I'm using the exec() function to call the system command cs2cs (command
using pj_transform). For example to translate from swiss grid to UTM 32N:
exec("cs2cs +init=epsg:9814 +to +init=epsg:32632 <<EOF\n 600000 200000 480 \n 
EOF
\n" ,$cmd_result);


Claude Philipona

Change History (3)

comment:1 by claude.philipona@…, 23 years ago

Cc: claude.philipona@… added
op_sys: Windows 98Linux

comment:2 by assefa, 23 years ago

Resolution: fixed
Status: newclosed
added pj_transform and pj_datum_transform functions.

comment:3 by claude.philipona@…, 23 years ago

I was wondering if it wouldn't be nice to have the ability to give z as 
optionnal parameter and get h in return (if z isn't passed, then it would 
considered as 0)? in my case it would (GPS application; btw, cs2cs command 
which uses pf_transform does it). Thanks for this fast implementation :-)
Note: See TracTickets for help on using tickets.