Bug report #13332

improperly drawn lines may occur on polygon/line features

Added by Steven Mizuno about 5 years ago. Updated almost 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Symbology
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:21386

Description

When Settings|Options|Rendering, Rendering quality: "Make lines appear less jagged at the expense of some drawing performance" is turned OFF there is a line drawing problem for linestring and polygon features where a line is drawn across the map instead of following a series of vertices. This happens when some of the vertices are off-screen.

This occurs when the border or pen width is equivalent to less than 1 pixel -- 0.26 mm being the default. On a 96dpi display 1 pixel = 0.26458333 mm, approximately.

Changing the line width to 0.264584 (just more than 1 pixel) keeps the improperly drawn lines from appearing.

The problem occurs for both the main feature rendering and when the feature is selected. Note that the line width settings don't affect the selection rendering.

At first I thought it was related to a particular computer until I realized that another computer with the same version of QGIS was set for 192dpi so the problem showed only sometimes, as when a feature was selected. I changed the line width to 0.13 (less than 1 px) and the problem would occur on this computer as well. Also noticed that 32-bit versions didn't appear to have the problem.

On further testing, it appears that the 32-bit versions don't exhibit the problem and that 64-bit versions dating to 2.10 or earlier do have the problem.

I consider this to be a relatively minor problem, but it could lead to misinterpreted data.

Attached files showing various aspects.

20150905_001.png - line width 0.26 problem shows (6.18 KB) Steven Mizuno, 2015-09-08 12:47 PM

20150905_002.png - line width 0.264584, no problem (5.18 KB) Steven Mizuno, 2015-09-08 12:47 PM

20150905_003.png - ine width 0.26, zoomed in to show diagonal corner to opposite (5.26 KB) Steven Mizuno, 2015-09-08 12:47 PM

20150905_004.png - with feature selected showing problem (6.2 KB) Steven Mizuno, 2015-09-08 12:47 PM

History

#1 Updated by Steven Mizuno almost 5 years ago

I believe this has been fixed in master (see #13343 which described a similar problem), so I am closing this issue.

#2 Updated by Steven Mizuno almost 5 years ago

  • Status changed from Open to Closed

Forgot to change Status

Also available in: Atom PDF