Feature request #4145
New Feature: expose map scale to SQL queries (under "Layer Properties").
|Pull Request or Patch supplied:||No||Resolution:|
|Easy fix?:||No||Copied to github as #:||14125|
New Feature: expose map scale to SQL queries found under "Layer Properties".
In this way, Labels and Symbols cluttering the screen can be easily controlled by using a few boolean terms with the current scale value.
#3 Updated by John Tull about 7 years ago
- Resolution deleted (
- Operating System set to All
- Target version set to Version 2.0.0
- Assignee set to Nathan Woodrow
This needs to be reopened, but I don't appear to have permission to do so. I was running into this today trying to set expression-based labels that would use one label field at one scale, and another label at a larger or smaller scale. For example, a contour line layer can be setup nicely with rule-based styles to show some features at a given scale, and not at other scales. One cannot work with the expression based label feature to similarly use fields as labels at varied scales. You can only turn the entire label on or off.
In my example, I want to label 200' contours when I am at 1:25000 scale and closer. I want to use 500' intervals from 1:25000-100000, then 1000' intervals from there. I cannot find a way to do this with a single layer. I can kludge it with multiple uses of a layer with different scale-based rules, but that is not very elegant.