PHP/MapScript projection string

Robert Albrecht robert.albrecht at TKK.FI
Wed Mar 15 03:49:49 PST 2006


Hi!

I'm trying to do a conversion from Finnish KKJ coordinates to WGS 84 
lat/long coordinates using PHP/MapScript. My problem is that I can't 
figure out how to specify the transformation parameters.

The projection I'm trying to do looks like this:
$projIn = 
ms_newProjectionObj("proj=tmerc,lat_0=0,lon_0=27,k=1,x_0=3500000,y_0=0,towgs84=-75,-230,-89,ellps=intl");
$projOut = ms_newProjectionObj("proj=latlong,datum=WGS84");

However the "towgs84=-75,-230,-89" part only works for the dx part (-75) 
as MapScript apparently thinks -230 and -89 are new parameters. I've 
tried different ways to specify the transformation parameters, without 
any luck. Could someone help me out here?

Thanks in advance,
Robert Albrecht



More information about the MapServer-users mailing list