aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-11-22 00:01:10 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-11-22 00:01:10 +0100
commit0516d857b056df560f256dbe8ca9e7b1282b4d17 (patch)
tree0e8d34136110d8c22d7c8e48424269d6da34d213 /scripts
parent8394cacb65cf0b28d75d319f1979f6c2a3cfd7d1 (diff)
downloadPROJ-0516d857b056df560f256dbe8ca9e7b1282b4d17.tar.gz
PROJ-0516d857b056df560f256dbe8ca9e7b1282b4d17.zip
create_c_api_projections.py: fix for conversions without linear parameters [ci skip]
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create_c_api_projections.py2
1 files changed, 1 insertions, 1 deletions
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")