Feature request #5048
Labeling's "Data defined settings" are literally used for size, etc.
|Pull Request or Patch supplied:||No||Resolution:|
If I specify a data-defined setting for Size for the labeling feature, it appears that the selected field is used to literally affect that property.
For example, I have a SHP that has all city limits in Texas. One field is the city's population. The field varies from very few (probably around 10) to well over a million. I cannot imagine a useful diagram that has font sizes varying from 10 points to over a million points.
Please instead allow the value to vary within a predefined scale. E.g., on the example of the city population, I'd rather the value vary between, say, 10pt and 50pt font, so that the smallest city has a 10pt font and the largest city has a 50pt font. I'm OK if QGIS has an automatic way of providing a meaningful, initial value for the bounds on size, but I'd like to be able to override these, too.You might counterargue that I should create a separate field in my dataset to handle this value. That has two problems:
- I'd have to edit the SHP, which is cumbersome.
- Even if this was easier to edit, such as a PostGIS dataset, I'm still having to guess how everything should look before I can even see it.
I've attached images to show how things look before and after using the city population for the size field.