Loading plio/io/extract_metadata.py +11 −3 Original line number Diff line number Diff line try: from osgeo import osr hasosr = True except: hasosr = False import_options = ['ImportFromWkt', 'ImportFromProj4', 'ImportFromEPSG', 'ImportFromUSGS', Loading @@ -20,7 +25,10 @@ def extract_projstring(proj_string): OSR spatial reference object """ if hasosr: srs = osr.SpatialReference() else: return for import_option in import_options: try: func = getattr(srs, import_option) Loading Loading
plio/io/extract_metadata.py +11 −3 Original line number Diff line number Diff line try: from osgeo import osr hasosr = True except: hasosr = False import_options = ['ImportFromWkt', 'ImportFromProj4', 'ImportFromEPSG', 'ImportFromUSGS', Loading @@ -20,7 +25,10 @@ def extract_projstring(proj_string): OSR spatial reference object """ if hasosr: srs = osr.SpatialReference() else: return for import_option in import_options: try: func = getattr(srs, import_option) Loading