Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [qgis-print-layouts]

Print layout provides growing layout and printing capabilities in QGIS 3.

1
vote
0answers
8 views

Feature Count for Categorized Layers with the Atlas function of Print Layout in QGIS 3

In QGIS, is it possible to count the features of each class in a categorized layer where the features being counted are limited to those that are inside the current atlas feature? I have tried ...
1
vote
0answers
14 views

Where is Composition ‣ Paper and Quality panel of QGIS? [duplicate]

A right-click on panel doesn't bring this up and not listed in View/Toolbars or View/Panels ... have a very specific page size so really need to change from default A4.
1
vote
1answer
21 views

Is it possible to print a map in PyQgis3 of a database table without rendering the layer in the project gui?

There is a way to print a map using pyqgis3 without rendering the vector layer in the project interface? (by giving just the connection to the table, the map extent and the style )
1
vote
1answer
18 views

How do I add a QgsLayoutItemMapGrid to a QgsLayoutItemMap with PyQGIS 3.x?

I'm trying to add a grid to a map but I don't get any results. My code: def add_map_layout_item(self, list_maplayers, qgs_rectangle, ...
2
votes
0answers
26 views

Layout export from stand-alone PyQGIS script shows empty map

I have a problem with exporting of a QGIS layout by the pyQGIS. I have prepared the qgz project and also the qpt layout. When I try to export the layout to PDF by QgsLayoutExporter.exportToPdf by ...
1
vote
1answer
26 views

How to show layout of layout manager from Python console or Python script QGIS 3

How can I show/open layout '2019_A' of Layout Manager from Python console? How show window layout specific? I checked in menu Interface Customization, mActionShowLayoutManager and I do not know how ...
0
votes
0answers
14 views

Snapping to added guides in QGIS Layout does not actually align objects

I added some horizontal guides to QGIS layout with the idea of aligning my main map frame to the legend. I also activated the "Snap to Guides" option under View>Snap to Guides. When I snap the map ...
0
votes
1answer
25 views

Adjusting QGIS 3.6 Print Composer default output resolution? [duplicate]

When exporting a print layout to image or PDF in QGIS 3.6, the default resolution is 300dpi. I'd like to change that default. There's an analogue question here: Adjusting QGIS Print Composer output ...
1
vote
1answer
21 views

Editing a map created with PyQgis3 in Qgis Print Layout

I create a new print layout using PyQgis and then I open it in the layout designer. Everything seems ok till I try to refresh the page or update the map extent, then map disappears. project = ...
2
votes
0answers
34 views

QGIS print layout (large size printed image)

I have been asked to create large size images to be the printed with a good quality to look at. The images could be with dimensions of 1 meter in height or width, but even larger. I must create these ...
2
votes
1answer
24 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
1answer
39 views

Scale of shape in a Print Layout

I am making an atlas with a fixed scale, and want to include circles with a fixed radius (in scaled kilometers) about the center point in the atlas (see image below). I was able to do this by ...
0
votes
1answer
28 views

Automatically creating html for QGIS atlas feature, listing all attributes?

I want to create a text box containing HTML, to list all attributes belonging to the current atlas feature. I think I can do this by hand, writing html which references each and every field. For a ...
0
votes
0answers
39 views

Filtering attribute table in QGIS Atlas?

I have encountered a problem with filtering "show only features visible within a map" in QGIS Atlas ?composer. I need to have an attribute table with all mileage posts visible within one map. ...
2
votes
2answers
71 views

Re-docking/pining panel in layout window in QGIS?

Using QGIS v3.4.4 and accidentally closed the "Item Properties" and "Items" panels in the layout window. Cannot now get them to re-dock/pin back into place. They will only float. Have googled ...
2
votes
0answers
23 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 ...
1
vote
2answers
71 views

QGIS Atlas with insert map

I am making a document with descriptions of how to get to some points of interest. For each point I am making a document that contains two maps, one showing the general overview and the larger roads (...
1
vote
0answers
23 views

Rotate bottom coordinates to be upside-down in print layout (QGIS)

Is it possible in QGIS (3.6) to somehow make all coordinates on the 4 sides of a map in a print layout point towards the map? I found the option for the 2 vertical sides. If the map is rotated by 90° ...
0
votes
1answer
48 views

How do I make a map's background transparent in a layout?

I am trying to add an overview map to my layout. The main map is projected while the overview map is a 'globe' (image below). I want to make the white part of the overview map transparent. I have ...
1
vote
0answers
20 views

Inserting title block when making print templates

I am creating a print template for some figures for a report. These figures will need a title block with all my company's details. Typically when I use it in surfer it is just a bunch of lines ...
1
vote
2answers
90 views

Display credit in map composer? [duplicate]

I am trying to publish maps from QGIS Map Composer. I would like to automatically add the credits of the background layers displayed in the composition (like OSM, Bing, ...) I am aware of such a ...
2
votes
1answer
65 views

British National Grid Sheet Reference Letters in Print Layout

I have managed to get a custom grid on the print layout to convert northing and eastings (XY) to ESPG:27700 grid references i.e NS00 through to NS99. The problem I am coming across is when when NS99 ...
3
votes
1answer
47 views

Exclude image from rendering in layout if file not found

I'm using QGIS 3.4. print layout to create an atlas with photos of features. I have a folder with photos and each photo is named with an ID of related feature. Example: If ID of feature is 543, ...
2
votes
2answers
96 views

QGIS 3.4. - page numbers in print layout

I'm using QGIS print layout to create an atlas with around 180 features. I'm trying to find a way to add page number in print layout. I tried adding text label with [% @atlas_featurenumber %] to show ...
1
vote
1answer
72 views

Auto update QGIS Legend

I have a project with many layers. Some layers are objects of interest while other layers are custom layers. Simplified example: Streets (polygon) Buildings (polygon) Street names (point) I created ...
2
votes
1answer
89 views

PyQGIS - Print Layout Legend. setLegendFilterByMapEnabled()

I'm creating a legend in my print composer and only want "visible", or active, layers shown in the legend. This means I want only layers with the box checked in my layers panel. Here is how I create ...
1
vote
1answer
89 views

PyQGIS - Print Layout Label text size

I'm adding a label to a Print Layout using python. I do so with the following code: label = QgsLayoutItemLabel(layout) label.setText("This is my map label") label.adjustSizeToText() layout....
1
vote
1answer
47 views

Drawing point and path graphic shapes in print layout of QGIS?

At QGIS 3.4.4, I would like to freehand draw points and paths (i.e. zigzag lines) graphic shapes on my print layout. However, I only see the option to draw rectangles, ellipses, and triangles, as ...
0
votes
0answers
248 views

QGIS 3.4 - Print composer export to image error

In QGIS 3.4.4.1 when exporting Print composer layout to image (.png, .jpeg) I get the following error message: "Cannot write to C:\xxxxx.png. This file may be open in another application". This file ...
1
vote
2answers
189 views

QGIS Print Layout: how to create a drop-shadow for items

USing QGIS 3.4.4, I've added a map to a print layout, given it a black frame, and it looks fine. Now how do I add a drop-shadow effect to the map frame in the layout? I haven't found anything in the ...
2
votes
1answer
79 views

QGIS 3 Scale Bar Should Print at 1" But Does Not

In QGIS 3.4, I am using the Print Layout to print some UTM lines with scale bars. My goal is to make a PDF of a map that is at 1:63360 or 1 inch to the mile. When I print the PDF, the mile Scale Bar ...
0
votes
0answers
18 views

How to increase the header height for an Layout Attribute Table in QGIS 3?

I need to increase the header height because the header text has 2 lines. The only way I could find to increase it was use cell margins. But that affects all rows. How to increase the height of the ...
3
votes
1answer
72 views

Automatically generate file name from text boxes in layout in QGIS

Suppose I have a layout template in QGIS, with a lot of text boxes like the title of the map, title of the project, a project code, ... When I export a map in pdf, is it possible to have it named ...
2
votes
3answers
124 views

Nesting project file name into layout in QGIS

Is there any way to automatically take information from the project file name into several boxes on a layout in QGIS? For example, if I had a file name of "185.005R1 - Geology Map.qgz" how could I ...
0
votes
0answers
45 views

QGIS print composer does not export high res details from Spatialite layer

I downloaded OSM.pbf data from Geofabrik, and I followed https://anitagraser.com/2014/05/31/a-guide-to-googlemaps-like-maps-with-osm-in-qgis/ this example to import pbf file to SpatiaLite layer for ...
0
votes
1answer
57 views

QGIS use layout name in styling expression

I have a .qgs file with a number of fairly complex styling rules showing the local Nordic ski trails. It has a single layout for printing on an 11x17 page. Until now the same PDF has been used for ...
2
votes
2answers
150 views

PyQGIS - remove layer from legend

I'm creating a simple print layout with Python. I've created a legend but I want to remove a few items from it. Here is my code to create a blank Print Layout called "LayoutWithLegend" and add a ...
0
votes
0answers
111 views

Export Layout problem in QGIS 3.4 and Windows 10

I try to export the layout into A0 size- but all size options bigger than A3 are blocked. I working with QGIS 3.4, windows 10. In QGIS 2.18 there no problem export layout to any size. But when i work ...
0
votes
0answers
19 views

Change an existing QGIS v2.18 print composer extent to create atlas series focused on one location

I have a QGIS v2.18 project that includes a print composer layout. In the print composer I can alter the exent to match the canvas extent using the Set to Map Canvas extent button. I would like to ...
0
votes
2answers
55 views

How to refresh the HTML, including the linked CSS for a QGIS HTML frame?

I am using a referenced css file in an HTML Frame in a QGIS 3.4.2 layout. <link rel="stylesheet" type="text/css" href="map.css"> It works great until I have to go and edit the css. When I ...
1
vote
0answers
30 views

QGIS 3.4 - In Layout View can I use the properties of one item as a variable in an expression for another item?

In my layouts I have a legend and a references text box. I want the references text box to be next to the legend in every layout however the width of the legend changes often. Both items are in the ...
1
vote
0answers
26 views

Set the same font in QGIS legend as in map

I want to use the same fonts in the legend that are used on the map (different feature = different font). Is it possible? I only get one font for all items.
2
votes
1answer
60 views

Layout Composer Text Box Expression - isolating names from project file path

In QGIS 3.X, I'm attempting to use an expression in layout composer to automatically input the client and project name into a text box. The details are always present in the file path to the project ...
2
votes
0answers
62 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 ...
1
vote
0answers
144 views

QGIS3 Python Export PNG after layout resize

I have maps being created that have nice colour banding on them for the contours. I want to be able to export the legend for that colour banding as an image so it can be imported into another ...
0
votes
1answer
185 views

Change Legend Right to Left Reading in QGIS

I am a new QGIS user and i have a challenge to convert legend from right to left reading in QGIS like ArcGIS.
1
vote
0answers
83 views

QGIS - Problem with Print Layout - blacked out sections on map (QQIS 3.2.1-Bonn)

I am experiencing a problem with Print Layout. When importing my map, random blacked out sections are appearing.
1
vote
0answers
76 views

How to filter legend by map content in composer with raster layers?

Does the "Filter Legend by Map Content" button in composer of QGIs 3.2 version work only for vector layers? It seems it's a bug reported in 2.18.x version and should be fixed for 3.x versions (https://...
1
vote
1answer
36 views

Map eastings in QGIS 2:18 Print Composer alternate between correct values, then negative values

Using CRS OSGB 1936 (ESPG 4277) at various map scales in Composer, I find that the northings are all correct, but the eastings alternate between two or three correct values, then two negative ones. I ...
1
vote
1answer
249 views

How to create a polygon from a Print Composer or Print Layout map extent in QGIS?

How do you create a polygon from a QGIS Print Composer or Print Layout map extent (i.e. a polygon that is the exact area shown in a map within a print composer/layout)? Ultimately I would like to do ...