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

Enhance precision of inverse Spherical Mercator projection near the equator #931

Closed
wants to merge 2 commits into from

Conversation

jgoizueta
Copy link
Contributor

This is for consistency with #928

src/PJ_merc.c Outdated
static double hpip2atanexp(double x) { /* M_HALFPI - 2. * atan(exp(x)) */
if (fabs(x) <= DBL_EPSILON) {
/* atan(exp(x)) can be approximated by (exp(x)-1)/2 + pi/4 */
return -expm1x(x));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The extra ) at the end here causes the build failure.

@jgoizueta
Copy link
Contributor Author

Some tests are failing now because of the small numerical variations. I'll take a look at that in the next few days, tests should be adjusted with great care.

@kbevers
Copy link
Member

kbevers commented Apr 18, 2018

I wouldn't call ~200 m small deviations :-) It seems to be a matter of getter the sign correct on the northing. Probably just a missed minus somewhere.

@kbevers
Copy link
Member

kbevers commented Aug 24, 2018

Superseded by #1105

@kbevers kbevers closed this Aug 24, 2018
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.

None yet

2 participants