[Qgis-user] Labels with 'text'

Randal Hale rjhale at northrivergeographic.com
Wed Nov 26 10:36:06 PST 2014


Close - I ended up with this and it worked: format_number(acres, 0) || ' 
' || 'Acres'

Thanks - I had no clue that format_number was something I could do.

Randy

On 11/26/2014 01:26 PM, Nicolas Cadieux wrote:
>
> Try using an expression.
>
> acres ||  format_number ( "Acres",0)
>
> Nicolas Cadieux M.Sc.
> Les Entreprises Archéotec inc.
> 8548, rue Saint-Denis Montréal H2P 2H2
> Téléphone: 514.381.5112  Fax: 514.381.4995
>
> Le 2014-11-26 12:45, "Randal Hale [via OSGeo.org]" <[hidden email] 
> </user/SendEmail.jtp?type=node&node=5175138&i=0>> a écrit :
>
>     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 [hidden email]
>     </user/SendEmail.jtp?type=node&node=5175119&i=0>
>     twitter:rjhale http://about.me/rjhale
>     http://www.northrivergeographic.com/spatial-connect
>
>     _______________________________________________
>     Qgis-user mailing list
>     [hidden email] </user/SendEmail.jtp?type=node&node=5175119&i=1>
>     http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>     ------------------------------------------------------------------------
>     If you reply to this email, your message will be added to the
>     discussion below:
>     http://osgeo-org.1560.x6.nabble.com/Labels-with-text-tp5175119.html
>     To start a new topic under Quantum GIS - User, email [hidden
>     email] </user/SendEmail.jtp?type=node&node=5175138&i=1>
>     To unsubscribe from Quantum GIS - User, click here.
>     NAML
>     <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
>
> ------------------------------------------------------------------------
> View this message in context: Re: Labels with 'text' 
> <http://osgeo-org.1560.x6.nabble.com/Labels-with-text-tp5175119p5175138.html>
> Sent from the Quantum GIS - User mailing list archive 
> <http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html> 
> at Nabble.com.
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

-- 
-----------------
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20141126/f1b9eb48/attachment.html>


More information about the Qgis-user mailing list