proj4j icon indicating copy to clipboard operation
proj4j copied to clipboard

Transformation error from 5514 to 4326

Open mikimikimikia opened this issue 3 years ago • 0 comments

I would like to point out the mistake from ticket #25 again.

The conversion from 4326 to 5514 works correctly, but in the opposite direction (5514 -> 4326) the calculation still returns incorrect values of approx. 24.8299 -59.94829. It doesn't really matter what values I enter, there are always numbers similar to those listed (numbers in distant decimal positions and Z value change).

For example, my code:

CRSFactory crsFactory = new CRSFactory(); CoordinateReferenceSystem t1 = crsFactory.createFromName("epsg:4326"); CoordinateReferenceSystem t2 = crsFactory.createFromName("epsg:5514"); CoordinateTransformFactory ctFactory = new CoordinateTransformFactory(); CoordinateTransform tran = ctFactory.createTransform(t2, t1); ProjCoordinate result_p2 = new ProjCoordinate(); ProjCoordinate vstup=new ProjCoordinate( -743093.7321490766, -1044381.7725184687); tran.transform(vstup, result_p2);

This code is supposed to return 14.42, 50.075, but it does return 24.82998756399294 -59.94829824087518. Similar result numbers are for any input. Obviously there will be an error somewhere in the transformation equation. It works in one direction, not inversely.

mikimikimikia avatar Apr 11 '22 11:04 mikimikimikia