Feature request #4145

New Feature: expose map scale to SQL queries (under "Layer Properties").

Added by Thaddeus - over 12 years ago. Updated almost 12 years ago.

Status:Closed
Priority:Normal
Assignee:Nathan Woodrow
Category:Symbology
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:14125

Description

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.

History

#1 Updated by Thaddeus - over 12 years ago

  • Tracker changed from Bug report to Feature request

#2 Updated by Paolo Cavallini over 12 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed
  • Category set to Symbology

AFAICT this is implemented in new rule based symbology. Please check and reopen if not.

#3 Updated by John Tull almost 12 years ago

  • Resolution deleted (fixed)
  • 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.

Also available in: Atom PDF