From fe9e276d93f72a3cc4fbfc64fa05cfd9885377a6 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 24 Feb 2020 11:11:42 +0100 Subject: pj_hgrid_apply(): change error code when no grid match to PJD_ERR_GRID_AREA (refs #1973) --- src/grids.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- cgit v1.2.3