New answers tagged

0 votes

Make QGIS report use raster rather than vector images in its PDF export

My previous answer is based on the Print layout, while the question is based on Reports. Luckily the relevant parts look very alike so in essence it worked. Sadly in the reports engine this resolution ...
peter's user avatar
  • 765
3 votes
Accepted

Make QGIS report use raster rather than vector images in its PDF export

Print as raster In the print layout composer you will find a number of tabs: {Item properties|Layout|Guides|Atlas}. On the Layout tab, scroll down to the Export settings. There you can turn on ...
peter's user avatar
  • 765
0 votes

Is there any way to link the current map scale in the print layout to a text box?

If you ever need to place the scale in the table you can use this (change 'Map 1' to the name of your map) '1:'||round(map_get(item_variables('Map 1'),'map_scale'),0) This if pasted into a table ...
zrider100z's user avatar
7 votes
Accepted

Working with expressions inside variables in QGIS

Interesting question, as far as I know these variables can only be static string values. But you can pass these string values to eval() to evaluate as an expression. First store your @maptype variable ...
she_weeds's user avatar
  • 10.8k
2 votes
Accepted

QGIS atlas feature: Storing information from coverage layer in an atlas variable

There is no need to store the attributes of the coverage layer in an atlas variable, because a reference to the coverage feature of the current atlas page is stored in the @atlas_feature variable. So ...
Gabriel De Luca's user avatar
2 votes

QGIS print layout: Dynamic text with attributes from different layers with different geometry

Use this expression to calculate the mean value of the field value from layer points, but only for points features overlapping the current atlas feature: array_mean (overlay_intersects ('points',"...
Babel's user avatar
  • 67.2k
0 votes
Accepted

Dynamically filtering feature count in QGIS Atlas, Legend

Use the following expression. Delete your expression from the header, but insert it directly to the legend of the categorised entries if you want to create the number of feautures dynamically in the ...
Babel's user avatar
  • 67.2k
0 votes
Accepted

Write QgsPrintLayout content into docx file with pyqgis

in the end I used the library "python-docx". I managed to create and fill text areas and tables. However, I did not have time to try loading images in the docx.
theonewhodidnotknow's user avatar

Top 50 recent answers are included