diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-12-15 17:53:29 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-12-15 17:53:29 +0100 |
| commit | a27c0255e7b8e6aab1b91e49fd7870d1ee4e1a80 (patch) | |
| tree | d1ef799526f06828328b58ce8ee92c028f723b6a /src/projections/igh.cpp | |
| parent | b020666081223adb8a623e6b3ad2c6a3b2ce077a (diff) | |
| download | PROJ-a27c0255e7b8e6aab1b91e49fd7870d1ee4e1a80.tar.gz PROJ-a27c0255e7b8e6aab1b91e49fd7870d1ee4e1a80.zip | |
Remap ENOMEM from PROJ_ERR_INVALID_OP to PROJ_ERR_OTHER
Diffstat (limited to 'src/projections/igh.cpp')
| -rw-r--r-- | src/projections/igh.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/projections/igh.cpp b/src/projections/igh.cpp index 9e51addf..a6bac0c4 100644 --- a/src/projections/igh.cpp +++ b/src/projections/igh.cpp @@ -210,7 +210,7 @@ PJ *PROJECTION(igh) { PJ_LP lp = { 0, phi_boundary }; struct pj_opaque *Q = static_cast<struct pj_opaque*>(calloc (1, sizeof (struct pj_opaque))); if (nullptr==Q) - return pj_default_destructor (P, PROJ_ERR_INVALID_OP /*ENOMEM*/); + return pj_default_destructor (P, PROJ_ERR_OTHER /*ENOMEM*/); P->opaque = Q; @@ -222,7 +222,7 @@ PJ *PROJECTION(igh) { !setup_zone(P, Q, 7, pj_sinu, d20, 0, d20) || !setup_zone(P, Q, 8, pj_sinu, d140, 0, d140)) { - return destructor(P, PROJ_ERR_INVALID_OP /*ENOMEM*/); + return destructor(P, PROJ_ERR_OTHER /*ENOMEM*/); } /* mollweide zones */ @@ -243,7 +243,7 @@ PJ *PROJECTION(igh) { !setup_zone(P, Q,11, pj_moll, d20, -Q->dy0, d20) || !setup_zone(P, Q,12, pj_moll, d140, -Q->dy0, d140)) { - return destructor(P, PROJ_ERR_INVALID_OP /*ENOMEM*/); + return destructor(P, PROJ_ERR_OTHER /*ENOMEM*/); } P->inv = igh_s_inverse; |
