Closed Yaqiang closed 1 year ago
Hey @Yaqiang that's pretty nice, thank you. However, I'm a bit hesistant to add an extra dep to the zero dependencies library. 🤔
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).
I will try to re-commit the PR by adding geodesic code in proj4j.
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.