From 4b7ec1a1822b808491fd4b675404a8259e9dc28f Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 28 Jan 2020 21:33:53 +0100 Subject: Add +proj=set operation to set component(s) of a coordinate to a fixed value Fixes #1846 --- test/gie/4D-API_cs2cs-style.gie | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test') 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 + -- cgit v1.2.3