Hello list I want to vary the size of my labels on features both by attribute and map scale. So, for example, I have a layer of towns and villages and I want towns labelled with a font size of 20 and villages with a font size of 10. I can do this with in the label size expression builder:
CASE WHEN "type" = 'town' THEN 20 ELSE 10 END Now, how can I vary the label size with scale? When the scale is smaller than 1:100000 then towns must be size 15 and villages size 8. I thought something like this would work: (CASE WHEN "type" = 'town' AND $scale < 100000 THEN 20 ELSE 10 END) OR (CASE WHEN "type" = 'town' AND $scale > 100000 THEN 15 ELSE 8 END) I tried with the $scale function under Record category but then the labels disappeared. Any suggestions? I am using QGIS 2.0.1-3 on Windows 7. Thanks Ross Ross McDonald | GIS Data Coordinator | Resources Department, IT Division | Angus Council, Angus House, Orchardbank Business Park, Forfar, DD8 1AT T: 01307 476419 | F: 01307 476401 | E: mcdona...@angus.gov.uk<mailto:mcdona...@angus.gov.uk> | W: Angus Maps<http://www.angus.gov.uk/maps/map_home.cfm> This message is strictly confidential. If you have received this in error, please inform the sender and remove it from your system. If received in error you may not copy, print, forward or use it or any attachment in any way. This message is not capable of creating a legal contract or a binding representation and does not represent the views of Angus Council. Emails may be monitored for security and network management reasons. Messages containing inappropriate content may be intercepted. Angus Council does not accept any liability for any harm that may be caused to the recipient system or data on it by this message or any attachment.
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user