Ticket #94 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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.

Attachments

PJ_cea.c Download (1.3 KB) - added by tharan 2 years ago.

Change History

Changed 2 years ago by tharan

Changed 2 years ago by warmerdam

  • keywords CEA added
  • resolution set to fixed
  • status changed from new to closed
  • component changed from default to Core
  • milestone set to 4.8.0

Patch applied rather blindly in trunk (r1967). I am too lazy and dumb to establish if this is really justified so I'll just trust you on it.

Note: See TracTickets for help on using tickets.