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
Always fallback to default coordinate operations when bounding box transfrom fails
Bounding box transforms are inherently approximate, so we can safely
just fallback to the proj default operation if the user-specified
operation fails when transforming a bounding box.
This fixes cases where the user-specified operation involves a
grid shift and the bounds to transform falls outside of the grid.
In this case proj_trans_bounds fails. By falling back to a proj
default operation and re-trying then we get a valid approximate
transformation of the bounding box.
Fixes map rendering issues when users are using a grid shift operation
to transform layers to map CRS
Fixes#60737Fixes#60753
&& ( d->mAvailableOpCount > 1 || d->mAvailableOpCount == -1 ) // only use fallbacks if more than one operation is possible -- otherwise we've already tried it and it failed
689
+
)
690
+
{
691
+
// fail #1 -- try with getting proj to auto-pick an appropriate coordinate operation for the points
692
+
if ( PJ *transform = d->threadLocalFallbackProjData() )
0 commit comments