Questions tagged [print-composer]

Print composer provides growing layout and printing capabilities in QGIS.

Filter by
Sorted by
Tagged with
4
votes
1answer
30 views

Vertically align the labels in QGIS legends

In QGIS 3.18 (and older versions) I noticed that the first item in a multi-column legend isn't aligned with the items in other columns. I have played with the settings in the Spacing column but can't ...
1
vote
0answers
16 views

Aggregating Virtual Fields in the QGIS Layout

I have an atlas creating maps of parks. These parks contain different areas with different types of surfaces, which need to be managed differently. In my map-layout I'd like to summarise the area of ...
1
vote
1answer
38 views

Is there any way to get QGIS Decorations passed through to prints or layouts or QGIS2Web?

I can't see any way to have the QGIS decorations that are available to the desktop passed on to any outputs! The don't show up in layouts. They don't export to html via QGIS2web. (except the scalebar!...
7
votes
1answer
72 views

Line pattern fill missing when exporting as SVG in QGIS Print Layout

When exporting from Print Layout as a .svg-file in QGIS the line fill pattern disappears of all polygons. How can I stop this happening? The problem doesn't occur when exporting as an image file or ...
3
votes
2answers
85 views

How to turn off QGIS legend band number by default?

QGIS automatically generates legends for single band rasters in the print composer legend window. In the latest releases, it appears that the legend automatically creates a "Band" title in ...
2
votes
1answer
31 views

Print out centroid coordinates of a polygon in layout text box

I wanted to put the coordinates of the centre of a polygon in a text box in the print composer. When I run the expression in the labelling panel on the canvas it works, like below However, when I run ...
2
votes
0answers
38 views

QGIS 3.18.2 Print Composer/Layout map legend vanishes/goes blank when layer/theme is changed

Using the print composer/layout in QGIS 3.18.2 I have the following problem ... Starting point: I had a print layout set up with a map and legend. The map layers were set by 4 themes. The layout used ...
1
vote
1answer
28 views

Plugin to extract print layouts layer by layer

I need a plugin that lets me extract all the layers i have active in the file one by one as a print layout. So when i activate the plugin it automatically gives me png files of every layer separately ...
2
votes
1answer
32 views

I would like to sum the total area of my attribute table to reflect in the print setup [duplicate]

I have the following attribute table and I wish to show the total area in hectares seperate to my attribute table on the print setup. I currently have to add these values manually. Is there a way to ...
3
votes
1answer
25 views

Get size of a QgsLayoutItemPage in PyQGIS

I work on QGIS plugin in python, in my plugin I load several print layout in a project print layout manager. These print layouts are either A4 or A3. I would like to get the size value (A4 or A3) of ...
0
votes
0answers
27 views

How to filter multiples features on QGIS Atlas?

I trying to create an atlas with two different features, but want to show were both have with the same field "ROTA". I'm trying to use @atlas_featureid = $id on layer 'SetasRotas_dissolve'(line ...
1
vote
1answer
36 views

Use attribute of all filtered features of one layer as label in the Print composer

Is it possible to filter some features in one layer and use those filtered features as labels in the Print composer of another layer? I am trying to make an atlas. I have two layers, one which has the ...
1
vote
2answers
143 views

Getting the size of a QgsLayoutItem

I am facing a problem with the Layout API while implementing a plugin for QGIS 3. I created a layout template , which contains different elements like map, labels, legend and scale-bar. I'd like to ...
4
votes
2answers
90 views

Get a certain part of the project name in QGIS print composer label field?

E.g. my project is named XXXX_YY_PRZZZ. Is there a way for me to get only the ZZZ part for my label field? Maybe with @project_basename or some variables like that?
0
votes
2answers
50 views

Remove a legend entry if the layer is not in the composer map

I am working on a QGIS plugin in python. In this plugin I load two layers. These layers are polygons which represent administrative boundaries. My plugin load also several print layout in a Qgis ...
2
votes
0answers
33 views

Image size limitation in QGIS print layout using HTML code

I'm trying to make an atlas with QGIS, with one image per page. My goal is more complex so I have to use HTML widget in order to display the images. The below code works, but only if the picture is ...
2
votes
1answer
86 views

Categorized symbology with transparency including raster basemap?

I'd like to include the background map in legend symbols, rendered under transparent fill. For matters of better representation and easier orientation, it would be helpful if the symbols in the ...
6
votes
5answers
236 views

QGIS: How to invert the values in a layout legend?

At 3.16.3 I have added this legend to a map layout. Notice how the lowest value is at the top, with values increasing towards the bottom: I would like to instead have the lowest value at the bottom, ...
-1
votes
0answers
15 views

Remove a legend entry if the layer is not in the composer map PyQGIS [duplicate]

I am working on a QGIS plugin in python. In this plugin I load two layers. These layers are polygons which represent administrative boundaries. My plugin load also several print layout in a Qgis ...
3
votes
1answer
63 views

QGIS 3.18.1 Print layout grids are incorrect, cannot show them in DMS format

Normally, in ArcMap Print layout, enabling the grids and specifying the intervals would show the curved grids as in the following map: But in QGIS, enabling the grids (1) does not have an option of ...
2
votes
1answer
47 views

Adapt attribute table QGIS legend from bottom

I have an attribute table controlled by Atlas on map composer from QGIS. I need to adapt the table for each map and its features but from bottom. In other words, I need to make grow the table from ...
0
votes
1answer
25 views

Show multiple layers in a QGIS Atlas using 'Lock layers' with an attribute field

I'm wondering if it is possible to use an attribute field in a QGIS Atlas coverage layer to show multiple map layers. I know this is possible with one layer by having the layer's name in the attribute ...
3
votes
1answer
165 views

Legend and Attribute Table change throughout map composer

I'm using QGIS 2.18.3 (Las Palmas) For a project I have about 15 maps with the same extent, where each map displays a different attribute. I have followed Automating Atlas to create maps for all ...
1
vote
1answer
43 views

Filter QGIS layout legend item style by expression for min, max, median values

Summary: In the [print] Layout Composer in QGIS 3.18.1 I am trying to filter the legend styles displayed for an item that is a polygon layer styled by the "categorised renderer" by the min, ...
1
vote
1answer
47 views

QGIS3 - Simple automation of QGIS output - turn values on/off & print out dozens of maps

I need to make a series of maps of a single location and make a single map for each value in the layer. I have a layout I've created with borders, texts, north arrow, and everything, with the map, and ...
5
votes
1answer
43 views

Frame and coordinates disappear when printing in QGIS

I'm trying to print my map in QGIS 3.18.0 including a zebra frame. It looks great in the Print layout but when I print it, the zebra frame and coordinates are not there. Is there a setting or ...
1
vote
1answer
34 views

QGIS Layout: Filter Nth Row in Attribute Table

I have an attribute table in a Qgis Layout and only want to see the first line. Can I do that? It's a workaround for overlapping labels. I want an attribute table with the 1. Line, then a table with ...
2
votes
2answers
44 views

Remove LayoutItemLegend entry PyQGIS

I work on QGIS Plugin in python. This plugin load several Print layout in a QGIS project. These print layout contain a legend. I would like to be able to remove a layer from the composer legend ...
1
vote
1answer
71 views

Automating Print layout with export map canvas as image using PyQGIS

I would like to automate two steps in my QGIS Print Layout by using PyQGIS I have my print layout already created, and I was trying to open it by this code: composerTitle = 'Strand3' project = ...
14
votes
3answers
1k views

How to determine neighbouring tile ids in QGIS?

I was asked in a recent training course if QGIS could automatically calculate the next/previous and above/below page numbers for a map book created using the atlas generator. I managed to work out a ...
2
votes
1answer
51 views

QGIS print layout - map refresh not working

I would like to synchronize my QGIS map with the printing layout map. According to the tutorial here: https://docs.qgis.org/3.4/en/docs/training_manual/map_composer/map_composer.html I can refresh my ...
4
votes
1answer
9k views

Adding lon/lat grid on map in QGIS 3.0?

I am working through this tutorial that I think was intended for 2.8x - https://www.qgistutorials.com/en/docs/making_a_map.html Step 24 advises on how to add a grid on a map in Layout view. But ...
2
votes
1answer
39 views

Set extent of Layout Item Map

I work on a QGIS Plugin in python. This plugin import in QGIS project several print layout (A4/A3/Landscape/Portait format) from a directoty of my laptop to the layout manager. The plugin add also a ...
3
votes
1answer
122 views

cropToContents not working properly in PyQGIS

I have a template qpt which I read via pyqgis script to export multiple maps as png. I have a map and a legend in qpt file and I chose "Only show items inside linked map" so the legend shows ...
2
votes
2answers
490 views

Print Multiple PDFs Using Different Layers Using a QGIS 3.0 Layout

I have an open QGIS 3.0 project with a layout called "plan_view1". There are numerous selected layers (>100) that I want to turn on one-by-one and print the "plan_view1" layout ...
0
votes
1answer
45 views

How to copy a legend in QGIS map layout?

I am creating a map where I have many legend items. Initially, I divided them into two columns but now I want to separate them. When they were together I have customised font size, style etc. I can ...
1
vote
1answer
66 views

Print Composer: Finder window disappearing when pressing save button?

I recently updated to 2.6.1 (using mac OS 10.10.1). When I'm in print composer, and I try to save my map (or open a new file, or do anything that brings up a finder window), the window disappears ...
0
votes
1answer
26 views

Print Composer does not show Item Options

I'm rather new to QGIS, the version I have is 3.16. I want to create a print layout, but when I open the Print Composer panel the "Item Options" window is empty. No way to choose the size of ...
2
votes
1answer
512 views

Making long labels visible in a legend

How do I handle map legend with tens of classes using QGIS? I searched for instructional videos and previous post relating to the question but could not find any helpful material. The legend text in ...
0
votes
2answers
26 views

Checking layout for compatibility with b/w printing in ArcGIS Pro

I often have to produce paper maps that would likely later be printed in black and white, is there a way in ArcGIS Pro to apply a visual filter on a map to see how (approximately) the print layout ...
9
votes
2answers
2k views

Editing Layout-Items after loading a QPT-Template in QGIS 3 with Python

I am facing a problem with the new Layout API while implementing a plugin for QGIS 3. Starting point is a layout template in qpt-Format, which contains different elements like (attribute) tables, map, ...
2
votes
1answer
89 views

Wrapping legend text in QGIS MapComposer at character count

I want to wrap legend text after a certain amount of characters. Is there an automatic way to do that? I don't want to enter a character (e.g. *) for each line as described in this post, that is too ...
2
votes
2answers
48 views

How to bring feature selection into print composer

I have a PostGIS multipolygon layer in the map view and want to bring the feature selection into the print composer. Also, only the label for the selected feature should be visible in the map I want ...
1
vote
0answers
47 views

How to update attribute table layout in QGIS Print Composer?

I have selected some columns from attribute table in print composer linked to layer A. But when I open my layout in another project with that same layer A, it doesn't refresh/update and I have to ...
0
votes
1answer
175 views

QGIS 3.18 Override raster gradient legends

In the new QGIS 3.18 (Zurich), raster color ramps automatically show up in the print layout as gradient legends! This is great, but I am trying to match some old maps to new maps for a publication and ...
3
votes
1answer
60 views

Calling a Python function for each page in an atlas

I have made a script to do some calculations for each page of a QGIS atlas (QGIS Atlas with insert map) The script is adjusting the bounding box of a map on the layout page. To make it run for each ...
0
votes
0answers
23 views

PyQGIS3 Layout : item position relative to another item size

I created an atlas layout with a map, an attribute table, and a label. I would like to make the y position of the label move according to the size of the attribute table on each atlas page. The code ...
1
vote
0answers
66 views

PyQGIS Print Composer not exporting raster layer successfully (CRS in correct format)

I have a Python script that runs and creates statistics using zonal statistics sum tool. The python script adds each layer to the map successfully: # Add Base Map OSMBase = "....\\OSM_Base.xml&...
1
vote
1answer
65 views

How to show data defined centroid fill marker font in the legend?

I'm using QGIS 3.18.0 on Windows 10 (from OSGeo4W Network Installer). I have a polygon-shapefile with an attribute table including the attributes "signatur", "r", "g" and ...
0
votes
0answers
48 views

Scale Bar not appearing in meter-based CRS using QGIS

Students in my GIS class using QGIS 3.1 are having a problem that I can explain theoretically but not practically. Some students cannot get scale bars to appear in the map composer, even when bar ...

1
2 3 4 5
25