diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2022-03-06 10:06:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-06 10:06:34 +0100 |
| commit | 8ea73006ce82c66c259f9a8b1ad3430879216b01 (patch) | |
| tree | 1e0767a5088cef9f425c44b1bac443720c1ac697 | |
| parent | c34b0ac71bc86a4e0af2b6302e4ff7eac16a509d (diff) | |
| parent | 8a88101fe59eb56a25c8d91d7272353de7140a95 (diff) | |
| download | PROJ-8ea73006ce82c66c259f9a8b1ad3430879216b01.tar.gz PROJ-8ea73006ce82c66c259f9a8b1ad3430879216b01.zip | |
Merge pull request #3090 from OSGeo/backport-3082-to-9.0
[Backport 9.0] Increase MAX_ITER so Mollweide forward projection works near the poles.
| -rw-r--r-- | src/projections/moll.cpp | 2 | ||||
| -rw-r--r-- | test/gie/builtins.gie | 12 |
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 |
