Questions tagged [print-composer]

Print composer provides growing layout and printing capabilities in QGIS.

Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

PyQGIS: Remove a legend item NOT the whole layer from the project

I have a number of vector layers and, occasionally, an image basemap. I am creating a layout programatically based on this data. I have a legend but I have zero want or need for the basemap raster ...
0 votes
1 answer
63 views

Creating an automatic page size inQGIS Print-Layout with a pre-defined scale

How can QGIS Print-Layout with a given scale (eg 1:50000) create an automatic page size and layout equal to the coverage of the selected map layers? I tried it in the page properties, it didn't help: ...
1 vote
1 answer
58 views

Drawing lat, lon grid over UTM project not working in QGIS 3.32

Goal I want to draw both an UTM coordinate grid as well as a geographic coordinates grid (lat, lon) on a map in the QGIS print layout window as shown here. Setup GeoTIFF layers with tfw files as .zip ...
0 votes
0 answers
68 views

QGIS Map white space issue

I am using GQIS for first time today. I finally got around to taking one of my Pix4d outputs and pulling into QGIS to get contours etc.. so I got it working ok.. My issue I have now is in the project ...
0 votes
0 answers
35 views

QGIS Crashes exporting from print layout

So im trying to export my map layout to PDF and no matter what options i select QGIS just closes without warning while it is supposedly exporting. Ive tried with PDF, IMG, TIFF and they all do the ...
7 votes
1 answer
576 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 ...
2 votes
2 answers
1k views

What is the dimension used in OpenLayers stroke width?

In OpenLayers, when you are giving a style to layer, say a WFS layer, we can give stroke width, like this: var layerWFS = new ol.layer.Vector({ source: sourceWFS, title: 'plot_layer', ...
3 votes
2 answers
4k views

Map is not shown in Print Composer or in PDF (QGIS 2.18.3)

I already saw the other questions concerning the same problem, but after trying everything described in the answers there, I still have the problem that my saved print compositions do not show the ...
1 vote
0 answers
34 views

QGIS print layout: counting only exported pages

I build an atlas layout containing an attribute table that is spanned over several pages. The attribute table of course is of various length due to the number of objects enlisted. So I set up 10 dummy ...
0 votes
1 answer
26 views

QGIS 3.32 - Composer - display pdf image and export as vector

I need to display a complex vector image in the composer. QGIS doesn't display svg files correctly that way, is there a way to import a pdf via html, and export it as a "true" vector image, ...
6 votes
1 answer
934 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 ...
0 votes
0 answers
17 views

How to show Only rows 95-100 of column in expressions editor in print compositor?

I have two columns: One for the name of regions (column a) and another with index values for the regions (column b). Now I want to show a List for the regions only row 95 to 100 in the print ...
0 votes
0 answers
31 views

Batch processing layouts with several shapefiles based on master layout

I'm trying to batch some layouts based on a master layout through the python console in QGIS. Basically, what I'm trying is to generate a layout like the one below and print a *.png of the layout. I ...
1 vote
1 answer
23 views

Grids displaying relative instead of global coordinates in QGIS

I have a set of three zoomed-in maps I need to plot grids for. They need to be in degrees, minutes, seconds and relative to the global standard. The grids I was able to plot all show relative ...
6 votes
3 answers
7k views

Creating a gradient-based legend

I have a map with graduated symbology, with 328 unique values. I would like to add a legend to my map (as in the picture), illustrating that light blue indicates low values and dark blue high values. ...
2 votes
2 answers
123 views

Hide layers in preview map in QGIS Print composer

I would like to hide some layers in that little preview map on the left bottom corner? See image. I would like to hide the city and country names as well as the airports-layer...
0 votes
0 answers
39 views

Composing Atlas with two different maps

I need to create 37 different maps with their location and a detailed view with others layers active (ie. points, lines, etc). To complete this task more efficiently, I thought it would be a good idea ...
4 votes
1 answer
218 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 ...
-1 votes
1 answer
63 views

Why are the coordinates at the grid not correct in QGIS print layout

UPDATE: Thank you for the answer with the Decimal values for the grid, that has already helped. But It still seems to be incorrect. Y=0 Is not aligned to Greenwich. See Image 3 at the bottom of the ...
2 votes
1 answer
452 views

How to duplicate Layout PyQt5 QGIS 3?

I want script in python3 with QGIS 3? For example: This code create a layout 2019_A4 and add Layout Manager. I need a code make same in QGIS3 using QgsLayoutManager with Methods duplicateLayout ...
1 vote
0 answers
50 views

Create curved grid lines in QGIS Map Composer

I would like to create a "traditional map" in QGIS that looks like this: So I would like to have a grid, that is bent/curved visible on the Map with the coordinate-degrees at the side. My ...
1 vote
0 answers
34 views

Enabling "Print as raster" option in QGIS Layout using PyQGIS [closed]

Can someone explain how to enable "Print as raster" option in layout properties using PyQGIS script. I wanted to switch on with my Python script.
11 votes
3 answers
2k views

Removing legend items with PyQGIS without removing the layer

I am trying to generate maps in PDF files by using a pre-defined .qgz layout. I am already able to load layers and adjust color scale, etc. Since the legend is synchronized with the map layers, all ...
2 votes
4 answers
3k views

Is it possible to set a reference scale in QGIS?

It's a little tricky to pick label and feature styles (line thickness, colours, etc) in the map canvas because they don't reflect what I would see in my print composer which is at a different scale ...
12 votes
3 answers
542 views

Modifying layer name in the layout legend with PyQGIS 3

I would like to update the legend item in my layout with other names. I tried the following code, which returns no error but layers name remain the same. project = QgsProject.instance() layout = ...
0 votes
0 answers
33 views

Wrong path distance in Print Composer's Elevation Profile in QGIS

I am trying to prepare a map for my hiking route. I have an elevation raster and the route in a shapefile. I am adding the Elevation Profile to my map layout, but the path's distance on the x-axis is ...
1 vote
0 answers
14 views

Updating Current map_start_time and map_end_time in QGIS

I'm experimenting with the temporal controller in QGIS in map layouts I want to current time frame (see below) To update the map_start_time and map_end_time in the variable section in the layout menu ...
0 votes
1 answer
208 views

QGIS 3.10 Page settings won't accept 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
1 answer
161 views

Updating selected layers in QGIS

I have a legend in my Print Composer and then made some adjustments with some layers in my project. In the Print Composer, is there a simple way to adjust selected layers? Of course I can delete the ...
5 votes
1 answer
216 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 ...
0 votes
0 answers
26 views

QGIS Layout expression for custom text does not display

In QGIS 3.28, I have template with a simple expression which calculates the sum of a particular attribute (area) and displays this on the map. Essentially the following: from qgis.core import * from ...
0 votes
0 answers
41 views

How to create multiple maps that once printed can be sticthed together in QGIS

I have a map of a parish which I can print as A1 at say 1:25000 scale. However, if I want to close in on the same area at say 1:5000 scale, then how can I then create different maps in that parish ...
2 votes
1 answer
6k views

Printing large map in QGIS in normal paper size (A4, LEGAL)

How do I print a large map in A4 size like "Tile printing"method where you can automatically divide that large map into equal parts(A4) then join it later by pasting? I tried ATLAS plugin ...
0 votes
3 answers
331 views

Adding Lat/Long Coordinates to Frame in Print Layout

I am still learning how to use QGIS: I am making a map of a location in Antarctica, so I am using WGS 84/Antarctic Polar Stereographic coordinates (EPSG:3031). I have put the map into a print layout ...
1 vote
1 answer
28 views

Adjust Symbol Size for Color Ramp in Print Layout Legend with Python

I have a Print Layout, with a layer, styled with a color ramp. I create it all with PyQGIS. How do I, again from PyQGIS, access these two settings Width and Height??
0 votes
0 answers
27 views

Create Print Layout issue in QGIS

Create Print Layout in my QGIS doesn't show an option to write a name for the project. How to fix this issue? See the snapshot below:
1 vote
0 answers
37 views

QGIS: print composer legend layer order management trouble

In the print composer I cannot change the order of items displayed in the legend: the buttons "Bring up/down items" seems not working: after doing their task for few times, suddenly instead ...
1 vote
0 answers
41 views

Labels in GeoPDF using QGIS

I have a problem with a vector layer in QGIS. When I export a print layout as geo-pdf and transfer it to a different device (whatsapp, email, etc), the labels of one specific layer as well as all ...
0 votes
0 answers
47 views

QGIS print layout geo-pdf export: Flipped legend and symbology

I have been using QGIS (currently 3.22 on Windows 11) for several years to produce maps that I export as geo-pdfs. I recently accidentally changed the page properties from A4 to A3 (and back again ...
1 vote
1 answer
61 views

Saving report layouts as template (.qpt) using QGIS

I am trying to develop a Report Layout that can be used with multiple .QGS files. A Map (print composer) layout can be saved as a template file (.qpt) but this option is greyed-out for Report Layouts. ...
4 votes
1 answer
225 views

Adding labels on map layout legend boxes using QGIS

On a geological map legend, is it possible to automatically add a label (eg. formation abbreviation) inside their respective boxes of map layout legend?
1 vote
2 answers
1k views

QGIS Repeat Page Layout

I'd like to reuse a page layout across multiple pages - specifically the page border, the title, etc. Is there an easy way to do this? Right now I'm making new pages and copy/pasting everything. ...
1 vote
0 answers
44 views

Report Templates (.qpt) load as Map Templates in QGIS Composer

I have a report template (.qpt) file that I would like to load into a new project. I can load the template file from Layout Manager > New from Template. The problem is that it loads the template as ...
0 votes
1 answer
48 views

Use the QGIS print layout to crop the layers it exports?

I am currently processing data in QGIS, which I then want to export to Adobe Illustrator for further styling. Ideally I want to export the data as an SVG. When I export the data using the QGIS print ...
4 votes
1 answer
3k views

Exporting composition as image using PyQGIS

QGIS Print Composer has tool "Save As Image" and I found appropriate function in QGIS source code exportCompositionAsImage. Is it possible to get access to existing Print Composer from ...
0 votes
0 answers
24 views

Is there a way to change a print composer from A3 to A1 without having to re do all my txt boxes, arrows, annotations etc?

I am aware of how to change page size through page properties so thisis not my issue. I have an a3 map prin composer with lots of txt boxes, annotations, arrows pointing to things etc, but when I ...
2 votes
1 answer
64 views

Calculating the length of lines in atlas mode

I have created an atlas that shows polygons (parcels) with respective lines (pipes). My task now is to display the length of the pipes for each parcel. The map looks somewhat like this (black=parcel, ...
0 votes
1 answer
54 views

Get print composer to acknowledge the "Lock Layers" option when using the "Render Layers as a Group" option

I have shapefiles and rasters loaded into a QGIS workspace (3.30, but this issue doesn't seem to be version specific from my experience). I've grouped some of the vector layers and checked the "...

1
2 3 4 5
30