Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label $area and field #17216

Closed
qgib opened this issue Aug 11, 2013 · 3 comments
Closed

Label $area and field #17216

qgib opened this issue Aug 11, 2013 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling

Comments

@qgib
Copy link
Contributor

qgib commented Aug 11, 2013

Author Name: Lene Fischer (@LeneFischer)
Original Redmine Issue: 8447
Affected QGIS version: master
Redmine category:labelling


I´m trying to set a label with the function $area. This works fine. Also with formating ex 1 decimal.

With $area || 'text' the formatting for decimals fails

@qgib
Copy link
Contributor Author

qgib commented Aug 11, 2013

Author Name: Giovanni Manghi (@gioman)


I had once reported the same issue here #16086 and it was closed because in the expression builder there are now number formatting functions. It is up to you to keep this open or closing it for the same reason.


  • operating_system was changed from Windows and MAC to
  • assigned_to_id was configured as Larry Shaffer

@qgib
Copy link
Contributor Author

qgib commented Aug 11, 2013

Author Name: Nathan Woodrow (@NathanW2)


The format option doesn't work on anything but pure numbers being returned. Once you use || you are returning a string and we can't format that. Use the @format_number@ function


  • resolution was changed from to invalid
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Aug 11, 2013

Author Name: Nathan Woodrow (@NathanW2)


  • assigned_to_id removed Larry Shaffer

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling
Projects
None yet
Development

No branches or pull requests

1 participant