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 in PJ_cea.c #94

Closed
proj4-bot opened this issue May 22, 2015 · 2 comments
Closed

Bug in PJ_cea.c #94

proj4-bot opened this issue May 22, 2015 · 2 comments

Comments

@proj4-bot
Copy link

Reported by tharan on 8 Feb 2011 21:56 UTC
Checked out proj4 development version 1962 on 2011/02/04. Running make using cc --version cc (SUSE Linux) 4.3.2 revision 141291 on uname -a Linux snow 2.6.27.54-0.2-default #1 SMP 2010-10-19 18:40:07 +0200 x86_64 x86_64 x86_64 GNU/Linux.

PJ_cea.c - In function ENTRY1(cea, apa) in the first "if" statement, removed "else t = 0.;" and replaced it with ";". Setting "t" to 0 when the if statement is false causes an incorrect value for "t = sin(t)" and the subsequent "P->k /= sqrt(1. - P->es * t * t);"

Refer to http://lists.maptools.org/pipermail/proj/2004-January/001051.html for a description of the bug that this new version of PJ_cea.c apparently fixes.

Migrated-From: https://trac.osgeo.org/proj/ticket/94

@proj4-bot
Copy link
Author

Comment by warmerdam on 8 Feb 2011 23:36 UTC
Patch applied rather blindly in trunk (565f820f (SVN rev1967)). I am too lazy and dumb to establish if this is really justified so I'll just trust you on it.

@proj4-bot proj4-bot added this to the 4.8.0 milestone May 22, 2015
@proj4-bot
Copy link
Author

Attachment added by tharan on 8 Feb 2011 21:56 UTC
https://trac.osgeo.org/proj/attachment/ticket/94/PJ_cea.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant