[mapserver-users] MapServer 4.8.3: MapScript setProjection

Daniel Morissette dmorissette at mapgears.com
Thu Mar 13 10:07:46 EDT 2008


Rob wrote:
> Just looking at the API on the website, there is also a setWKTProjection 
> method.
> 
> Does anybody know if this was around in Version 4.8.3 and if it is more 
> perfomant than the ESPG lookup?
> 

FYI, the following works for me with MapServer 4.8.4 (and 5.0), using PHP:


$map->setProjection('+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 
+x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs');

echo $map->getProjection()."\n";


I suggest you double-check your code, you must have made some typos.

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/


More information about the mapserver-users mailing list