From f7f8bbe5062ffd32593ba377253cdc8fd6aeb09e Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Fri, 5 Nov 2004 06:05:11 +0000 Subject: Fixed pj_geocentric_to_geodetic() to not try and process HUGE_VAL values (those that have failed some previous transform step). Related to bug:5B http://bugzilla.remotesensing.org/show_bug.cgi?id=642 git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1279 4e78687f-474d-0410-85f9-8d5e500ac6b2 --- src/pj_transform.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/pj_transform.c b/src/pj_transform.c index 85c782bb..a2411fd5 100644 --- a/src/pj_transform.c +++ b/src/pj_transform.c @@ -30,6 +30,11 @@ ****************************************************************************** * * $Log$ + * Revision 1.14 2004/11/05 06:05:11 fwarmerdam + * Fixed pj_geocentric_to_geodetic() to not try and process HUGE_VAL values + * (those that have failed some previous transform step). Related to bug:5B + * http://bugzilla.remotesensing.org/show_bug.cgi?id=642 + * * Revision 1.13 2004/10/25 15:34:36 fwarmerdam * make names of geodetic funcs from geotrans unique * @@ -341,8 +346,11 @@ int pj_geodetic_to_geocentric( double a, double es, { long io = i * point_offset; + if( x[io] == HUGE_VAL ) + continue; + if( pj_Convert_Geodetic_To_Geocentric( y[io], x[io], z[io], - x+io, y+io, z+io ) != 0 ) + x+io, y+io, z+io ) != 0 ) { pj_errno = PJD_ERR_GEOCENTRIC; return PJD_ERR_GEOCENTRIC; -- cgit v1.2.3