From 331f360a226ad5d66bcf2c11d51858f73aec328c Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Fri, 20 Jan 2012 00:11:41 +0000 Subject: [PATCH] Transforming from SRID 4267 to 4326 returns incorrect result (#1301) git-svn-id: http://svn.osgeo.org/postgis/trunk@8880 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwgeom_transform.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/liblwgeom/lwgeom_transform.c b/liblwgeom/lwgeom_transform.c index 840936e0f..b68676766 100644 --- a/liblwgeom/lwgeom_transform.c +++ b/liblwgeom/lwgeom_transform.c @@ -134,15 +134,15 @@ point4d_transform(POINT4D *pt, projPJ srcpj, projPJ dstpj) { if (*pj_errno_ref == -38) { - LWDEBUGF(0, "transform: couldn't project point (%g %g %g): %s (%d)", - orig_pt.x, orig_pt.y, orig_pt.z, pj_strerrno(*pj_errno_ref), *pj_errno_ref) ; - LWDEBUG(0, "HINT: PostGIS was unable to transform the point because either no grid shift files were found, or the point does not lie within the range for which the grid shift is defined. Refer to the ST_Transform() section of the PostGIS manual for details on how to configure PostGIS to alter this behaviour.") ; + lwnotice("PostGIS was unable to transform the point because either no grid shift files were found, or the point does not lie within the range for which the grid shift is defined. Refer to the ST_Transform() section of the PostGIS manual for details on how to configure PostGIS to alter this behaviour."); + lwerror("transform: couldn't project point (%g %g %g): %s (%d)", + orig_pt.x, orig_pt.y, orig_pt.z, pj_strerrno(*pj_errno_ref), *pj_errno_ref); return 0; } else { - LWDEBUGF(0, "transform: couldn't project point (%g %g %g): %s (%d)", - orig_pt.x, orig_pt.y, orig_pt.z, pj_strerrno(*pj_errno_ref), *pj_errno_ref); + lwerror("transform: couldn't project point (%g %g %g): %s (%d)", + orig_pt.x, orig_pt.y, orig_pt.z, pj_strerrno(*pj_errno_ref), *pj_errno_ref); return 0; } } -- 2.40.0