Ticket #3488 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

Expression based labeling

Reported by: NathanW Owned by: jef
Priority: minor: annoyance Milestone: Version 1.7.0
Component: MapCanvas Version:
Keywords: label Cc:
Platform Version: Platform: All
Must Fix for Release: No Awaiting user input: no

Description

There might be a trac already for this although I could not find it

It would be very handy to have expression based labels. This is something that I really miss coming from MapInfo? as I tend to make labels that contain information from more than one column eg PipeSize? + \n + PipeType?

I know I can do this by adding a new column however that is limited to tables that I can edit. A lot of our tables are in MapInfo? Tab format for just displaying purposes and because we still use MapInfo? and it would be nice to have something that doesn't require a save to shape and table edit first. So the expression label feature should not need the table to be editable.

It would be good if it supported all the operations that the field calculator does eg + * / - and multiline

Change History

Changed 2 years ago by jef

  • owner changed from nobody to jef

Changed 2 years ago by nirvn

That would indeed be very useful and a killer feature for QGIS' next version.

Other practical uses for expression based labeling: - Nicer display of INT/FLOAT values (i.e. "$hectares + ' ha'") - Ability to make basic string manipulation to further differentiate label types (lowercase(), uppercase(), capitalize(), etc.)

Note: See TracTickets for help on using tickets.