Questions tagged [print-composer]

Print composer provides growing layout and printing capabilities in QGIS.

Filter by
Sorted by
Tagged with
2
votes
0answers
15 views

QGIS: search and replace in print composer

I made a print layout with servales pages with the QGIS print composer and added some text to the layout, like the project name etc. Is there a fast way to change the project name in all pages? Like a ...
0
votes
0answers
12 views

PyQGIS: Export Print Layout as vector file

I'm writing a program that generates a map in layout but when I export the map (layout) as a pdf, it becomes a raster and the quality is quite bad. The command that I'm using to export the map is: ...
1
vote
1answer
47 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 ...
1
vote
0answers
14 views

Increasing size of legend symbols in QGIS3.12.2 print layout

I have pixels with a fixed size on the map, as they have a certain resolution. Now in the legend of the print layout the symbols have the same size as the pixels on the map. I want to increase the ...
1
vote
1answer
14 views

QGIS Layout: Making a map frame in a certain scale bar style with world coordinates of the map (view) extent

Currently I am making some layouts for my some templates we are going to use. We would also like to have a certain border "frame" on to make the coordinate grid clear. The frame is supposed ...
1
vote
1answer
27 views

PyQGIS: Inserting a logo image in the layout [closed]

I have a big logo image (1443 x 1453) that needs to be imported and added to the print layout. The image should be resized (to about 15% of its original size) and placed at a specific location in the ...
-1
votes
0answers
17 views

Adding the layer to Map Composer in QGIS without enabling layer in Canvas using PyQGIS [duplicate]

I am trying to add layer to Map Composer without enabling them into canvas using PyQGIS .Is there any way to achieve this using PyQGIS.
1
vote
1answer
20 views

Split and export quadrant of a big map

I'm quite new to Python and QGis (and to pyQgis), but I guess what I want to do is quite standard. I have a very big map, made of many layers, and a fishnet overlaying it. I would like to clip and ...
1
vote
2answers
70 views

How to add shape file directly to the print composer/Layout view in QGIS?

We can easily add the map from map canvas to print composer but is there any possible way to add vector layer directly to the print composer in QGIS either by PyQGIS script or by using some plugin or ...
1
vote
0answers
38 views

QGIS Print Layout Grid Reference Numeric Format

Using QGIS3.14 The default style of grid labels is single size digits, e.g. 251000E and 5897000N. I wish to show the grid labels in a format similar to Ordnance Survey with the 51 of the easting and ...
3
votes
1answer
50 views

Using expressions in generic QGIS Print Layout inserted tables

I would like to use expressions in tables added in QGIS Print Layout using the Add Fixed Table option, as shown in the screenshot attached the expressions are instead displayed as regular text in the ...
1
vote
1answer
42 views

Inserting attribute value in Print Composer into label based on spatial relationship

I have this print layout in QGIS print composer/atlas in which I only have one layer being shown: land parcels. I am interested in having a label that will show what is the attribute of another layer ...
6
votes
1answer
529 views

Styling currently used feature of the Coverage layer of Atlas

I am looking for a way to define a different style just for the currently used feature of the Coverage layer of Atlas. The image below will hopefully make it clearer: the left side is how my ...
1
vote
1answer
41 views

QGIS Legend - distribution of items across columns - recurring problem

This question relates to a previous question I posted four years ago: QGIS Legend - distribution of items across columns I've created a map and in print composer I've added a legend with ten items, ...
0
votes
1answer
34 views

QGIS Layout: How to group items?

At 3.12.3, I need to group the two items highlighted in this screenshot: According to the QGIS documentation: "To create a group of items, select more than one and press the Group button..."...
0
votes
1answer
21 views

QGIS generate maps of several variables

I have a map. I have external data that I can join to the map by name of the feature. The data contains several variables, say abc, def, xyz1, xyz2 and xyz3. I can display a variable by selecting it ...
0
votes
0answers
14 views

pyqgis3 raster extent in print composer

hello i want to use pyqgis3 to create a simple map composer with raster. my problem is in my code is the raster Extent in map,this code snippet does not show me the whole raster(full extent) but a ...
1
vote
1answer
19 views

How can I set the default layout export resolution in pyQgis?

I want to change the default export resolution (default value = 300 dpi) programatically when I open the layout designer l = QgsPrintLayout(project) l.initializeDefaults() l.setUnits(QgsUnitTypes....
0
votes
0answers
14 views

Legend in map atlas anchored to bottom left or bottom right will not correctly reposition in PDF

I submitted this as a bug but I'd like to know if anyone here has experienced or has a solution. In a map atlas, if I anchor a legend to either the bottom left of bottom right and if the legend is set ...
0
votes
1answer
30 views

Could a QGIS plug-in conceivably save and restore the main-window geometry of any project?

With respect to this: Restoring the exact original situation of a spatial bookmark? and this: How to Resize the Qgis Main Window from python Q. Could a plug-in conceivably save the current state of ...
0
votes
2answers
53 views

QGIS 3.10: Project and Layer have Proj. Coord. System, why is layer tilted?

[OP edited to change tense and to show correct steps, in italics] QGIS 3.10, Ubuntu 18.04 I was questioning why my map displayed at a +10 degree rotation, but displayed unrotated in the Print Layout. ...
0
votes
1answer
42 views

Printing Layout legend feature count using QGIS

In the legend below I have included the feature counts on a polyline layer with a basic categorised style. However, I would like to get rid of the total count in the layer title (highlighted in yellow)...
1
vote
1answer
56 views

How to defined the displayed layers in the legend with PyQGIS

I am creating a processing tool where I temporarily load layers in TOC and a layout template and then export the map into an image. Even though I want to have 2 layers on the map, I only want to have ...
1
vote
1answer
71 views

Add halo to label in QGIS print composer with a specific font (using HTML)

I am using HTML code to buffer a label in QGIS Print Composer, as described in Question 84324. Sadly, this code also changes the font and I can´t change it back using the font size dialog. I´m not ...
0
votes
1answer
65 views

How to count legend items in QGIS print composer

Is there a way to count legend items displayed in the print composer ? I would like to adjust by expression the number of columns of my legend based on the number of legend items. Example : if there ...
0
votes
1answer
37 views

Adding different strings to legend title in QGIS layer composer depending on which layer is active

My QGIS project includes three layers representing catchment areas for playgrounds. Depending on the age of the children, the catchment areas are either 200 m (catch_area_200m.shp), 400 m (...
1
vote
1answer
51 views

How to draw polylines and polygons on layout using PyQGIS [closed]

I've been searching some example about how to draw polylines and polygons on the map composer using PyQGIS, but I couldn't find anything. Could someone show me some code to learn?
3
votes
2answers
66 views

Layout changes when exporting in QGIS

When I export to PDF or SVG, the layout changes and doesn't look the same as in QGIS. How do I get it right when exporting? How it looks in qgis and how it should be: When exporting to PDF: And ...
1
vote
0answers
21 views

Rotate a table but not the text in a QGIS Layout

I'm working in a QGIS Layout and I have an special requirement: I have to rotate a table but I need that the text remains horizontal. When I check the rotation settings, the "Expression" option just ...
0
votes
3answers
80 views

Adding image to the QGIS print composer (path in layer as attribute)

My layer "users_print_view" contains image path. I would like to display this as image in print composer. I can copy path and "Adds a new picture to the layout" and paste it but I would like it to be ...
0
votes
1answer
46 views

pyqgis3 atlas feature scale

i was create a simple export code using pyqgis3 and atlas print composer map layout on QGIS3. my question is about map scale. if i use this line : mapScale = map.scale() i take the scale from map ...
2
votes
2answers
41 views

QGIS 3.12 print composer - how to rotate map but keep grid unrotated?

I am creating a map using QGIS 3.12 and wish to rotate the map and add a grid using print composer, but I want to keep the grid unrotated. Is this possible or does the grid only rotate with the map?
1
vote
0answers
23 views

QGIS 3.4.11: Labels disapear from map when exporting as picture from the print composer

My question is basicly how to solve the issue mentioned in the topic. I have a map, where labels (city names) are visible both in the project and in the print composer. But when I export the map as a ...
1
vote
1answer
141 views

QGIS Legend Item - Expression Labels

I am trying to use the expression editor on the legend item in the layout manager. My layer has the attributes of RU_NAME which is the geological unit and LITH_SUMM which is the description. ...
0
votes
2answers
43 views

Turn layers on off in QGIS atlas

I want show different imagery backgrounds in a QGIS atlas based on which one is better. I have the following highlighted imagery layers In the dataset used for the atlas I have How do I set up the ...
1
vote
1answer
29 views

Defining atlas feature margin using PyQGIS3

I want to create a simple atlas composer map using PyQGIS3. My question is about atlas feature scale. I want to use this settings from image. I know this select option but I don't know how to add ...
2
votes
0answers
38 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 ...
3
votes
1answer
97 views

Need to Set the Map in Layout to fit completely to a layer in QGIS

So, I know that there is the "Set to map canvas extend" but it just doesn't do the job for me. I used ArcGIS more than QGIS so I am having issues accomodating to the map layout options in QGIS. I want ...
1
vote
1answer
49 views

PyQGIS composer add picture by layer path field

I want to create a atlas composer map using PyQGIS3. How can I take dynamic path by field from atlas layer? In PyQGIS3 I need some like this : pict = QgsLayoutItemPicture(layout) pict.setPicturePath(...
0
votes
0answers
15 views

Using print layout

I am trying to use print layout to export a map but the map appears completely crooked on the layout. See illustrations. I don't know how to restore the same look and feel of the map as shown on the ...
3
votes
1answer
75 views

Feature index for atlas

I am working on an atlas project in qgis 3 that is basically roads, towns, and other features for a quite large area. What I would like to add, is an index of all the towns in the atlas area with at ...
1
vote
1answer
44 views

Moving between pages in QGIS Print Composer

I'm using QGIS 3.6 Print Composer, and I managed to create a layout with two pages. I now want to delete page 1. How do I move from page 2 to page 1 so I can delete it?
8
votes
2answers
242 views

Clickable label (HTML, Link) in PDF export (QGIS)

I need to export a (GEO)PDF - overview map with bounding boxes - with clickable links in every bounding box. I tried to simply export a PDF with html-links as text labels, but as you can see in the ...
3
votes
0answers
54 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) ...
1
vote
0answers
40 views

Map output with multiple “Zoom Levels” in QGIS 3 [duplicate]

Just wondered if it is possible to do BBC-style multiple "Zoom Levels" output in QGIS 3 like this: I used to use another app such as Adobe Illustrator to overlay the maps of different scales. ...
2
votes
1answer
65 views

Conditional formatting with color and icon for table in print layout

I used the conditional formatting option in the attribute table (figure 01) in QGIS 3.12. I created a layout with the map and the attributes table (figure 02). With the option “apply layer ...
3
votes
0answers
24 views

Color scale legend in QGIS [duplicate]

I have been trying for hours to add a color scale to my vector layer in order to avoid showing all those boxes in my legend. But I don't find any solution. I tried the Geoproc plugin without success,...
0
votes
0answers
22 views

Changing default settings for Arrow Item in print layout of QGIS 3.10

I am using the print layout of QGIS 3.10 to make maps and some reports. I frequently use the Arrow Layout Item. I need to change the default values for the Arrow Stroke Color, Arrow Stroke Width, ...
2
votes
0answers
47 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%]....

1
2 3 4 5
22