You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correctly handle inverse transforms with reversed axis CRS in proj 6.0 builds
This logic is too complex and fragile -- we should drop support for proj 6.0
as soon as we can, so that we can the inbuilt handling which
is enabled for proj >= 6.1 only.
constbool sourceAxisOrderSwapped = direction == ForwardTransform ? d->mSourceAxisOrderSwapped : d->mDestAxisOrderSwapped;
653
652
654
653
proj_trans_generic( projData, direction == ForwardTransform ? PJ_FWD : PJ_INV,
655
654
!sourceAxisOrderSwapped ? x : y, sizeof( double ), numPoints,
656
655
!sourceAxisOrderSwapped ? y : x, sizeof( double ), numPoints,
657
656
z, sizeof( double ), numPoints,
658
657
nullptr, sizeof( double ), 0 );
659
658
projResult = proj_errno( projData );
660
-
if ( projResult == 0 && destinationAxisOrderSwapped )
659
+
// ewww - this logic is gross. We should drop support for PROJ 6.0 as quickly as possible and dump this code (in favour of built in methods used for >=6.1 builds)
0 commit comments