diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-02-24 11:11:42 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-02-24 12:59:13 +0100 |
| commit | fe9e276d93f72a3cc4fbfc64fa05cfd9885377a6 (patch) | |
| tree | 0012213a769ecc0cb102bafa2e0518f15adb5281 /src/grids.cpp | |
| parent | 004116f53a9f2e2afde9ffcfdadcbe1d1f4df2ac (diff) | |
| download | PROJ-fe9e276d93f72a3cc4fbfc64fa05cfd9885377a6.tar.gz PROJ-fe9e276d93f72a3cc4fbfc64fa05cfd9885377a6.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.cpp | 2 |
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()) { |
