-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
New symbology fails to render "problematic" lines at high zoom levels #14433
Comments
Author Name: Sandro Santilli (@strk) I was wrong about the actual shape.
|
Author Name: Sandro Santilli (@strk) !topotest.png! |
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Sandro Santilli (@strk) Well, since I was wrong about the shape this ticket is invalid.
|
Author Name: Sandro Santilli (@strk) Actually, since old and new symbology behave differently this is likely still a valid bug. I'm not sure, but it could have to do with lines clipping done in 17e864b
|
Author Name: Sandro Santilli (@strk) Here's another input showing the problem:
I hit another bug while trying to reproduce (#14879) because the problem can't be reproduced with old symbology (or maybe w/out labels, not sure yet). |
Author Name: Sandro Santilli (@strk) Note: it renders fine up to scale 1:10, fails at 1:5 and higher |
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Serge Dikiy (Serge Dikiy) Hi, @strk https://github.com/qgis/Quantum-GIS/blob/master/src/core/symbology-ng/qgsrendererv2.cpp#L79 New symbology use "Line clipping":http://en.wikipedia.org/wiki/Line_clipping only if ( nPoints > 100 ) I use a very simple patch to fix the problem :-) |
Author Name: Marco Hugentobler (@mhugent) The fix is applied, thank you Serge.
|
Author Name: Sandro Santilli (@strk) I'd like to have a chance to actually test this.
|
Author Name: Marco Hugentobler (@mhugent) Thanks for your availability to do more tests, that will be helpful. |
Author Name: Serge Dikiy (Serge Dikiy) I think this is a bug Qt. "clipping" reduces the length of the line before rendering. |
Author Name: Serge Dikiy (Serge Dikiy) ...but QgsRubberBand have same issue.
|
Author Name: Sandro Santilli (@strk) do you mean there are still differences between old and new symbology ? That's my main concern, hoping to see one fully replacing the other asap (so to all focus on a single implementation). |
Author Name: Sandro Santilli (@strk) For the record: it was sorted out in IRC that the RubberBand thing has nothing to do with this ticket and that it will eventually need a separate ticket to handle. |
Author Name: Sandro Santilli (@strk)
Original Redmine Issue: 4514
Affected QGIS version: master
Redmine category:symbology
The following WKT has a few rendering problems.
It is a V shaped figure. One element is the full V, the other two are the two wings.
The bottom node is cohincident for the two wings, but it's moved on the left for the full V.
Beside other rendering problems, for which I'll file another bug, this one is about a different threatment between old symbology and new symbology. To reproduce:
Applying old symbology and zooming on the right wing until you see two lines.
Then switch to new symbology and apply it. The lines will disappear.
This is with a recent build from master, and specifically commit be9bdeb
MULTILINESTRING(
(
832709.937 816560.25,
832705.813 816470.25,
832661.937 816561.875
),
(
832705.812 816470.25,
832709.937 816560.25
),
(
832661.938 816561.875,
832705.813 816470.25
))
The text was updated successfully, but these errors were encountered: