From e2d329414b0e6e3f42aa30cfd16ce79004b2e7c8 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Tue, 29 Jan 2019 10:10:14 -0500 Subject: [PATCH] Fixed proj string incompatibility with GDAL Former-commit-id: 30911577ba6be610df94ea7ef56f0eef2a310bac --- opendm/types.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/opendm/types.py b/opendm/types.py index e667372b..dc924e2e 100644 --- a/opendm/types.py +++ b/opendm/types.py @@ -163,7 +163,16 @@ class ODM_Reconstruction(object): utm_pole = (ref[2][len(ref[2]) - 1]).upper() utm_zone = int(ref[2][:len(ref[2]) - 1]) - return Proj(proj="utm", zone=utm_zone, south=utm_pole == 'S', datum=datum, no_defs=True) + proj_args = { + 'proj': "utm", + 'zone': utm_zone, + 'datum': datum, + 'no_defs': True + } + if utm_pole == 'S': + proj_args['south'] = True + + return Proj(**proj_args) elif '+proj' in line: return Proj(line.strip('\'')) elif 'epsg' in line.lower():