-
Notifications
You must be signed in to change notification settings - Fork 778
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
bug in inverse in pj_sts.c #40
Comments
Comment by warmerdam on 18 May 2009 23:37 UTC |
Comment by barendgehrels on 19 May 2009 07:44 UTC The "side effect" is also present in the line above. Actually they are a weird thing in C, embraced by some, rejected by others, and present in many more proj4 sources. Where is the test suite? |
Comment by warmerdam on 19 May 2009 13:53 UTC See proj/nad/testvarious It is sufficient however if you can provide input, expected output and the coordinate system. |
Comment by barendgehrels on 19 May 2009 14:11 UTC (string, lon, lat, x, y, pars) forward: ("kav5", 4.897000, 52.371000, 383646.088858, 5997047.888175, "+proj=kav5 +ellps=WGS84 +units=m"); (string, x, y, lon, lat, pars) inverse: ("kav5", 383646.088858, 5997047.888175, 4.897000, 52.371000, "+proj=kav5 +ellps=WGS84 +units=m"); These x,y are '''not''' "the expected values", they are the ''proj4-calculated-values''. However, when applying then the inverse you might expect to get back a lon,lat pair which is close to the original input and that is what I checked. If wished I can provide a proj4 testfile-in-C "checking" (in this way) all projections (I have it, with slight adaptions it is probably convenient). Most projections are doing well, some have a difference of a few meters or kilometer, one of them is wrong (I contacted Gerald), one is still to be checked further. |
Comment by warmerdam on 19 May 2009 15:07 UTC |
Reported by barendgehrels on 17 May 2009 21:31 UTC
The inverse projection in file PJ_sts.c gives wrong results.
Line 34, lp.phi /= P->C_p; should be erased because is duplicated in line 35.
This is already solved in libproj4
Migrated-From: https://trac.osgeo.org/proj/ticket/40
The text was updated successfully, but these errors were encountered: