[Qgis-user] Label using $area and decimals

Larry Shaffer larrys at dakotacarto.com
Wed Aug 7 20:56:25 PDT 2013


Hi Lene,

On Wed, Aug 7, 2013 at 9:09 PM, Lene Fischer <lfi at life.ku.dk> wrote:

>   Hello
> In Master I´m trying to set a label with the function $area. This works
> fine.
> But I´m trying to use the formatting for numbers with only 1 decimal -  no
> succes.
>

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:

 format_number( $area, 3)


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?


> It works fine if I use a coloumn containing the area.
>
But this is not a solution because the $area is not dynamic in the coloum
> of the attribut table.
>
>  Secondly - how do I activate the functions in the Labeltoolbar -ex Move
> or Show/Hide
>

New documentation for labeling canvas map tools is forthcoming. For now,
you can reference:
http://gis.stackexchange.com/questions/67408

Regards,

Larry


> Regards
> Lene Fischer
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20130807/49ca2bd3/attachment.html>


More information about the Qgis-user mailing list