Questions tagged [print-composer]

Print composer provides growing layout and printing capabilities in QGIS.

Filter by
Sorted by
Tagged with
2
votes
2answers
144 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
173 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..."...
2
votes
1answer
30 views

Generating 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 ...
2
votes
1answer
53 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
18 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
44 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
93 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. ...
1
vote
1answer
127 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)...
3
votes
1answer
157 views

Defining the layers to be displayed 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
319 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
214 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 ...
1
vote
1answer
57 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
195 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
115 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
43 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
322 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 ...
1
vote
1answer
62 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
56 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
25 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 ...
2
votes
1answer
548 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
78 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
36 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
65 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 ...
4
votes
1answer
446 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 ...
4
votes
1answer
127 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
16 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
97 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 ...
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
73 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
543 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
73 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
49 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
269 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
26 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,...
1
vote
0answers
27 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
112 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%]....
4
votes
1answer
162 views

Including print size of my layout in label in QGIS?

I want to include the print size of my layout (e.g. "A3") as part of a label on the map, how can I write an expression to capture this information automatically? I am using QGIS 3.12.
3
votes
1answer
219 views

Automatic file name for composer exports

I have to produce pdf maps everyday (corvid-19 stuff) for my organisation and want to create the file name based on the composer name preceeded by the current date. The name of the composer is the ...
1
vote
1answer
55 views

Report with relations

I collected field data containing general information about signpost sites (location, altitude, image) and specific information of the particular signs mounted to the singpost (image, direction). One ...
0
votes
0answers
38 views

QGIS how can I create a legend with only one set of categories (in common) and two different set of symbols?

In QGIS I would like to create a legend with two sets of symbols (for the two overlapping layers which are shown in the map) sharing the same categories. Something like that: Is there a way to do it ...
0
votes
0answers
161 views

QGIS- Problem with saving from Layout Manger - Map area is blacked out when saved

I have been composing a number of layout from a project in QGIS. These have all exported with no issue. But today I have encountered a problem when exporting as an image, pdf and SVG that I can not ...
0
votes
1answer
128 views

Getting field value in Print composer label

I am using QGIS print composer. I have so many images to export with a specific label. The text of the label is existing in a field of a layer. I have tried to use this expression attribute( ...
1
vote
0answers
40 views

Create one PDF map of large extent from serval 1:50000 scale sections in QGIS

I am trying to produce a single PDF map that shows an entire property via several 1:50,000 scale maps stitched together. The scale is important to show the labelled information correctly within my ...
0
votes
0answers
30 views

Print Username in print composer of QGIS

Is it possible to use any expression to get the username of machine/computer and path of project while printing the documents in print composer of QGIS.
1
vote
1answer
39 views

Change/Hide the pen width for line shape file based on rule in QGIS

I have line shapefile, in which I have a condition to display line's width based on a rule as shown in the image below. But in this case I was not able to define line width to 0, it is taking hairline ...
3
votes
1answer
78 views

QGIS not including complete symbology when exporting from print composer to PDF

I have a vector layer that is displayed with both cross-hatching and a border. When I export to PDF, only part of the symbology is exported - the cross-hatching shows up without the border. It shows ...
1
vote
1answer
85 views

Moving map extent by x millimeters to left or right in QGIS Print Composer

I have a layout with a map item and want to move the map itself (the extent, not the item) 5mm to the right. I am using a coverage layer with atlas. The atlas margin does not help since it's % and ...
0
votes
1answer
57 views

QGIS 3.10 Page settings won't except changes of page size A3

What can I do to change the page layout to A3 under QGIS FreeBSD 12 . The settings for layout_page_width/ layout_page_height are not enabled for editing, and page settings to A3 for from the printer ...
1
vote
0answers
33 views

QGIS print composer WGS'84 grid, distance between gridlines

I am trying to make an nautical chart in the QGIS print composer. I have trouble getting the distance between my gridlines right. I need them to be a distance of whole minutes between. Now for some ...

1 2 3
4
5
25