aboutsummaryrefslogtreecommitdiff
path: root/src/transformations/xyzgridshift.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/transformations/xyzgridshift.cpp')
-rw-r--r--src/transformations/xyzgridshift.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transformations/xyzgridshift.cpp b/src/transformations/xyzgridshift.cpp
index e11a4863..c75944ba 100644
--- a/src/transformations/xyzgridshift.cpp
+++ b/src/transformations/xyzgridshift.cpp
@@ -257,7 +257,7 @@ PJ *TRANSFORMATION(xyzgridshift,0) {
// Pass a dummy ellipsoid definition that will be overridden just afterwards
Q->cart = proj_create(P->ctx, "+proj=cart +a=1");
if (Q->cart == nullptr)
- return destructor(P, PROJ_ERR_INVALID_OP /*ENOMEM*/);
+ return destructor(P, PROJ_ERR_OTHER /*ENOMEM*/);
/* inherit ellipsoid definition from P to Q->cart */
pj_inherit_ellipsoid_def (P, Q->cart);