[Qgis-user] Label using $area and decimals Master 31

Nathan Woodrow madmanwoo at gmail.com
Mon Aug 12 04:14:35 PDT 2013


This is the ticket that was opened for it
http://hub.qgis.org/issues/8447however I closed it because it's not
really a bug because you can't format
a string as a number.
On 12/08/2013 9:03 PM, "Jonathan Moules" <jonathanmoules at warwickshire.gov.uk>
wrote:

> Hi,
> Possibly this? http://hub.qgis.org/issues/8405  - it was fixed a few days
> ago apparently so if it is still happening in a new build it sounds like a
> different bug.
>
> Also maybe - http://hub.qgis.org/issues/5546 - unfixed.
>
> Jonathan
>
>
>
> On 11 August 2013 16:31, Lene Fischer <lfi at life.ku.dk> wrote:
>
>>  Hi Larry
>> The decimal funcion works fine -  if I only choose the $area function.
>> But when I add another field or 'text' the number of decimals expand.
>> Regards
>> Lene Fischer
>>  ------------------------------
>> *Fra:* larry at shafferinteractive.com [larry at shafferinteractive.com] på
>> vegne af Larry Shaffer [larrys at dakotacarto.com]
>> *Sendt:* 8. august 2013 05:56
>> *Til:* Lene Fischer
>> *Cc:* qgis-user at lists.osgeo.org
>> *Emne:* Re: [Qgis-user] Label using $area and decimals
>>
>>   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
>>>
>>>
>>
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>
> This transmission is intended for the named addressee(s) only and may
> contain sensitive or protectively marked material up to RESTRICTED and
> should be handled accordingly. Unless you are the named addressee (or
> authorised to receive it for the addressee) you may not copy or use it, or
> disclose it to anyone else. If you have received this transmission in error
> please notify the sender immediately. All email traffic sent to or from us,
> including without limitation all GCSX traffic, may be subject to recording
> and/or monitoring in accordance with relevant legislation.
> _______________________________________________
> 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/20130812/507503bd/attachment.html>


More information about the Qgis-user mailing list