From: Paul Ramsey Date: Fri, 20 Jan 2012 00:11:41 +0000 (+0000) Subject: Transforming from SRID 4267 to 4326 returns incorrect result (#1301) X-Git-Tag: 2.0.0alpha1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=331f360a226ad5d66bcf2c11d51858f73aec328c;p=postgis 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 --- 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; } }