aboutsummaryrefslogtreecommitdiff
path: root/test/gie/4D-API_cs2cs-style.gie
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2018-03-26 23:36:15 +0200
committerKristian Evers <kristianevers@gmail.com>2018-03-27 11:37:13 +0200
commit234eba764d7fea67b597d8f9ed5225e651f4a945 (patch)
tree21895b6b3c38a93c2cb2dbe17f19115d22129587 /test/gie/4D-API_cs2cs-style.gie
parent0962d1ecf116e2eeeccfa6ce5c9613407691f38c (diff)
downloadPROJ-234eba764d7fea67b597d8f9ed5225e651f4a945.tar.gz
PROJ-234eba764d7fea67b597d8f9ed5225e651f4a945.zip
Validate that units match between pipeline steps
As suggested in [0], steps in a pipeline are now checked for compliance. If the right side units in step n differ from the left side units in step n+1 the pipeline can't be constructed and an error is raised. [0] https://lists.osgeo.org/pipermail/grass-dev/2018-March/088123.html
Diffstat (limited to 'test/gie/4D-API_cs2cs-style.gie')
-rw-r--r--test/gie/4D-API_cs2cs-style.gie22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/gie/4D-API_cs2cs-style.gie b/test/gie/4D-API_cs2cs-style.gie
index 3d3bf207..bbd9ee39 100644
--- a/test/gie/4D-API_cs2cs-style.gie
+++ b/test/gie/4D-API_cs2cs-style.gie
@@ -243,4 +243,26 @@ accept 440720 3751320 0
expect 440719.958709357 3751294.2109841 -4.44340920541435
-------------------------------------------------------------------------------
+-------------------------------------------------------------------------------
+Test that pipelines with unit mismatch between steps can't be constructed.
+-------------------------------------------------------------------------------
+operation +proj=pipeline
+ +step +proj=merc
+ +step +proj=merc
+expect failure pjd_err_malformed_pipeline
+
+operation +proj=pipeline
+ +step +proj=latlong
+ +step +proj=merc
+ +step +proj=helmert +x=200 +y=100
+expect failure pjd_err_malformed_pipeline
+
+operation +proj=pipeline
+ +step +proj=merc
+ +step +proj=unitconvert +xy_in=m +xy_out=km
+accept 12 56
+expect 1335.8339 7522.963
+-------------------------------------------------------------------------------
+
+
</gie>