Skip to content

Commit

Permalink
Fix NeededInitPrefix namepsace errors (#1190)
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan authored Jun 5, 2023
1 parent 202fbdb commit e894648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions large_image/tilesource/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
try:
import pyproj
has_pyproj = True
_pyproj_under_6 = int(pyproj.proj_version_str.split('.')[0]) < 6
except Exception:
has_pyproj = False

Expand All @@ -23,8 +24,7 @@
ProjUnitsAcrossLevel0_MaxSize = 100

InitPrefix = ''
if has_pyproj:
NeededInitPrefix = '+init=' if int(pyproj.proj_version_str.split('.')[0]) < 6 else InitPrefix
NeededInitPrefix = '+init=' if has_pyproj and _pyproj_under_6 else InitPrefix


def make_vsi(url: str, **options):
Expand Down

0 comments on commit e894648

Please sign in to comment.