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

Anti-aliasing leads to visible borders even if borders have "no pen" #18620

Closed
qgib opened this issue May 4, 2014 · 7 comments
Closed

Anti-aliasing leads to visible borders even if borders have "no pen" #18620

qgib opened this issue May 4, 2014 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented May 4, 2014

Author Name: Johannes Kroeger (Johannes Kroeger)
Original Redmine Issue: 10166
Affected QGIS version: 2.2.0
Redmine category:symbology


The option "Options -> Rendering -> Rendering Quality: Make lines appear less jagged at the expense of some drawing performance" leads to unwanted visual artifacts when drawing polygons with no borders.

To reproduce:

  1. Have some polygons with adjacent/shared borders, eg from a Delaunay/Voronoi.
  2. Set "Border style" to "No pen".
  3. Set "Options -> Rendering -> Rendering Quality: Make lines appear less jagged at the expense of some drawing performance" to true by ticking the box. If it is ticked, the borders will appear in the color of the background as visible lines. If the option is unticked, there will be no visible borders as intended. See the attached image for an example.

I am on Linux using binary nvidia drivers.
QGIS version 2.3.0-Master
QGIS code revision eacb5bd
Compiled against Qt 4.8.6
Running against Qt 4.8.6
QWT Version 6.1.0
QScintilla2 Version 2.8.1


@qgib
Copy link
Contributor Author

qgib commented May 4, 2014

Author Name: Martin Dobias (@wonder-sk)


You can simply keep using border with the border color equal to the fill color - this will make the artifacts disappear.

@qgib
Copy link
Contributor Author

qgib commented May 4, 2014

Author Name: Johannes Kroeger (Johannes Kroeger)


That hack is only feasible if you use a Single Symbol symbology. Otherwise you would need to update each class to have identical fill and border colors.

@qgib
Copy link
Contributor Author

qgib commented Jun 21, 2014

Author Name: Jürgen Fischer (@jef-n)


  • category_id was configured as Symbology

@qgib
Copy link
Contributor Author

qgib commented Aug 26, 2014

Author Name: Sandro Santilli (@strk)


Maybe there could be an option to make the border style follow the fill style.

@qgib
Copy link
Contributor Author

qgib commented Aug 26, 2014

Author Name: Sandro Santilli (@strk)


I shall also mention that for me the artifacts are also visible with "Make lines appear less jagged at the expense of some drawing performance" option unchecked. Just less visible, but occasionally they still emerge.

@qgib
Copy link
Contributor Author

qgib commented Aug 26, 2014

Author Name: Sandro Santilli (@strk)


Indeed with a "graduated" symbology it is much harder to fix as you have to go in each and every class, and the default classes all have a black border

@qgib
Copy link
Contributor Author

qgib commented Mar 27, 2017

Author Name: Johannes Kroeger (Johannes Kroeger)


Duplicate of #12023

For what it's worth, the fix of adding the same color to the no-stroke border does not work for me in a satisfying way in 2.18.5.


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

1 participant