Using EsriMap JS v4.34
I am projecting coordinates from EPSG:31255 (MGI / Austria GK West) to WebMercator (EPSG:3857).
Test coordinate:
X: 48402
Y: 335041
Expected result (EPSG.io / PROJ / pyproj):
1556587.0410259578, 6132161.572467429
ArcGIS JS result (ProjectOperator.execute without geographicTransformation):
1556143.0256220328, 6132152.124194294
This results in a horizontal offset of ~440 meters.
Even when trying several GeographicTransformation WKIDs, none match the correct result.
Is ArcGIS JS missing the correct transformation grid for this CRS?
My JS code test :
require([
"esri/geometry/operators/projectOperator",
"esri/geometry/Polyline",
"esri/geometry/SpatialReference"
], function (ProjectOperator, Polyline, SpatialReference) {
(async () => {
await ProjectOperator.load();
const sourceSR = new SpatialReference({ wkid: 31255 });
const targetSR = new SpatialReference({ wkid: 3857 });
let polyline = new Polyline({
paths: [[[48402, 335041]]],
spatialReference: sourceSR
});
let projected = ProjectOperator.execute(polyline, targetSR);
console.log(projected);
})();
});