-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid conversion EPSG:5514 - JTSK #25
Comments
Maybe same issue as in other projects |
I’ve also encountered problems with EPSG:5514. I am not so experienced in this field, so I might be wrong and the problem might lie in my code, but I’ve checked other two tools and the result is different than result from Proj4J. I need to convert from EPSG:4326 to EPSG:5514. According to page https://epsg.io/5514, coordinates should be negative. Using the transform tool on the same page, https://epsg.io/transform#s_srs=4326&t_srs=5514&x=16.6000000&y=49.1900000, I got negative numbers -598803.96 and -1161258.17. Using the
(installed as deb package, https://proj.org/install.html#debian) However, Proj4J gives different results. This is test code and log output is below.
From the log:
|
The abovementioned test is working if I use this as a second parameter for
This param string is copied from comment OSGeo/PROJ#233 (comment) and After this change these two tests are passing. However, I am not sure if the fix can be ‘so easy’. As I stated in my previous comment, I am quite new in this field without solid knowledge (I am not deeply involved into GIS, I just need to do some simple transformations in my application) and I might overlook some unwanted side effects. |
And by the way, I am using Proj4J version 1.1.1. |
I get wrong result for EPSG:5514 - JTSK specified by proj4j parameters. Conversion WGS84 -> JTSK is almost correct except SIGNs. Conversion from JTSK -> WGS84 is WRONG.
JTSK : ProjCoordinate[747963.6497538437 1041493.3287851878 NaN] // negative signs
WGS84: ProjCoordinate[24.834517978270924 -59.948074516468246 NaN] // - wrong should be: 14.346996204306555,50.09465901453681
Values and code example is derived from JavaScript:
http://jsfiddle.net/xiceph/79QHW/1/
proj4js/proj4js#115
The text was updated successfully, but these errors were encountered: