[mapserver-users] Using Proj.4 from PHP MapScript

Peter Hopfgartner peter.hopfgartner at r3-gis.com
Fri Dec 3 12:55:58 EST 2010


In some elder posts i've found some reference to a PHP binding for Proj.4, http://stackoverflow.com/questions/1939837/gis-spatial-functions-in-php,  which seems it was included with MapServer.
Anyway, if I have something like:

<?php
$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";

              $pj = pj_init($projarray);
?>

I get 
PHP Fatal error:  Call to undefined function pj_init() in /data/sites/test/proj.php on line 9

MapServer is version 5.6.5 from http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS, PHP MapScript is installed and included as a module.

Regards,

Peter
 
R3 GIS Srl - GmbH
http://www.r3-gis.com




More information about the mapserver-users mailing list