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

Reduce gdal warning about projection strings. #559

Merged
merged 1 commit into from
Mar 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Improvements
- Reduce gdal warning about projection strings (#559)
- Don't report needless frame information for some single frame files (#558)

### Bug Fixes
- Fix compositing when using different frame numbers and partial tiles (#557)

Expand Down
3 changes: 3 additions & 0 deletions sources/gdal/large_image_source_gdal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,9 @@ def getTile(self, x, y, z, pilImageAllowed=False, numpyAllowed=False, **kwargs):
if not hasattr(self, '_warpSRS'):
self._warpSRS = (self.getProj4String(),
self.projection.decode('utf8'))
if self._warpSRS[1].startswith(InitPrefix) and tuple(
int(p) for p in gdal.__version__.split('.')[:2]) >= (3, 1):
self._warpSRS = (self._warpSRS[0], self._warpSRS[1][len(InitPrefix):])
with self._getDatasetLock:
ds = gdal.Warp(
'', self.dataset, format='VRT',
Expand Down