Re: [Qgis-user] Layout page size variable?

2021-05-20 Thread Tony Shepherd (FarmMaps NZ)
Hi Charles (& others) Thanks for the advice guys. I’ve come up with this, it works a treat. [%'Scale 1:' || format_number(round(map_get(item_variables('Main-Map-1'), 'map_scale'),0),0)|| CASE WHEN @layout_pagewidth IS 297 AND @layout_pageheight IS 210 THEN ' @ A4' WHEN @layout_pagewidt

Re: [Qgis-user] Layout page size variable?

2021-05-20 Thread Thomas Gratier
Hi, Not sure it's available but you can use the following Python expression to add the functionality @qgsfunction(args='auto', group='Layout') def get_page_format(layoutname, pagenumber, feature, parent, context): layout = QgsProject.instance().layoutManager().layoutByName(layoutname) pag

Re: [Qgis-user] Layout page size variable?

2021-05-20 Thread Charles Dixon-Paver
Yeah I am not aware of a variable for this... But page sizes are actually more complicated than they seem. You can emulate it pretty easily with something like the following expression on a layout as you suggested: [%CASE WHEN @layout_pagewidth IS 297 AND @layout_pageheight IS 210 THEN 'On A4 Land

[Qgis-user] Layout page size variable?

2021-05-20 Thread Tony Shepherd (FarmMaps NZ)
Hi All Is there a variable that returns the page size of a print layout? I would like to add the page size to the scale below so it reads something like "1:5,000 @ A3" I can see variables for width and height, but not Page Size? Or would I need to code in some 'if' & 'then' statements

[Qgis-user] QGIS Open Day: QGIS Cutting Edge 28th May 2021

2021-05-20 Thread Nicholas Sun Hing
Dear QGIS Users The QGIS Open Day is fast approaching. This month's event will be dedicated to unique techniques and processes that can be performed in QGIS. *Sessions include:* - *GIS Water* *plugin *by Xavier Torret & Albert Bofill*. *A QGIS Plugin that can be used to manage water networ