aboutsummaryrefslogtreecommitdiff
path: root/src/grids.cpp
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2020-02-24 11:59:43 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2020-02-24 11:59:43 +0000
commit2869eaf63832f434f35d2f215fc5216715870d13 (patch)
tree0012213a769ecc0cb102bafa2e0518f15adb5281 /src/grids.cpp
parent3cf6b0fc502d0d4c073d09712ad64f34d5c375f6 (diff)
downloadPROJ-2869eaf63832f434f35d2f215fc5216715870d13.tar.gz
PROJ-2869eaf63832f434f35d2f215fc5216715870d13.zip
pj_hgrid_apply(): change error code when no grid match to PJD_ERR_GRID_AREA (refs #1973)
Diffstat (limited to 'src/grids.cpp')
-rw-r--r--src/grids.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grids.cpp b/src/grids.cpp
index ee5ecf52..b9da072c 100644
--- a/src/grids.cpp
+++ b/src/grids.cpp
@@ -3053,7 +3053,7 @@ PJ_LP pj_hgrid_apply(PJ_CONTEXT *ctx, const ListOfHGrids &grids, PJ_LP lp,
HorizontalShiftGridSet *gridset = nullptr;
const auto grid = findGrid(grids, lp, gridset);
if (!grid) {
- pj_ctx_set_errno(ctx, PJD_ERR_FAILED_TO_LOAD_GRID);
+ pj_ctx_set_errno(ctx, PJD_ERR_GRID_AREA);
return out;
}
if (grid->isNullGrid()) {