Commit d126b284 authored by Daniel Scheffler's avatar Daniel Scheffler

Fixed isLocal().

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 9d0849d7
Pipeline #11884 failed with stage
in 35 seconds
......@@ -128,7 +128,11 @@ def isLocal(prj):
srs.ImportFromEPSG(int(prj.split(':')[1]))
elif prj.startswith('+proj='):
srs.ImportFromProj4(prj)
elif 'GEOGCS' in prj or 'PROJCS' in prj or 'LOCAL_CS' in prj:
elif 'GEOGCS' in prj or \
'GEOGCRS' in prj or \
'PROJCS' in prj or \
'PROJCS' in prj or \
'LOCAL_CS' in prj:
srs.ImportFromWkt(prj)
else:
raise RuntimeError('Unknown input projection: \n%s' % prj)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment