[mapserver-users] proj module for php with pj_transform ?

Daniel Morissette morissette at dmsolutions.ca
Thu Sep 20 07:35:12 PDT 2001


I filed this as an enhancement request in bugzilla...
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=47

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.


Claude Philipona wrote:
> 
> 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




More information about the MapServer-users mailing list