Skip to content

Use original ZoomRanges on COG layer update - #2956

Merged
pomadchin merged 2 commits into
locationtech:masterfrom
atararaksin:fix/zoom-ranges-mismatch-on-cog-layer-update
Jun 4, 2019
Merged

pomadchin merged 2 commits into
locationtech:masterfrom
atararaksin:fix/zoom-ranges-mismatch-on-cog-layer-update

Conversation

@atararaksin

@atararaksin atararaksin commented May 30, 2019 •

Copy link
Copy Markdown
Contributor

Overview

This PR changes COG layers update behavior to use ZoomRanges that were generated at the time of initial ingest. This prevents possible mismatch.

The PR adds an overload to COGLayer.fromLayerRDD() which constructs a COGLayer with predefined set of ZoomRanges.

Checklist

  • docs/CHANGELOG.rst updated, if necessary
  • Unit tests added for bug-fix or new feature

Notes

Note that this PR is dependent on #2922, because the test won't succeed unless #2921 is fixed.

Closes #2938

@echeipesh
echeipesh requested a review from pomadchin May 30, 2019 19:55
@pomadchin
pomadchin force-pushed the fix/zoom-ranges-mismatch-on-cog-layer-update branch 2 times, most recently from 183feb4 to e210dcc Compare June 3, 2019 19:27
@pomadchin
pomadchin force-pushed the fix/zoom-ranges-mismatch-on-cog-layer-update branch from e210dcc to 887b7fa Compare June 3, 2019 19:38

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

LGTM, also thanks for a minor code clean up!

@pomadchin
pomadchin merged commit 603a253 into locationtech:master Jun 4, 2019
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.

NoSuchElementException when updating a COG layer

2 participants