-
-
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 "Scale dependent visibility" doesn't work anymore since 2.16 #23389
Comments
Author Name: Matthias Kuhn (@m-kuhn) Can you attach a .qgs project file with an affected layer? |
Author Name: EDOUARD GOUYON (EDOUARD GOUYON) Matthias Kuhn wrote:
Sorry I can't. Since The post of this bug, I've definitely downgraded to 2.14 version and the bug doesn't exists anymore. I didn't save any project with 2.16 in order not affect the good styling of my layers with the reported bug. |
Author Name: Sandro Santilli (@strk) Edouard if I read your original submission correctly we dont' need a project saved by 2.16 but by 2.12 ? |
Author Name: Matthias Kuhn (@m-kuhn) I assume that 1f1898d fixes this issue. Basically, in 2.12, the scale "0" could be used for an infinitely max scale. In 2.16 1:1 was the max possible, anything else (like 0) would be set equal to the min scale (which could be 1:100'000), resulting in the layer never being visible. Above commit fixes this for 2.18. If someone is able to reproduce this with a recent nightly/2.18, please reopen.
|
Author Name: Jean-Gabriel JGH (Jean-Gabriel JGH) Hello, I am having the same issue with 2.18.3 and 2.18.4 (Windows 10, 64 bits), with both Shapefiles and Postgres layers. As Matthias Kuhn has asked, please find a simple QGS file exhibiting the issue. It refers to a dummy layer (i.e. empty shapefile). This layer (dummylayer_ok) is set to have a max scale of 1:12,345 which works fine. A copy of the layer (dummylayer_reset), with a scale of 1:123,456 is there. You can see the scale in the QGS file but opening its property should show 1:100,000. PS: I put an emphasis that the issue is, in the GUI, with the MAX scale, but the QGS file records this value as the MIN scale... Let me know should you need any other information!
|
Author Name: Giovanni Manghi (@gioman) Confirmed here too.
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Sandro Santilli (@strk)
In my main GIS workspace all the layers initially set with a specific "Scale dependent visibility" on QGIS 2.12 are not working properly since QGIS 2.16: When I try to open this main GIS workspace in QGIS 2.12 or 2.14, no problem, this max value of "Scale dependent visibility" is still OK. Please see attachement file for a display comparison. Thank you for your support. Edouard Gouyon to Hi, In my main GIS workspace all the layers initially set with a specific "Scale dependent visibility" on QGIS 2.12 are not working properly since QGIS 2.16: When I try to open this main GIS workspace in QGIS 2.12 or 2.14, no problem, this max value of "Scale dependent visibility" is still OK. Please see attachement file for a display comparison. Thank you for your support. Edouard Gouyon
|
Author Name: Sandro Santilli (@strk) I confirm the issue. Opening the project you attached (minScaleReset) with QGIS 2.14.10 and opening layer properties gives me:
Opening it with QGIS master (2.0.0-dev 4ed096b) gives:
I can still set (via GUI) that "max" value to 1:1,000,000, so there's no reason why 1:123,456 should not be accepted. |
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Sandro Santilli (@strk) 2.16 is also affected (at least as of final-2_16_3-106-g7ff0883) |
Author Name: Sandro Santilli (@strk)
|
Author Name: Giovanni Manghi (@gioman) no one will wver worok on 2.16, on the other hand 2.18 is the next release, knowing that LTR is THE affected version is MUCH more important.
|
Author Name: Sandro Santilli (@strk) I filed a pull request for 2.18 branch: #4612 I'll not start an "Affected QGIS version" semantic war here, please use the mailing list for that.
|
Author Name: Sandro Santilli (@strk) Ok so full analysis is as follows:
So the proper fix here is to change setScalRange to set min before max. It is arguable whether the arbitrary values to the range are worth keeping, but if we want to keep them it could be a better idea to use DBL_MIN/DBL_MAX for the limit... |
Author Name: Sandro Santilli (@strk) Reopening to make sure it's also fixed in master branch (3.0.0-dev) - and I'm still working on the testcase. Will send a new PR for master.
|
Author Name: Sandro Santilli (@strk)
|
Author Name: EDOUARD GOUYON (EDOUARD GOUYON)
Original Redmine Issue: 15463
Affected QGIS version: 2.18.4
Redmine category:vectors
Assignee: Sandro Santilli
Hi,
This is my first bug report here :) ! I Hope this will be efficient for all !
In my main GIS workspace all the layers initially set with a specific "Scale dependent visibility" on QGIS 2.12 are not working properly since QGIS 2.16:
For all those layers, on QGIS 2.16.1, the "Minimum (exclusive)" value is remaining OK (that is as initially set), but the "Maximum (inclusive)" value is now automatically and wrongly set to the value '1:100 000' instead of the value initially set. After trying to reset the good initial value and then applying with "apply" and "OK" buttons, the value always stays to '1:100 000' value.
When I try to open this main GIS workspace in QGIS 2.12 or 2.14, no problem, this max value of "Scale dependent visibility" is still OK.
Please see attachement file for a display comparison.
Thank you for your support.
Edouard Gouyon
Redmine related issue(s): 16601
The text was updated successfully, but these errors were encountered: