I have a problem to convert between KKJ3 and WGS84 projections. The location differs about 10 kilometers from original WGS84 when I convert KKj3 to back WGS84 ? It seems that longitude is ok, but latitude is not.
In used: https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.12/proj4.js
Settings: 'EPSG:2393', '+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +units=m +no_defs'
Code: Settings:
proj4.defs([
[
'EPSG:2393',
'+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +units=m +no_defs'
]
]);
var wgs = 'WGS84';
var kkj3 = 'EPSG:2393';
var str = "Changes:\n";
var KKJ3Value;
var WGS84Value;
User example:
KKJ3Value = proj4(wgs,kkj3,[UserLat,UserLon]);
str += "1.\tWGS84( " + UserLat + "," + UserLon + ")" + " => KKJ3\n";
str += "\tResult: " + KKJ3Value[0] + ","+ KKJ3Value[1] + "\n\n";
str += "2.\tKKJ3 => WGS84\n";
WGS84Value = proj4(kkj3,wgs,[KKJ3Value[0],KKJ3Value[1]]);
str += "\tResult: " + WGS84Value[0] + ","+ WGS84Value[1] + "\n";
alert(str);
Result: Result