Skip to content

Commit

Permalink
proj_trans(): set PROJ_ERR_COORD_TRANSFM_NO_OPERATION error when fail…
Browse files Browse the repository at this point in the history
…ing in ONLY_BEST=YES mode
  • Loading branch information
rouault authored and github-actions[bot] committed May 16, 2023
1 parent f645ffa commit 7e5120b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/4D_api.cpp
Expand Up @@ -443,8 +443,10 @@ PJ_COORD proj_trans(PJ *P, PJ_DIRECTION direction, PJ_COORD coord) {
} else if (P->errorIfBestTransformationNotAvailable ||
P->warnIfBestTransformationNotAvailable) {
warnAboutMissingGrid(alt.pj);
if (P->errorIfBestTransformationNotAvailable)
if (P->errorIfBestTransformationNotAvailable) {
proj_errno_set(P, PROJ_ERR_COORD_TRANSFM_NO_OPERATION);
return res;
}
P->warnIfBestTransformationNotAvailable = false;
skipNonInstantiable = true;
}
Expand Down

0 comments on commit 7e5120b

Please sign in to comment.