Problem with converting Korean coordinates (EPSG:5179) to Decimal Degree coordinates (EPSG:4326)

Description

I have a problem when converting from Korean 2000 Coordinates System (EPSG:5179) to Decimal Degree (EPSG:4326).

We are developing Geographical Information System for Korean company. We were using Geotools library for mulitiple backend implementations. However I have problem now with conversion from EPSG:5179 to EPSG:4326. For example: when using multiple online converters like https://epsg.io/transform#s_srs=5179&t_srs=4326 trying to to convert korean coordinate: x : 1307285 y : 2229260

an expected results are (in decimal degree format): x : 131.0999928 y : 40.0099722

So now i'm trying to use Geotools library to do same convertion using this documentation http://docs.geotools.org/stable/userguide/library/api/jts.html

My example test:

So that test fails at first coordinate comparison, actual output is: longitude : 140.340217725

when longitude should be 131.0999928

Do you have any suggestion if I am doing something wrong ? or maybe some it is a bug ? Thank you in advance !

Environment

None

Assignee

Unassigned

Reporter

Sebastian Słupiński

Priority

High
Configure