[Qgis-user] Formatting dynamic text
Grant Boxer
boxerg at iinet.net.au
Tue Jan 24 20:42:26 PST 2023
Many thanks, I will give it a try,
Cheers Grant
From: David Strip <qgis-user at stripfamily.net>
Sent: Wednesday, 25 January 2023 12:27 PM
To: qgis-user <qgis-user at lists.osgeo.org>; boxerg at iinet.net.au
Subject: re: Formatting dynamic text
I am trying to use the dynamic text option [%item_variables('Map
1')['map_scale']%] in my print layout but I get a scale of 100000.000000007
in my title block. How can I apply a format number to get it to display a
whole number like 100000?
I don't know how to do it using dynamic text, but you can get what you want using this expression
[% round(map_get( item_variables('Map 1'), 'map_scale'),0)%]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230125/5a61786f/attachment.htm>
More information about the QGIS-User
mailing list