From d7a16efe717cb45beba4375dedb9e78c94bc3438 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 19 Feb 2020 14:00:43 +0100 Subject: 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. --- test/unit/test_operation.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/unit/test_operation.cpp') 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()); } // --------------------------------------------------------------------------- -- cgit v1.2.3