diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-04-11 23:58:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-11 23:58:42 +0200 |
| commit | 75f8841fcab60ee9c0c15e135ec3ebd10fc46d18 (patch) | |
| tree | e8fb5199327097bc6280099a4983d78a82374a22 /test | |
| parent | cb376cb8172896553d3d5b5d0995873264eaf64e (diff) | |
| parent | 38443f7545dad1d849a889921976fa94e9b76264 (diff) | |
| download | PROJ-75f8841fcab60ee9c0c15e135ec3ebd10fc46d18.tar.gz PROJ-75f8841fcab60ee9c0c15e135ec3ebd10fc46d18.zip | |
Merge pull request #929 from kbevers/nsper-updates
Nsper updates
Diffstat (limited to 'test')
| -rw-r--r-- | test/gie/builtins.gie | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie index 4f6d6a44..fb8a53c3 100644 --- a/test/gie/builtins.gie +++ b/test/gie/builtins.gie @@ -3347,6 +3347,60 @@ expect -0.001790493 0.000895247 accept -200 -100 expect -0.001790493 -0.000895247 +------------------------------------------------------------------------------- +Test north polar aspect +------------------------------------------------------------------------------- +operation +proj=nsper +R=1 +h=3 +lat_0=90 +------------------------------------------------------------------------------- +tolerance 0.1 mm +accept 0 90 +expect 0 0 +accept 45 45 +expect 0.4555 -0.4555 +roundtrip 100 +accept 0 0 +expect failure errno tolerance_condition + +direction inverse +accept 0 0 +expect 0 90 +accept 0 2 # projected coordinate is outside the sphere +expect failure errno tolerance_condition + +------------------------------------------------------------------------------- +Test south polar aspect +------------------------------------------------------------------------------- +operation +proj=nsper +R=1 +h=3 +lat_0=-90 +------------------------------------------------------------------------------- +tolerance 0.1 mm +accept 0 -90 +expect 0 0 +accept -45 -45 +expect -0.4555 0.4555 +roundtrip 100 +accept 0 0 +expect failure errno tolerance_condition + +------------------------------------------------------------------------------- +operation +proj=nsper +R=1 +h=3 +lat_0=45 +------------------------------------------------------------------------------- +tolerance 0.1 mm +accept 0 45 +expect 0 0 +accept 0 90 +expect 0 0.6442 +accept 0 0 +expect 0 -0.6442 +accept 45 45 +expect 0.4767 0.1396 +roundtrip 100 + + +------------------------------------------------------------------------------- +operation +proj=nsper +R=1 +h=0 +------------------------------------------------------------------------------- +expect failure errno h_less_than_zero + =============================================================================== New Zealand Map Grid |
