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

Improve multiple crop zone support #1850

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Auron956
Copy link
Contributor

Changes how multiple crop zones within a single render definition are handled, resolving an issue where output would be corrupted when crop zones overlapped or were in close proximity to each other (potentially fixes #1848).

See below a comparison of the same render on master at 91ea874 (top) and this PR (bottom) with two crop zones defined as [(-1264, -112, -1249, -65), (-1328, -144, -1265, -113)]:
ovr-crop-change

Amends handling of the 'crop' render option such that when multiple
crop zones are specified, one CroppedRegionSet with many crop zones
is used rather than many CroppedRegionSets each with one crop zone.
This resolves issues where crop zones within the same render
could clobber each others tiles if close enough and could be rendered
with a different number of zoom levels.
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.

Crop rendering of adjacent selections
1 participant