[GIS] Accurate Transformation of Gauss Kruger to WGS84 and ETRS89 using PROJ.4

coordinate systemproj

I have to transform Gauss Kruger coordinates to Long/Lat coordinates in WGS84 and ETRS89. I have really no knowledge about all these coordinate systems and their transformations. My background is just software engineering. I just have to do this, because our system only supports Long/Lat coordinates in WGS84 and ETRS89, but a few sub systems deliver only Gauss Kruger coordinates, so I need to transform them. I have to integrate the transformation in a Java application.

I made some research on my own an I tried using the Java library of PROJ.4, but I do not get accurate results.

I used it as follows:

proj +proj=tmerc +lat_0=0 +lon_0=6 +k=1 +x_0=2500000 +y_0=0 +ellps=bessel +datum=potsdam +units=m +no_defs

For example, for

N: 5705784, E: 2944378

I get

Long: 12.377177, Lat: 51.314087

But the result should be:

Long: 12.375598, Lat: 51.312832

Is this difference normal?

How can I get more accurate results?

Other libraries are also fine.

Best Answer

With GDAL 2.2-dev I get results which are closer to those that you consider correct. The Proj.4 version in that build is proj-4.8.

gdaltransform -s_srs epsg:31466 -t_srs epsg:4326
2944378 5705784
12.3756178459526 51.3128099490148 44.7304746098816

I suggest you to check which version your library is and update if it is older as the first step.

You should also find out what is your reference implementation so that others can evaluate if that is something that is known to be good for your area (Germany?).

Related Question