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

Fix "Avoid artifacts when project is rendered as map tiles" doesn't work on server #41229

Merged
merged 9 commits into from
Feb 12, 2021

Conversation

nyalldawson
Copy link
Collaborator

Fixes #37679

@github-actions
Copy link

The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Feb 12, 2021
settings, that's not a stable place to store things like this which
are designed to apply in both desktop and server contexts!

Refs qgis#37679
Returns true if the symbol layer rendering can cause visible
artifacts across a single feature when the feature is rendered
as a series of adjacent map tiles each containing a portion
of the feature's geometry.

This depends on the symbol layer derived class itself - eg
a simple solid color fill won't show any artifacts, but a shapeburst
fill WILL.
Returns True if ANY of the symbol layers contained in the symbol
can cause tile rendering artifacts
Instead of force disabling ALL feature clipping to rendered map bounds
(which is INCREDIBLY expensive to disable, and can result in slooow
map renders), be more intelligent and only disable the feature clipping
for symbols where we know there'll be visible map tile artifacts
between neighbouring tiles.

If there's not going to be any artifacts (eg the symbol is a solid
color fill), then it's pointless to disable the huge speed boost
we get from the automatic geometry clipping...
@nyalldawson nyalldawson removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Feb 12, 2021
@nyalldawson nyalldawson merged commit 22a4b88 into qgis:master Feb 12, 2021
@nyalldawson nyalldawson deleted the fix_37679_server_tile branch February 12, 2021 05:41
@github-actions
Copy link

The backport to release-3_16 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-release-3_16 release-3_16
# Navigate to the new working tree
cd .worktrees/backport-release-3_16
# Create a new branch
git switch --create backport-41229-to-release-3_16
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick --mainline 1 22a4b881d383dc0811d0b7230760758bbffdb26f
# Push it to GitHub
git push --set-upstream origin backport-41229-to-release-3_16
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-release-3_16

Then, create a pull request where the base branch is release-3_16 and the compare/head branch is backport-41229-to-release-3_16.

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.

Option "Avoid artifacts when project is rendered as map tiles" doesn't work on server.
1 participant