aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-01-12 14:36:46 +0100
committerEven Rouault <even.rouault@spatialys.com>2021-01-12 14:36:46 +0100
commit99b06ef5e77af5081ade5d8d8a66af9e461576b1 (patch)
tree1eafad3c1b227e9fc119d47bf02706876f27f38c /src
parentf44df597b9477827b14ef36bed6f059e9fdfd011 (diff)
downloadPROJ-99b06ef5e77af5081ade5d8d8a66af9e461576b1.tar.gz
PROJ-99b06ef5e77af5081ade5d8d8a66af9e461576b1.zip
ellps_size(): do not log error if ellipsoid absent and not needed
Diffstat (limited to 'src')
-rw-r--r--src/ell_set.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ell_set.cpp b/src/ell_set.cpp
index 438448d2..f6599b9e 100644
--- a/src/ell_set.cpp
+++ b/src/ell_set.cpp
@@ -215,7 +215,8 @@ static int ellps_size (PJ *P) {
{
if( a_was_set )
return 0;
- proj_log_error(P, _("Major axis not given"));
+ if( P->need_ellps )
+ proj_log_error(P, _("Major axis not given"));
return proj_errno_set (P, PROJ_ERR_INVALID_OP_MISSING_ARG);
}