-
-
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
Layer is still visible after un-checking (while canvas is rendering) #17043
Comments
Author Name: Matthias Kuhn (@m-kuhn) Do you have render caching enabled (In settings => Options => Rendering)?
|
Author Name: Donovan Cameron (@saultdon) Hey Matt. I checked and don't have render caching enabled on QGIS 1.8. I'm noticing that if you toggle the visibility for a layer while the canvas is rendering, those changes aren't applied. In fact toggling visibility while the canvas is rendering doesn't affect rendering, the canvas will finish rendering what it was originally trying to render instead of cancelling the current render and restarting. I have to wait till everything is finished rendering (or press to cancel rendering), then toggle the visibility. |
Author Name: Giovanni Manghi (@gioman) Donovan Cameron wrote:
maybe this is somehow related to the fact that also the "show all layers" and "hide all layers" functions are not working? |
Author Name: Donovan Cameron (@saultdon) Giovanni Manghi wrote:
Looks like that one is actually behaving a little differently. If you Show All Layers (ctrl+shift+U) or Hide All Layers (ctrl+shift+H) the canvas is not refreshed and the changes aren't shown immediately. But they can be if you manually press Refresh or pan/zoom. |
Author Name: Donovan Cameron (@saultdon) #16933 is the bug for that "All Layers" issue =) |
Author Name: X X (X X) I am having the same problem. It occurred in QGIS 1.8 and still seems to exist in 2.0. I think it is related to #17175 (sorry I am new to this and don't know how to link bug reports). It only seems to happen when there are many layers (e.g. more than 40) in a document and doesn't just happen when the canvas is rendering after a pan or zoom. I should note these are all PostGIS layers, but I will try to reproduce the issue with shapefiles. Our current work-around is to click a layer name to highlight it in the table of contents, wait for QGIS to refresh, and then turn the check-box on or off. If you simply click the check box it will check/uncheck, but the layer won't actually turn off/on in the map canvas. I've been trying to figure out more information on the cause (e.g. enabled and disabled render caching), but haven't had any luck, sorry! |
Author Name: Giovanni Manghi (@gioman) Brett Z wrote:
I have just tested on Linux/qgis master, with a huge projects (>100 layers) and cannot replicate the issue. |
Author Name: X X (X X) I tested it some more and found it only occurs when there are PostGIS layer in the document. I tried a project with almost 100 SpatiaLite layers in it and there was no problem; however, as soon as I added one PostGIS layer the problem started occurring (even when turning on or off the SpatiaLite layers). We have 2 PostGIS servers and the problem occurs with layers from either of them. I'm going to try connecting to a clean PostGIS install in a virtual machine on my local computer to see if the problem still occurs... |
Author Name: Giovanni Manghi (@gioman) Brett Z wrote:
This is weird, because again (by adding postgis layers to my big projects) I can't confirm it (in qgis master). |
Author Name: X X (X X) Thanks Giovanni... I couldn't figure out why you weren't able to replicate the issue, when all 20+ QGIS users here (and may people online line) have it occur - but I think I've isolated it now. The problem only occurs when the "Improved Polygon Capturing" plug-in is enabled in the 32-bit version and there are PostGIS layers in the document - a fairly unique situation, which explains why it wasn't occurring for you. We will simply disable this plugin when not being used, and your help troubleshooting is much appreciated. Hopefully this plugin can be fixed by its creator so other users don't have the same issue. Thanks again! |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Donovan Cameron (@saultdon)
Original Redmine Issue: 8231
Affected QGIS version: 1.8.0
Redmine category:gui
If I uncheck a layer to stop it from being visible while the canvas is rendering, it doesn't actually turn it off.
Zooming, panning or refreshing the canvas with the layer checked off keeps it visible. I would think that panning and zooming would then not draw the layer because it's unchecked in the TOC.
The solution is to check it back on, then uncheck it. Or, just don't uncheck it while the canvas is rendering - wait till rendering is complete or press then uncheck it.
The text was updated successfully, but these errors were encountered: