You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two layers, L1 and L2, and both has Scale Dependent Visibility (Layer Properties / Rendering) enabled:
L1 has Maximum (inclusive) set to 1:1 and has Minimum (exclusive) set to 1:100.
L2 has Maximum (inclusive) set to 1:100 and has Minimum (exclusive) set to 1:1,000.
When setting the zoom level of QGIS to exactly 1:100 both L1 and L2 are visible. I would expect L1 to be invisible (since it has exclusive on Minimum) and L2 to be visible (since it has inclusive on Maximum).
I didn't submit this ticket just because of issues with scale 1:100. I see the same issue at scale 1:10,000, 1:25,000, 1:100,000, 1:250,000 and 1:1,000,000 but not at scale 1:50,000, 1:500,000 and 1:5,000,000.
Steps to reproduce the issue
Add two layers and set the scale dependent visibility of both layers according to the bug-description.
Versions
3.34.8, 3.38.0, 3.39 (67e0563) - all on Windows 10.
Supported QGIS version
I'm running a supported QGIS version according to the roadmap.
Could the SCALE_PRECISION be the reason that both layers are rendered at exactly 1:100 in EPSG:25832?
The text was updated successfully, but these errors were encountered:
chau-intl
added
the
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
label
Jul 17, 2024
chau-intl
changed the title
Scale Dependent Visibility on layer wrong on scale interval edges
Scale Dependent Visibility on layer wrong on scale interval edges in EPSG:25832
Jul 17, 2024
What is the bug or the crash?
I have two layers, L1 and L2, and both has
Scale Dependent Visibility
(Layer Properties / Rendering) enabled:Maximum (inclusive)
set to1:1
and hasMinimum (exclusive)
set to1:100
.Maximum (inclusive)
set to1:100
and hasMinimum (exclusive)
set to1:1,000
.When setting the zoom level of QGIS to exactly
1:100
both L1 and L2 are visible. I would expect L1 to be invisible (since it has exclusive on Minimum) and L2 to be visible (since it has inclusive on Maximum).I didn't submit this ticket just because of issues with scale
1:100
. I see the same issue at scale1:10,000
,1:25,000
,1:100,000
,1:250,000
and1:1,000,000
but not at scale1:50,000
,1:500,000
and1:5,000,000
.Steps to reproduce the issue
Add two layers and set the scale dependent visibility of both layers according to the bug-description.
Versions
3.34.8, 3.38.0, 3.39 (67e0563) - all on Windows 10.
Supported QGIS version
New profile
Additional context
Looking briefly at the code I see this:
QGIS/src/core/qgis.cpp
Line 56 in 9e47ca4
QGIS/src/core/qgsmaplayer.cpp
Lines 1147 to 1151 in 9e47ca4
Could the
SCALE_PRECISION
be the reason that both layers are rendered at exactly1:100
in EPSG:25832?The text was updated successfully, but these errors were encountered: