kopia lustrzana https://github.com/OpenDroneMap/ODM
Merge pull request #941 from pierotofy/gdalprojfix
Fixed proj string incompatibility with GDAL
Former-commit-id: 7f83ffe27a
pull/1161/head
commit
66bcc8c517
|
@ -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():
|
||||
|
|
Ładowanie…
Reference in New Issue