[Proj] GDM2000 for Malaysia

Oscar van Vlijmen ovv at hetnet.nl
Mon May 7 01:41:24 PDT 2007


> From: Bjørn Krangnes
> Date: Fri, 4 May 2007 15:51:40 +0200 (CEST)
> Subject: [Proj] GDM2000 for Malaysia
> 
> I am trying convert GDM2000 – MRSO (Peninsular)
> I am using C# and GDAL
> The code look as follows
> 
> stat3 = input.ImportFromProj4("+proj=longlat +ellps=GRS80
> +no_defs  <>");
> stat4 = output.ImportFromProj4("+proj=omerc +lat_0=4
> +lonc=102.25 +alpha=323.0257964666666 +k=0.99984 +x_0=804671
> +y_0=0 +ellps=GRS80 +units=m +no_defs  <>");
> xyz[0] = 1.827764875;
> xyz[1] = 103.64025987222223;
> xyz[2] = 10.0;
.....

> The expected result is :
> Easting =   627096.132 m
> Northing = 202122.062 m
> 
> Anyone who knows what the problem is ?

Yep. There really should be some tutorial, at least for the oblique mercator
and some stereographic projections, since the same questions are put time
after time again.
Your PROJ string is not complete. The correct results could emerge if you
add the options no_uoff rot_conv.
See also the entry <malay> in the /nad/world file in the PROJ distribution.
With my stuff I get 627096.13171, 202122.06248 m.






More information about the Proj mailing list