Skip to content

Commit

Permalink
Increase MAX_ITER so Mollweide forward projection works near the pole…
Browse files Browse the repository at this point in the history
…s. (#3082)
  • Loading branch information
erykoff authored and github-actions[bot] committed Mar 5, 2022
1 parent c34b0ac commit 8a88101
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/projections/moll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions test/gie/builtins.gie
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a88101

Please sign in to comment.