[Qgis-user] Labels with 'text'

Goyo goyodiaz at gmail.com
Wed Nov 26 10:35:44 PST 2014


Removing decimals in the label formatting only works if the label is
actually a number, which is not anymore if you add the string "Acres".
So you need to explicitly apply some function on the field value,
something like

toint(acres) || '  Acres'

might do the trick.

Goyo

2014-11-26 18:45 GMT+01:00 Randal Hale <rjhale at northrivergeographic.com>:
> Question - I'm building a map for a client. I need to label a polygon with
> the Acres and the word Acres. The attribute for this polygon would be
> 184.35679835. In Properties -> Labels -> Formatting I can remove the
> decimals and I get 184 for a label.
>
> If I add the word Acres to the label -> acres || '  Acres' I expect to see
> 184 Acres. Instead I see 184.35679835 Acres.
>
> Is there something I'm missing when adding text to a label? I think there
> probably is....but I'm drawing a blank.
>
> Ubuntu 14.04 QGIS 2.6
> I haven't had a chance to test in Windows 7 OSGEO Install.
>
> Randy
>
> --
> -----------------
> Randal Hale
> North River Geographic Systems, Inc
> http://www.northrivergeographic.com
> 423.653.3611 rjhale at northrivergeographic.com
> twitter:rjhale     http://about.me/rjhale
> http://www.northrivergeographic.com/spatial-connect
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user



More information about the Qgis-user mailing list