Skip to content

Commit

Permalink
Work around pyproj older versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Nov 8, 2021
1 parent 7075c5a commit 7179458
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sources/gdal/large_image_source_gdal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@
import numpy
import palettable
import PIL.Image
import pyproj
from osgeo import gdal, gdal_array, gdalconst, osr
from osgeo import gdal, gdal_array, gdalconst, osr # noqa I001
# pyproj stopped supporting older pythons, so its database is aging; as such,
# if on those older versions of python if it is imported before gdal, there can
# be a database version conflect; importing after gdal avoids this.
import pyproj # noqa I001
from pkg_resources import DistributionNotFound, get_distribution

import large_image
Expand Down

0 comments on commit 7179458

Please sign in to comment.