]> granicus.if.org Git - postgis/commitdiff
Transforming from SRID 4267 to 4326 returns incorrect result (#1301)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 20 Jan 2012 00:11:41 +0000 (00:11 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 20 Jan 2012 00:11:41 +0000 (00:11 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8880 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom_transform.c

index 840936e0fea6207ee0047c0bc9e1d66a7985b57a..b6867676606e7932406cd4e55d31959eeba2f3c8 100644 (file)
@@ -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;
                }
        }