aboutsummaryrefslogtreecommitdiff
path: root/src/projections
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-07-12 12:19:43 +0200
committerGitHub <noreply@github.com>2021-07-12 12:19:43 +0200
commit7b23d2b8c1dfd8e81becb394700d9435f284fa1e (patch)
treea0e1fc9c6f79fd55823901d5a0d690142c2f76b4 /src/projections
parent8ee496716fa385a1578b4d3b6ad47d47a3219033 (diff)
parent0d66189bf304cfc31044b0e03d1af792c8749f65 (diff)
downloadPROJ-7b23d2b8c1dfd8e81becb394700d9435f284fa1e.tar.gz
PROJ-7b23d2b8c1dfd8e81becb394700d9435f284fa1e.zip
Merge pull request #2776 from rouault/fix_coverity_350886
ortho: remove useless and invalid log trace (CID 350886, 350887)
Diffstat (limited to 'src/projections')
-rw-r--r--src/projections/ortho.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/projections/ortho.cpp b/src/projections/ortho.cpp
index 9e0d9bba..908f283d 100644
--- a/src/projections/ortho.cpp
+++ b/src/projections/ortho.cpp
@@ -89,7 +89,6 @@ static PJ_LP ortho_s_inverse (PJ_XY xy, PJ *P) { /* Spheroidal, invers
if (sinc > 1.) {
if ((sinc - 1.) > EPS10) {
proj_errno_set(P, PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN);
- proj_log_trace(P, "Point (%.3f, %.3f) is outside the projection boundary");
return lp;
}
sinc = 1.;
@@ -177,7 +176,6 @@ static PJ_LP ortho_e_inverse (PJ_XY xy, PJ *P) { /* Ellipsoidal, inver
if (rh2 >= 1. - 1e-15) {
if ((rh2 - 1.) > EPS10) {
proj_errno_set(P, PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN);
- proj_log_trace(P, "Point (%.3f, %.3f) is outside the projection boundary");
lp.lam = HUGE_VAL; lp.phi = HUGE_VAL;
return lp;
}
@@ -201,7 +199,6 @@ static PJ_LP ortho_e_inverse (PJ_XY xy, PJ *P) { /* Ellipsoidal, inver
// Equation of the ellipse
if( SQ(xy.x) + SQ(xy.y * (P->a / P->b)) > 1 + 1e-11 ) {
proj_errno_set(P, PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN);
- proj_log_trace(P, "Point (%.3f, %.3f) is outside the projection boundary");
lp.lam = HUGE_VAL; lp.phi = HUGE_VAL;
return lp;
}
@@ -229,7 +226,6 @@ static PJ_LP ortho_e_inverse (PJ_XY xy, PJ *P) { /* Ellipsoidal, inver
xy_recentered.y = (xy.y - Q->y_shift) / Q->y_scale;
if( SQ(xy.x) + SQ(xy_recentered.y) > 1 + 1e-11 ) {
proj_errno_set(P, PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN);
- proj_log_trace(P, "Point (%.3f, %.3f) is outside the projection boundary");
lp.lam = HUGE_VAL; lp.phi = HUGE_VAL;
return lp;
}