0

I been using the proj4js to tranfrom the projection1 (EPSG3376) to projection2 (EPSG4326) with the data location of [66333, 170175] the outcome suppose to be [110.281820983;1.5390299426] where i test it on the https://mygeodata.cloud/cs2cs/ and test it on https://epsg.io but when it transform it turn to [115.59856224058234, 5.5388802885425905]. Can i know what are the problem with it?

Here is my code

    var firstProjection     = '+proj=omerc +lat_0=4 +lonc=115 +alpha=53.31580995 +k=0.99984 +x_0=0 +y_0=0 +no_uoff +gamma=53.13010236111111 +ellps=GRS80 +units=m +no_defs';
    var secondProjection    = '+proj=longlat +datum=WGS84 +no_defs';
    var point               = proj4(firstProjection,secondProjection,[66333,170175]);
  • Show your code. – user30184 Feb 13 at 10:48
  • EPSG:4326 is lat long, so 110.28...,1.5... is not correct – nmtoken Feb 15 at 8:58
  • i had add in my code. By the way, why the lat long is not correct? I try it show the correct position on the map. – Newb Feb 15 at 14:19
  • I confusing with the input coordinate actually any clarification on the input coordinate of proj4js ? Does the x and y stand for the easting and northing or latitude or longtitude? – Newb Feb 15 at 14:26
0

1)
E 66333 N 170175 in EPSG:3376 is indeed E 110.281820983 N 1.5390299426 in EPSG:4326.
If you had obtained any other result, it could be that:-

(a) The converter is buggy,
(b) You typed wrongly,
(c) Both the above.

2)
Do take note that what you had done is to express a coordinate in the GDM2000 reference frame as long/lat in WGS84 ellipsoid. This does not transform your coordinate in the GDM2000 reference frame into the WGS84 Gxxxx reference frame.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.