Skip to content

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

Merged
pomadchin merged 1 commit into
locationtech:masterfrom
Kapernikov:fix-resample-basetiff
Oct 1, 2022
Merged

pomadchin merged 1 commit into
locationtech:masterfrom
Kapernikov:fix-resample-basetiff

Conversation

@kervel

@kervel kervel commented Sep 28, 2022 •

Copy link
Copy Markdown
Contributor

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

@pomadchin pomadchin left a comment •

Copy link
Copy Markdown
Member

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.

Comment thread raster/src/test/scala/geotrellis/raster/geotiff/GeoTiffRasterSourceSpec.scala Outdated
Comment thread raster/src/test/scala/geotrellis/raster/geotiff/GeoTiffRasterSourceSpec.scala Outdated
Comment thread raster/src/main/scala/geotrellis/raster/geotiff/GeoTiffResampleRasterSource.scala Outdated
Comment thread CHANGELOG.md Outdated

@pomadchin pomadchin left a comment

Copy link
Copy Markdown
Member

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]>
@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