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

Pass baseTiff to new RasterSource on GeoTiffResampleRasterSource.reproject/convert #3485

Merged
merged 1 commit into from
Oct 1, 2022

Conversation

kervel
Copy link
Contributor

@kervel kervel commented Sep 28, 2022

Overview

Before, when calling .convert or .reproject on a resampled GeoTiffRasterSource, a new baseTiff was created from the source path. Now, we preserve the baseTiff (like all other methods already do), avoiding creating a new one (and losing settings in the process)

Checklist

  • ./CHANGELOG.md updated, if necessary. Link to the issue if closed, otherwise the PR.
  • Unit tests added for bug-fix or new feature

Copy link
Member

@pomadchin pomadchin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! A nice fix, I left a couple of style related comments only! Could you also update the CHANGELOG.md, to add a link to this PR into the file under the Changed section?

I checked your email and the ECA is good indeed, mb ECLIPSE bot is angry; smth like git commit --amend && git push origin -f fix-resample-basetiff may help; if not - I'll reach them to investigate it.

@kervel kervel force-pushed the fix-resample-basetiff branch from aff505c to 39dfefd Compare September 29, 2022 19:34
Copy link
Member

@pomadchin pomadchin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 thank you! will merge it once the CI is green!

…ojection and convert

This avoids creating a new baseTiff when reprojecting or converting a resampled geotiff raster source.

Signed-off-by: Frank Dekervel <[email protected]>
@kervel kervel force-pushed the fix-resample-basetiff branch from 39dfefd to 2670d7f Compare September 29, 2022 20:29
@pomadchin pomadchin merged commit 446ebe1 into locationtech:master Oct 1, 2022
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