Skip to content
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 fixed for EquidistantAzimuthalProjection #85

Closed
wants to merge 3 commits into from

Conversation

Yaqiang
Copy link
Contributor

@Yaqiang Yaqiang commented Oct 9, 2022

In EquidistantAzimuthalProjection, project and projectInverse functions results are not corrected with elliptical OBLIQUE or EQUATOR setting #84. Geodesic calculation is needed in this condition, which can be done using GeographicLib-Java dependency (https://github.com/geographiclib/geographiclib-java). Also I added testEquidistantAzimuthal function for testing, and it passed.

@pomadchin pomadchin self-assigned this Oct 9, 2022
@pomadchin pomadchin self-requested a review October 9, 2022 13:21
@pomadchin
Copy link
Member

Hey @Yaqiang that's pretty nice, thank you. However, I'm a bit hesistant to add an extra dep to the zero dependencies library. 🤔

@Yaqiang
Copy link
Contributor Author

Yaqiang commented Oct 9, 2022

A possible solution is to copy the code from geographiclib-java into proj4j, just like OSGeo PROJ which transcripted the geographiclib c++ code (https://github.com/OSGeo/PROJ/blob/master/src/geodesic.c).

@Yaqiang
Copy link
Contributor Author

Yaqiang commented Oct 10, 2022

I will try to re-commit the PR by adding geodesic code in proj4j.

@Yaqiang Yaqiang closed this Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants