aboutsummaryrefslogtreecommitdiff
path: root/src/inv.cpp
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2020-12-21 17:28:48 +0100
committerKristian Evers <kristianevers@gmail.com>2020-12-21 17:28:48 +0100
commit5aad0d25f8423b8b88a716d0333c7bd19f6184c7 (patch)
treef0a248ef08fb51ef0ec29178ef41fd4168d4c85d /src/inv.cpp
parentc3efbd23a5bf26f1dfd5bc55ae3488d5665ace98 (diff)
parent1cafe3e602d3f697c8d2daaa9b634f3ad23b0d53 (diff)
downloadPROJ-5aad0d25f8423b8b88a716d0333c7bd19f6184c7.tar.gz
PROJ-5aad0d25f8423b8b88a716d0333c7bd19f6184c7.zip
Merge remote-tracking branch 'osgeo/master'
Diffstat (limited to 'src/inv.cpp')
-rw-r--r--src/inv.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/inv.cpp b/src/inv.cpp
index 626c9ee5..b4a42189 100644
--- a/src/inv.cpp
+++ b/src/inv.cpp
@@ -38,7 +38,7 @@
static PJ_COORD inv_prepare (PJ *P, PJ_COORD coo) {
if (coo.v[0] == HUGE_VAL || coo.v[1] == HUGE_VAL || coo.v[2] == HUGE_VAL) {
- proj_errno_set (P, PJD_ERR_INVALID_X_OR_Y);
+ proj_errno_set (P, PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN);
return proj_coord_error ();
}
@@ -97,7 +97,7 @@ static PJ_COORD inv_prepare (PJ *P, PJ_COORD coo) {
static PJ_COORD inv_finalize (PJ *P, PJ_COORD coo) {
if (coo.xyz.x == HUGE_VAL) {
- proj_errno_set (P, PJD_ERR_INVALID_X_OR_Y);
+ proj_errno_set (P, PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN);
return proj_coord_error ();
}
@@ -163,7 +163,7 @@ PJ_LP pj_inv(PJ_XY xy, PJ *P) {
else if (P->inv4d)
coo = P->inv4d (coo, P);
else {
- proj_errno_set (P, EINVAL);
+ proj_errno_set (P, PROJ_ERR_OTHER_NO_INVERSE_OP);
return proj_coord_error ().lp;
}
if (HUGE_VAL==coo.v[0])
@@ -197,7 +197,7 @@ PJ_LPZ pj_inv3d (PJ_XYZ xyz, PJ *P) {
else if (P->inv)
coo.lp = P->inv (coo.xy, P);
else {
- proj_errno_set (P, EINVAL);
+ proj_errno_set (P, PROJ_ERR_OTHER_NO_INVERSE_OP);
return proj_coord_error ().lpz;
}
if (HUGE_VAL==coo.v[0])
@@ -227,7 +227,7 @@ PJ_COORD pj_inv4d (PJ_COORD coo, PJ *P) {
else if (P->inv)
coo.lp = P->inv (coo.xy, P);
else {
- proj_errno_set (P, EINVAL);
+ proj_errno_set (P, PROJ_ERR_OTHER_NO_INVERSE_OP);
return proj_coord_error ();
}
if (HUGE_VAL==coo.v[0])