aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_operation.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-02-19 14:00:43 +0100
committerKristian Evers <kristianevers@gmail.com>2020-02-19 18:13:02 +0100
commitd7a16efe717cb45beba4375dedb9e78c94bc3438 (patch)
tree48d90821f481d3ba3941d24be8d7d8c4f1b8914d /test/unit/test_operation.cpp
parent71e6438ba2173ee7c05ade1c395bd5949023cadc (diff)
downloadPROJ-d7a16efe717cb45beba4375dedb9e78c94bc3438.tar.gz
PROJ-d7a16efe717cb45beba4375dedb9e78c94bc3438.zip
validateParameters(): fix false-positive warning on Equidistant Cylindrical
We required the 'Latitude of natural origin' parameter to be present, but it is only a GDAL/PROJ specific thing, not a EPSG one.
Diffstat (limited to 'test/unit/test_operation.cpp')
-rw-r--r--test/unit/test_operation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp
index d4d1768e..30d52806 100644
--- a/test/unit/test_operation.cpp
+++ b/test/unit/test_operation.cpp
@@ -2090,6 +2090,8 @@ TEST(operation, createEquidistantCylindrical) {
"PARAMETER[\"central_meridian\",2],\n"
"PARAMETER[\"false_easting\",3],\n"
"PARAMETER[\"false_northing\",4]");
+
+ EXPECT_TRUE(conv->validateParameters().empty());
}
// ---------------------------------------------------------------------------
@@ -2127,6 +2129,8 @@ TEST(operation, createEquidistantCylindricalSpherical) {
"PARAMETER[\"central_meridian\",2],\n"
"PARAMETER[\"false_easting\",3],\n"
"PARAMETER[\"false_northing\",4]");
+
+ EXPECT_TRUE(conv->validateParameters().empty());
}
// ---------------------------------------------------------------------------