-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature/precision library #7
base: feature/precision_library
Are you sure you want to change the base?
Feature/precision library #7
Conversation
@@ -45,15 +45,19 @@ public void Lambert93BugTest() { | |||
LambertPoint pt = Lambert.convertToWGS84Deg(668832.5384, 6950138.7285, LambertZone.Lambert93); | |||
assertEquals(2.56865, pt.getX().doubleValue(), 0.0001); | |||
assertEquals(49.64961, pt.getY().doubleValue(), 0.0001); | |||
|
|||
} | |||
|
|||
@Test | |||
public void LambertIIExtendedToWgs84Test() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I detect that this code is problematic. According to the Bad practice (BAD_PRACTICE), Nm: Method names should start with a lower case letter (NM_METHOD_NAMING_CONVENTION).
Methods should be verbs, in mixed case with the first letter lowercase, with the first letter of each internal word capitalized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello
I left the test method names exactly like they were in the initial repo.
Yes, this is bad practice, but fixing this was not part of my reasons for this pull request.
Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noticed
Hello,
I've redone your translation of the initial algorithm using the Apfloat library.
There were some issues in your translation in the following methods:
cartesianToGeographic
geographicToLambertAlg003
latitudeISOFromLat
I've had to modify some reference test values because of minor differences caused by the precision algorithm.
Please let me know if there's any other test case you would like me to add.
Thank you.