From 0516d857b056df560f256dbe8ca9e7b1282b4d17 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 22 Nov 2019 00:01:10 +0100 Subject: create_c_api_projections.py: fix for conversions without linear parameters [ci skip] --- scripts/create_c_api_projections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/create_c_api_projections.py') diff --git a/scripts/create_c_api_projections.py b/scripts/create_c_api_projections.py index 1d6c638d..1682b160 100755 --- a/scripts/create_c_api_projections.py +++ b/scripts/create_c_api_projections.py @@ -171,7 +171,7 @@ for sectiondef in compounddef.iter('sectiondef'): test_cppfile.write(", 0") if has_angle: test_cppfile.write(", \"Degree\", 0.0174532925199433") - if has_angle: + if has_linear: test_cppfile.write(", \"Metre\", 1.0") test_cppfile.write(");\n") test_cppfile.write(" ObjectKeeper keeper_projCRS(projCRS);\n") -- cgit v1.2.3