Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 9.5] Fail consistently on network error and grid transformations #4307

Merged
merged 2 commits into from
Nov 2, 2024

Conversation

rouault
Copy link
Member

@rouault rouault commented Nov 1, 2024

Backport #4302
Authored by: @rouault

Currently when we need to use a remote grid that can't be opened, we
return HUGE_VAL coordinates values and a proj_errno = PROJ_ERR_OTHER_NETWORK_ERROR,
(I guess) as expected... But if we do following proj_trans() calls on the same
transformation object, the grid transformation is ignored and we
fallback to other methods (Helmert, ballpark, etc.).
Fix that by consistently returning the same error values as the initial
failed call.

Fixes pyproj4/pyproj#705
@rouault rouault added this to the 9.5.1 milestone Nov 1, 2024
@rouault rouault merged commit 162f12b into 9.5 Nov 2, 2024
40 of 44 checks passed
@rouault rouault deleted the backport-4302-to-9.5 branch November 2, 2024 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant