[Proj] GDM2000 for Malaysia

Bjørn Krangnes bkr at devonor.com
Fri May 4 06:51:40 PDT 2007


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;
            OGR.CoordinateTransformation tram = new
OGR.CoordinateTransformation(input, output);
            tram.TransformPoint(xyz);
The result I am getting is : 0.0319005150210526
            xyz[0] = 0.0319005150210526;
            xyz[1] = 1.8088637723928358;
            xyz[2] = 10.0;

The expected result is :

Easting =   627096.132 m
Northing = 202122.062 m

Anyone who knows what the problem is ?

Bjørn Krangnes
Devonor AS
Telephone: +47 32 29 96 90
Direct Line: +47 32 29 96 91
Mobile: +47 45035640
E-mail: bkr at devonor.com
Web: www.devonor.com





More information about the Proj mailing list