Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NeededInitPrefix namepsace errors #1190

Merged
merged 2 commits into from
Jun 5, 2023
Merged

Conversation

banesullivan
Copy link
Contributor

Fixes issue if pyproj isn't installed

File ~/miniconda3/envs/venv/lib/python3.11/site-packages/large_image/tilesource/geo.py:230, in GDALBaseFileTileSource.getPixelSizeInMeters(self)
    223 def getPixelSizeInMeters(self):
    224     """
    225     Get the approximate base pixel size in meters.  This is calculated as
    226     the average scale of the four edges in the WGS84 ellipsoid.
    227 
    228     :returns: the pixel size in meters or None.
    229     """
--> 230     bounds = self.getBounds(NeededInitPrefix + 'epsg:4326')
    231     if not bounds:
    232         return

NameError: name 'NeededInitPrefix' is not defined

@banesullivan banesullivan merged commit e894648 into master Jun 5, 2023
@banesullivan banesullivan deleted the patch/init-prefix branch June 5, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants