diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-11-11 23:56:58 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-11-12 00:05:31 +0100 |
| commit | b38d0143a65fff72635b95a61ed6c4c41802889e (patch) | |
| tree | 31e8f7a2a015b56f48d3b4c81cd42ca39a0f2c90 /test/gie | |
| parent | d5b0ea29b694a24fb1a951f6fe557f2e1bf78e62 (diff) | |
| download | PROJ-b38d0143a65fff72635b95a61ed6c4c41802889e.tar.gz PROJ-b38d0143a65fff72635b95a61ed6c4c41802889e.zip | |
Polar stereographic at pole: make it return (0,0)
Due to the improved accuracy of pj_tsfn(), it no longer returns
0 when phi=90° due to the conversion in radians.
Some GDAL tests are very sensitive to the pole transforming to (0,0)
exactly, so add a special case for that.
master only
Diffstat (limited to 'test/gie')
| -rw-r--r-- | test/gie/builtins.gie | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie index def30206..add5d925 100644 --- a/test/gie/builtins.gie +++ b/test/gie/builtins.gie @@ -5419,6 +5419,32 @@ accept -200 -100 expect -0.001790493 -0.000895247 +------------------------------------------------------------------------------- +operation +proj=stere +ellps=GRS80 +lat_0=90 +lat_ts=70 +------------------------------------------------------------------------------- +tolerance 1e-15m +accept 0 90 +expect 0 0 +roundtrip 1 + +tolerance 0.1 mm +accept 20 70 +expect 748315.3282 -2055979.4669 +roundtrip 1 + +------------------------------------------------------------------------------- +operation +proj=stere +ellps=GRS80 +lat_0=-90 +lat_ts=-70 +------------------------------------------------------------------------------- +tolerance 1e-15m +accept 0 -90 +expect 0 0 +roundtrip 1 + +tolerance 0.1 mm +accept 20 -70 +expect 748315.3282 2055979.4669 +roundtrip 1 + =============================================================================== # Oblique Stereographic Alternative # Azimuthal, Sph&Ell |
