aboutsummaryrefslogtreecommitdiff
path: root/test/gie/more_builtins.gie
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2018-10-11 11:19:02 +0200
committerKristian Evers <kristianevers@gmail.com>2018-10-11 11:19:02 +0200
commit0e3debf173bfe9d9dccf337a5c41fe2e1bf1ded3 (patch)
tree65c85a6fd82d8410f5fe743965f1b5d1b2d15a71 /test/gie/more_builtins.gie
parente649eb7369caa87f0e5e8076fb7bffe72485b646 (diff)
parent6c203a4395f30eae4f49230d2e2cb7652006b959 (diff)
downloadPROJ-0e3debf173bfe9d9dccf337a5c41fe2e1bf1ded3.tar.gz
PROJ-0e3debf173bfe9d9dccf337a5c41fe2e1bf1ded3.zip
Merge remote-tracking branch 'osgeo/master' into bertin1953
Diffstat (limited to 'test/gie/more_builtins.gie')
-rw-r--r--test/gie/more_builtins.gie76
1 files changed, 76 insertions, 0 deletions
diff --git a/test/gie/more_builtins.gie b/test/gie/more_builtins.gie
index c5061962..7a5becf7 100644
--- a/test/gie/more_builtins.gie
+++ b/test/gie/more_builtins.gie
@@ -592,6 +592,82 @@ expect 0 -90
-------------------------------------------------------------------------------
+
+-------------------------------------------------------------------------------
+Test for PJ_affine
+-------------------------------------------------------------------------------
+-------------------------------------------------------------------------------
+operation +proj=geogoffset
+-------------------------------------------------------------------------------
+direction forward
+tolerance 1mm
+
+accept 10 20
+expect 10 20
+roundtrip 1
+
+-------------------------------------------------------------------------------
+operation +proj=geogoffset +dlon=3600 +dlat=-3600 +dh=3
+-------------------------------------------------------------------------------
+direction forward
+tolerance 1mm
+
+accept 10 20
+expect 11 19
+roundtrip 1
+
+accept 10 20 30
+expect 11 19 33
+roundtrip 1
+
+accept 10 20 30 40
+expect 11 19 33 40
+roundtrip 1
+
+-------------------------------------------------------------------------------
+operation +proj=affine
+-------------------------------------------------------------------------------
+direction forward
+tolerance 1mm
+
+accept 10 20 30 40
+expect 10 20 30 40
+roundtrip 1
+
+-------------------------------------------------------------------------------
+operation +proj=affine +xoff=1 +yoff=2 +zoff=3 +toff=4 +s11=11 +s12=12 +s13=13 +s21=21 +s22=22 +s23=23 +s31=-31 +s32=32 +s33=33 +tscale=34
+-------------------------------------------------------------------------------
+direction forward
+tolerance 1mm
+
+accept 2 49 10 100
+expect 741.0000 1352.0000 1839.0000 3404.0000
+roundtrip 1
+
+accept 2 49 10
+expect 741.0000 1352.0000 1839.0000
+roundtrip 1
+
+accept 2 49
+expect 611.0000 1122.0000
+roundtrip 1
+
+-------------------------------------------------------------------------------
+# Non invertible
+operation +proj=affine +s11=0 +s22=0 +s23=0
+-------------------------------------------------------------------------------
+direction reverse
+accept 0 0 0 0
+expect failure
+
+-------------------------------------------------------------------------------
+# Non invertible
+operation +proj=affine +tscale=0
+-------------------------------------------------------------------------------
+direction reverse
+accept 0 0 0 0
+expect failure
+
-------------------------------------------------------------------------------
run the few gie-builtin tests, which are currently either awkward or impossible
to express in the gie command set