aboutsummaryrefslogtreecommitdiff
path: root/src/geocent.c
diff options
context:
space:
mode:
authorFrank Warmerdam <warmerdam@pobox.com>2002-01-08 15:04:08 +0000
committerFrank Warmerdam <warmerdam@pobox.com>2002-01-08 15:04:08 +0000
commit7ccf9f41220aa166deae7509f93d1ad9ca645da2 (patch)
tree469e724c906d49547f7ba157d9e3e1bf3cb8f4b1 /src/geocent.c
parente2440a651ff9ad667b0418cd1303cbfa2f064cc1 (diff)
downloadPROJ-7ccf9f41220aa166deae7509f93d1ad9ca645da2.tar.gz
PROJ-7ccf9f41220aa166deae7509f93d1ad9ca645da2.zip
The latitude clamping fix from September in Convert_Geodetic_To_Geocentric
was botched. Fixed up now. git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@985 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src/geocent.c')
-rw-r--r--src/geocent.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/geocent.c b/src/geocent.c
index 09ebdaba..fbe6d75a 100644
--- a/src/geocent.c
+++ b/src/geocent.c
@@ -64,6 +64,11 @@
* ---- -----------
* 25-02-97 Original Code
*
+ * $Log$
+ * Revision 1.3 2002/01/08 15:04:08 warmerda
+ * The latitude clamping fix from September in Convert_Geodetic_To_Geocentric
+ * was botched. Fixed up now.
+ *
*/
@@ -195,7 +200,7 @@ long Convert_Geodetic_To_Geocentric (double Latitude,
*/
if( Latitude < -PI_OVER_2 && Latitude > -1.001 * PI_OVER_2 )
Latitude = -PI_OVER_2;
- else if( Latitude > -PI_OVER_2 && Latitude < 1.001 * PI_OVER_2 )
+ else if( Latitude > PI_OVER_2 && Latitude < 1.001 * PI_OVER_2 )
Latitude = PI_OVER_2;
else if ((Latitude < -PI_OVER_2) || (Latitude > PI_OVER_2))
{ /* Latitude out of range */