Ticket #94 (closed defect: fixed)
Bug in PJ_cea.c
| Reported by: | tharan | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | major | Milestone: | 4.8.0 |
| Component: | Core | Version: | Development (trunk) |
| Keywords: | CEA | Cc: |
Description
Checked out proj4 development version 1962 on 2011/02/04. Running make using cc --version cc (SUSE Linux) 4.3.2 [gcc-4_3-branch 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.

