aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_operation.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-07-09 15:45:28 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-07-09 15:45:28 +0200
commit062c7f160f4b1d41f82730fa6eb6653e78ade74a (patch)
tree333112fdc326bd2318e87e77b697e66020e6192f /test/unit/test_operation.cpp
parent668fb0aacd46db2c4aaadb557b14443eee028405 (diff)
downloadPROJ-062c7f160f4b1d41f82730fa6eb6653e78ade74a.tar.gz
PROJ-062c7f160f4b1d41f82730fa6eb6653e78ade74a.zip
Transverse Mercator South Orientated: restrict export to PROJ string to cases where false_easting and false_northing are 0
Diffstat (limited to 'test/unit/test_operation.cpp')
-rw-r--r--test/unit/test_operation.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp
index 6a39879a..0238638d 100644
--- a/test/unit/test_operation.cpp
+++ b/test/unit/test_operation.cpp
@@ -1342,8 +1342,9 @@ TEST(operation, tmerc_south_oriented_export) {
PropertyMap(), Angle(1), Angle(2), Scale(3), Length(4), Length(5));
EXPECT_TRUE(conv->validateParameters().empty());
- EXPECT_EQ(conv->exportToPROJString(PROJStringFormatter::create().get()),
- "+proj=tmerc +axis=wsu +lat_0=1 +lon_0=2 +k=3 +x_0=4 +y_0=5");
+ // False easting/northing != 0 not supported
+ EXPECT_THROW(conv->exportToPROJString(PROJStringFormatter::create().get()),
+ FormattingException);
EXPECT_EQ(conv->exportToWKT(WKTFormatter::create().get()),
"CONVERSION[\"Transverse Mercator (South Orientated)\",\n"