aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerykoff <erykoff@stanford.edu>2022-03-05 07:21:12 -0800
committerGitHub <noreply@github.com>2022-03-05 16:21:12 +0100
commitf6780951cace8c589c2131baf98cf68b3bebb9c0 (patch)
tree66e14d724d683549ddd9628d72cdec6e8acc5c36
parent2f38db37b8b51b764c1d8ed7caa2e9b186aee945 (diff)
downloadPROJ-f6780951cace8c589c2131baf98cf68b3bebb9c0.tar.gz
PROJ-f6780951cace8c589c2131baf98cf68b3bebb9c0.zip
Increase MAX_ITER so Mollweide forward projection works near the poles. (#3082)
-rw-r--r--src/projections/moll.cpp2
-rw-r--r--test/gie/builtins.gie12
2 files changed, 13 insertions, 1 deletions
diff --git a/src/projections/moll.cpp b/src/projections/moll.cpp
index 87b38336..f8b52a5f 100644
--- a/src/projections/moll.cpp
+++ b/src/projections/moll.cpp
@@ -10,7 +10,7 @@ PROJ_HEAD(moll, "Mollweide") "\n\tPCyl, Sph";
PROJ_HEAD(wag4, "Wagner IV") "\n\tPCyl, Sph";
PROJ_HEAD(wag5, "Wagner V") "\n\tPCyl, Sph";
-#define MAX_ITER 10
+#define MAX_ITER 30
#define LOOP_TOL 1e-7
namespace { // anonymous namespace
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie
index 1a290294..38dfc6a2 100644
--- a/test/gie/builtins.gie
+++ b/test/gie/builtins.gie
@@ -3599,6 +3599,18 @@ roundtrip 1
accept -2 -1
expect -201113.698641813 -124066.283433860
roundtrip 1
+accept 0.0 89.99
+expect 0.00 9050917.562466157600
+roundtrip 1
+accept 0.0 89.999
+expect 0.00 9050964.513822982088
+roundtrip 1
+accept 0.0 -89.99
+expect 0.0 -9050917.562466157600
+roundtrip 1
+accept 0.0 -89.999
+expect 0.00 -9050964.513822982088
+roundtrip 1
direction inverse
accept 200 100