aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2020-01-29 17:13:00 +0100
committerGitHub <noreply@github.com>2020-01-29 17:13:00 +0100
commite35cf5d63cdd11ab5bc8590d4172b474c4c64938 (patch)
treef15a498410f5d492a8fe6e1c8a10eff202253b08 /test
parent9f6ab28f1d26561a547802a18b3a2f7877834ca8 (diff)
parent4b7ec1a1822b808491fd4b675404a8259e9dc28f (diff)
downloadPROJ-e35cf5d63cdd11ab5bc8590d4172b474c4c64938.tar.gz
PROJ-e35cf5d63cdd11ab5bc8590d4172b474c4c64938.zip
Merge pull request #1896 from rouault/add_set_operation
Add +proj=set operation to set component(s) of a coordinate to a fixed value
Diffstat (limited to 'test')
-rw-r--r--test/gie/4D-API_cs2cs-style.gie18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/gie/4D-API_cs2cs-style.gie b/test/gie/4D-API_cs2cs-style.gie
index 3e4b9d2c..b8512162 100644
--- a/test/gie/4D-API_cs2cs-style.gie
+++ b/test/gie/4D-API_cs2cs-style.gie
@@ -536,4 +536,22 @@ in the creation of a PJ object.
operation this is a bogus CRS meant to trigger a generic error in proj_create()
expect failure errno generic error
+-------------------------------------------------------------------------------
+Test proj=set
+-------------------------------------------------------------------------------
+
+operation +proj=set
+accept 1 2 3 4
+expect 1 2 3 4
+roundtrip 1
+
+operation +proj=set +v_1=10 +v_2=20 +v_3=30 +v_4=40
+accept 1 2 3 4
+expect 10 20 30 40
+
+operation +proj=set +v_1=10 +v_2=20 +v_3=30 +v_4=40
+direction inverse
+accept 1 2 3 4
+expect 10 20 30 40
+
</gie>