PHP/MapScript projection string
Dirk Jesko
ml.dje at GEOCONTENT.DE
Wed Mar 15 04:48:39 PST 2006
Hi Robert,
did you try proj.4 syntax? Like
"+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0
+towgs84=-75,-230,-89 +ellps=intl"
This seems to work in my case.
Regards,
Dirk Jesko
Robert Albrecht wrote:
> 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