Questions tagged [print-composer]

Print composer provides growing layout and printing capabilities in QGIS.

286 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
1answer
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, ...
5
votes
0answers
666 views

Creating text buffer in legend QGIS 2.18?

I work with this polygon layer and this is my map composer: I used the labels with Text Buffer (yellow and red), and I try to find how I can make the same text buffer in the layer name in the legend. ...
5
votes
0answers
127 views

Issues with atlas generator and labelling across maps/images

I have a lot of layers in my project and I am trying to use the atlas generator in the print composer to create a tiled map. Some of the layers have labels which have different configurations with ...
5
votes
0answers
565 views

PDF looks different from print composer

When I create a map in print composer the map looks exactly how I want it, but when I save it as a PDF some of the sympbols have changed. Note the roads are still visible in the PDF but some have ...
5
votes
0answers
840 views

Programmatically removing layer from QGIS composer legend without removing it from map canvas?

I am working on a QGIS Python plugin which includes automated map production. I use a series of map templates, each of which has a main map, an overview map (with a layer set different to the main ...
5
votes
0answers
905 views

Print Composer Template produces empty map?

I have a print composer template which I'm trying to populate with different subset queries from a CSV-derived vector layer using the Python API. However, all the output PDFs contain everything except ...
4
votes
1answer
55 views

QGIS HTML labels only for objects visible on map

I'm printing QR-code that is generated on the fly in QGIS Print Composer. The URL to get the QR-code ist stored in a PostgreSQL database in the attribute-field "url". <img src = "[% &...
4
votes
0answers
108 views

QGIS Layout: Expressing name of the map theme in a label

I am looking for the exact expression/code to make sure I can express the name of the map theme in label in my QGIS layout manager. The reason why is because I have a template with some variables that ...
4
votes
0answers
139 views

Showing labels as they will be printed/exported in my print layout?

I set up a print layout for a map I want to print in QGIS. Some of my layers have labels on them. When I zoom in and out in the screen, without changing anything else on the print layout, some labels ...
4
votes
0answers
615 views

Exporting QGIS Atlas using PyQGIS (qgis.core)

Windows 10, PyCharm, QGIS 3.10 installed via osgeo4w (64bit). I set up a simple QGIS composer layout with a vector layer and a WMS base map on the map layout. The vector layer contains about 10 ...
4
votes
0answers
245 views

Styling the legend in QGIS with line layer

Working on QGIS 3.4.13. I have a vector line layer, there are rivers. I put a rule based symbology with two categories and different scale max / min for each category. I want to put style for the ...
4
votes
0answers
79 views

Do the elements in Print Composer have any identifiers in QGIS 2.18.14?

In QGIS 2:18:14, it is possible to refer to elements in the Print Composer? How do I name and identify an element in another element? E.g., on a label, call the contents of another label and use its ...
4
votes
0answers
521 views

Different scale of basemap after exporting to PDF/Image

After creating and exporting my map to pdf/tif obviously there are different scales of the basemap in the exported file compared to the map I created in the printcomposer. See pictures... I am using ...
4
votes
0answers
306 views

Launch Atlas composer generation from command line

I am using QGIS 2.2 and have configured a composer with atlas generation. I would like to launch this atlas generation every day. The idea is to write a batch and launch it with a cron. Is it ...
4
votes
0answers
521 views

How to sort legend values efficiently in QGIS print composer?

Using QGIS 2.0, I have a vertical color legend for raster values, created in the print composer. I want the values sorted in descending order from top to bottom, which appears to be the reverse of the ...
3
votes
0answers
67 views

Numeric scalebars don't (always) update when changing the map's extent in QGIS

If you change your map's extent but maintain the scale in a QGIS Layout, the scalebar's width will be updated proportionally with the CRS's distortion for the new extent. E.g. if your map (crs 3857) ...
3
votes
0answers
104 views

How to solve this problem with proportional size data in qgis print composer

I would like to export a map with proportional circle representation for the number of inhabitant of each city. I've used the assistant size of QGIS and created a proportional legend within qgis ...
3
votes
0answers
56 views

Different distance when using “Measure Line” tool and manually with scale in QGIS 3

Using QGIS's "Measure Line" tool I get a distance of 1.22km between two points. But if I use the scale indicated at the bottom of the screen, 1:50000, and measure with a ruler, the distance is 2.5km (...
3
votes
0answers
114 views

Changing legend spacing to be further away from map border in QGIS?

I am using QGIS 3.2.3 I am creating a map in which I have added a legend to (see figure below). My issue is that I am trying to create a legend which has spacing between the two columns. I have ...
3
votes
0answers
177 views

How to add Projection name, Ellipsoid, and Datum in QGIS 3 layouts

I am trying to add the map CRS information to text boxes in a layout in QGIS 3 automatically so if the project crs changes the text in the map will also change. I can add the EPSG code to a text ...
3
votes
0answers
44 views

Remember Save location for image created in composer?

QGIS remembers the last saved location for the image that was last created. Is it possible to change a setting so that this last saved location is remembered per QGIS project file?
3
votes
0answers
357 views

Duplicate a print composer item

Is it possible to duplicate an item in the print composer? I have two maps, and I'd like to add an attribute table to each map. It took me quite a while to set up the attribute table for the first ...
3
votes
0answers
138 views

QGIS clip grid frame to shape?

I am working in QGIS and would like the grid frame to align with the edges of my conic projection region. Is there a way to do this? In arc it is very straightforward but I have yet to find a method ...
3
votes
0answers
229 views

Setting compression method when exporting composer from QGIS to PDF

I see that export of the composer to PDF in QGIS uses JPEG compression by deafult (my estimate maybe 75-80%, which is not good enough for my maps). Where can I change this? Can I set somewhere ...
3
votes
0answers
418 views

Print Composer Atlas multiple feature select in one page

I am trying to select multiple features on Print Composer in QGIS 2.18 (Las Palmas) in the atlas filter: for instance, I have one layer whose atributte "name"=2 has 4 features as a result; the ...
3
votes
0answers
158 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 ...
3
votes
0answers
117 views

QGIS Print Composer Legend: Polygon symbol not closed

The legend of my map doesnt't match the symbology of my polygon layer, the polygons are not closed. Here a screenshot of the layer windows: And here one of the legend from the print composer: If I ...
3
votes
0answers
491 views

Rotate map in print composer does not work with QuickMapServices plugin

I was very excited when I figured out that printing as pdf was actually possible with the plugin QuickMapServices after a lot of trying and pain with the old OpenLayers Plugin. However, if I try to ...
3
votes
0answers
168 views

Append dynamic stats on attribute table in QGIS Composer

I have an attribute table containing records like Town, inhabitants, N° male, N° Female like this: When I compose a map in QGIS I use "Show only visible feature" command resulting in a view with only ...
3
votes
0answers
692 views

Can the qgis print composer memory limitation be overridden?

I'm trying to export large images from the QGIS 2.16.3 print composer. As far as I can tell, whenever the calculation of dpi and export size exceeds ~1615MB, QGIS will show the message: "Trying to ...
3
votes
0answers
147 views

How to keep basemap high res detail when printing large resolution in QGIS?

I need to print a map with a0 resolution and I need it zoomed over a large area. Problem when zooming out is that the basemap also gets zoomed out and loses labels and important details. Basemap is ...
3
votes
0answers
55 views

Joined table fields don't work in print composer?

I am trying to use the attributes of the current atlas feature, which is from a joined table. In the expression builder it shows the correct value, but the result is blank when I actually try to ...
3
votes
0answers
147 views

Large File Sizes and Print Composer not printing

I have been working on a heavily detailed map using qgis for the last two years. I am runnig QGIS Essen 2.14.1 on a windows 7 home premium 64 bit with 4gb ram. The file size of the map is around 150mb....
3
votes
0answers
203 views

Set minimum scale on QGis Print composer (atlas)

I have a template ready to be printed on Print composer tool of Qgis. I need to fix a minimum scale while figures are represented one by one (1:10000) I would like to combine the scale tool controled ...
3
votes
0answers
133 views

How to set more than one font sizes for a legend item in a QGIS?

I am looking for a possibility to set a second font size for one legend item in QGIS (2.8.1) Printcomposer. For every item (name of a plant) I need a smaler expression in brackets (name in latin). Is ...
3
votes
0answers
298 views

QGIS 2.8 PrintComposer, no coordinates shown

I tested under MacOS 10.10.3 and 10.9.5 now: In the QGIS v2.8 Print Composer I don´t get coordinates shown when I want to create a map sheet and activate "Draw coordinates". I can do all settings ...
2
votes
0answers
36 views

Exporting many rasters as .png maps

I'm not used to QGIS, and I'm working on a project that involves hundreds of .tiff rasters (interpolations) of attributes of the same place. (the rasters are not really related by time) In order to ...
2
votes
1answer
36 views

Apply expression to synchronize multiple map extents in QGIS 3 layout using PyQGIS

I am using the following code to make a map with multiple map items. I would like to add the synchronization of the maps extents. How do you apply an expression to the min/max extents of a map item on ...
2
votes
0answers
25 views

QGIS Composer - Read entered textbox value in another textbox

I'm Limited to QGIS 2.18 composer for several reasons. I have two textboxes. BOX1 - User INPUT value, where user enters an integer value. BOX2 needs to read this value to be able to calculate results. ...
2
votes
0answers
39 views

Why is the pdf output of my QGIS map different from the one I see in the Print Composer?

I'm working on a map of migrant deaths and missings in and around the Medditerranean Sea. It includes a legend. When I work in the print composer mode, the legend seems to be looking fine. Here it is: ...
2
votes
0answers
55 views

Remove a raster from the composer legend, but display it on the map

I'm working with PyQGIS in QGIS 3.10. I'm trying to remove a layer from the composer legend if it is a raster (but I want to see the raster on the map). This is my code: for i in self.newLayout.items()...
2
votes
0answers
111 views

Cannot change legend shape in print layout of QGIS

I am using QGIS 3.x. I would like to customize the legend in my print layout. Unfortunately I am quite restricted, as I can't change my shape appearance. According to the link below: https://docs.qgis....
2
votes
0answers
30 views

QGIS Layout: Putting all your maps in your layouts on one favorite location at once

Currently I am making a project template that is meant to have a lot of map layouts. Potentialy this will lead to more than 30 maps that can be created (not all will be used) but they are focused on ...
2
votes
0answers
51 views

QGIS: attribute table in print-composer, format numbers and sort according to same field

In the print layout of QGIS (I use 3.12.2 on Win) you can add an attribute table. I have a list of towns I want to display ordered according to their size (population). That's quite easy: in the ...
2
votes
0answers
91 views

Printing layer name using label element in Print Composer in QGIS 3.12?

I'm trying to print the layer name using a label in print composer in QGIS 3.12. It's not responding to layer_property(@layer_id, 'name'), or [%layer_property( @layer_id, 'name')%] or [%@layer_name%]....
2
votes
1answer
72 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 ...
2
votes
0answers
161 views

Atlas export using Python: AttributeError: 'NoneType' object has no attribute 'atlas'

I'm trying to export my atlas layout named "Atlas_png", but are getting the error: AttributeError: 'NoneType' object has no attribute 'atlas' (line 27). I have tried to use this examples: Exporting ...
2
votes
0answers
22 views

How do you link QGIS legends in different print composers?

I have a long linear QGIS project with about 20 separate print composer layouts. I'd like to link each legend to the original one, so I don't have to copy and paste 20 times every time I need to ...

1
2 3 4 5 6