<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style><style type="text/css"></style><style type="text/css"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Larry
<div>The decimal funcion works fine -  if I only choose the $area function. </div>
<div>But when I add another field or 'text' the number of decimals expand.</div>
<div>Regards</div>
<div>Lene Fischer<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF425213" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>Fra:</b> larry@shafferinteractive.com [larry@shafferinteractive.com] på vegne af Larry Shaffer [larrys@dakotacarto.com]<br>
<b>Sendt:</b> 8. august 2013 05:56<br>
<b>Til:</b> Lene Fischer<br>
<b>Cc:</b> qgis-user@lists.osgeo.org<br>
<b>Emne:</b> Re: [Qgis-user] Label using $area and decimals<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Hi Lene,<br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Aug 7, 2013 at 9:09 PM, Lene Fischer <span dir="ltr">
<<a href="mailto:lfi@life.ku.dk" target="_blank">lfi@life.ku.dk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div lang="EN-US">
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">
<div style="">
<div>
<div>Hello </div>
<div>In Master I´m trying to set a label with the function $area. This works fine.</div>
<div>But I´m trying to use the formatting for numbers with only 1 decimal -  no succes. </div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Hmm. I just tried setting the expression to $area and using the 'Formatted numbers' option for the layer: worked. I also used just an expression:<br>
<br>
<style type="text/css">
<!--
p, li
        {white-space:pre-wrap}
-->
</style>
<p style="margin:0px; text-indent:0px">format_number( $area, 3)</p>
<p style="margin:0px; text-indent:0px"><br>
</p>
<p style="margin:0px; text-indent:0px">and that worked too, even where the area result was a whole integer, i.e. label was 12.000. I tested with precision of '1' and both worked fine. Can you share the data, even if it is just a file containing the individual
 feature that is not labeling properly?<br>
</p>
</div>
<div> <br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div lang="EN-US">
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">
<div style="">
<div>
<div>It works fine if I use a coloumn containing the area. <br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div lang="EN-US">
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">
<div style="">
<div>
<div>But this is not a solution because the $area is not dynamic in the coloum of the attribut table.</div>
<div><br>
</div>
<div>Secondly - how do I activate the functions in the Labeltoolbar -ex Move or Show/Hide</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>New documentation for labeling canvas map tools is forthcoming. For now, you can reference:<br>
<a href="http://gis.stackexchange.com/questions/67408" target="_blank">http://gis.stackexchange.com/questions/67408</a><br>
<br>
</div>
<div>Regards,<br>
<br>
</div>
<div>Larry<br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div lang="EN-US">
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">
<div style="">
<div>
<div>Regards</div>
<span class=""><font color="#888888">
<div>Lene Fischer</div>
</font></span></div>
</div>
</div>
<br clear="all">
</div>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
<br clear=all> 
</body>
</html>