Skip to content

Commit

Permalink
Merge pull request #3090 from OSGeo/backport-3082-to-9.0
Browse files Browse the repository at this point in the history
[Backport 9.0] Increase MAX_ITER so Mollweide forward projection works near the poles.
  • Loading branch information
kbevers authored Mar 6, 2022
2 parents c34b0ac + 8a88101 commit 8ea7300
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 8ea7300

Please sign in to comment.