Questions tagged [print-composer]
Print composer provides growing layout and printing capabilities in QGIS.
1,425
questions
3
votes
1
answer
384
views
Locking layer styles in QGIS Print Layout using PyQGIS
I try to make a print-layout consisting of 2 maps-items. I only use one layer, but I want to picture it in different styles.
First, as it is when loaded, and on the second map in another style (which ...
3
votes
1
answer
2k
views
QGIS Custom Style XYZ Google maps label is too small or blurry for high resolution printing
I am trying to print a map with one of the layer I use Google Maps data for street name label by using QGIS, since Google has more detail and complete street name label than OSM, but the problem is ...
2
votes
1
answer
267
views
Making legend with singleband pseudocolor in QGIS
I have a continuous raster with values from around 0 to around 1. I used these parameters on the symbology tab:
When I head to the print layout and add a legend to my map, it displays like this (the ...
1
vote
0
answers
159
views
Map parts turn white when exporting image in QGIS
When I try and export an image or map now from Print Layout, instead of creating a clean image, random white blocks appear over the image, as seen in image attached. Any thoughts as to what is ...
7
votes
1
answer
610
views
Using two different maps on one atlas page
I can generate an atlas for 26 different map extents (numbered 1-26) and put them on 26 different pages. I want to put two different maps from the series on the one page i.e. map extents 1 + 2 on page ...
1
vote
2
answers
181
views
QGIS 'Powers of Ten' - How to output a series of maps with x1, x10, x100 scale?
I'm pretty new to QGIS. I'm trying to output a series of maps that are at the scale of 10km, 100km, 1000km. I thought this would be a really easy task but for some reason really struggling with it.
I ...
1
vote
1
answer
594
views
Is it possible to use a font not included in QGIS for layer styles and layout maps?
Is it possible to use a font not included in QGIS for layer styles and layout maps? If so, how?
I am using QGIS 3.18.2 at the moment.
Sorry I don't know where to start here as I have not been able to ...
2
votes
0
answers
224
views
Changing file size when exporting Layout as PDF using PyQGIS
I have a plugin that exports a pdf of a layout. Up to QGIS 3.18 the file size was typically about 2.7MB, since moving to 3.20.1 it has increased to about 17MB for exactly the same layout and data. I ...
1
vote
0
answers
142
views
Custom map grid showing township/range in QGIS Composer
I am trying to create a map layout with the township/range grid labeled around the map. I created a grid with tick marks every 6 miles, but am not sure how to get annotations of each township/range. I ...
1
vote
0
answers
132
views
Is it possible to store print templates (.qpt files) in a GeoPackage?
Every QGIS project file can have multiple print compositions which are listed in Composer Manager. These compositions are stored within the QGIS project and don't have to be saved separately. And QGIS ...
2
votes
0
answers
80
views
Creating Dropdown list in QGIS Print Composer
I´m trying to find a way to create a dropdown list in the QGIS Print composer. I know that there´s a way to do it in the attributes tables but what I´m looking for is to have the same result in the ...
2
votes
2
answers
187
views
Print number of features as text in QGIS Print Composer (Atlas generator)
I have made an atlas in QGIS 3.6.3 (Noosa) of plant species distributions in two periods of time. Black dots represent distribution in the period 2000-2019 and gray squares represent distribution in ...
0
votes
3
answers
255
views
Creating maps that look the same but display different data
I want to make several maps of the same area displaying different data (e.g. population, GDP, currency...) on QGIS. I want everything to be the same way in the maps (area displayed, scale, position of ...
1
vote
0
answers
42
views
QGIS map window rotation shutting off callout labels
I have a QGIS map layout showing some callout labels. If I apply a map rotation in the properties it inexplicably shuts off SOME of the callouts. Does anyone know why it is doing this and if it is ...
-1
votes
1
answer
131
views
Merging shapefile and raster file and export it as single PNG via PyQGIS [closed]
I have one temperature raster file and one shapefile containing country borders. I want to create a single file by merging the shapefile with the raster file and I export it as a PNG file.
I want to ...
2
votes
2
answers
88
views
Add raster band statistics to print layout
I would like to add raster band statistics to the print layout. I know something similar is possible to vector layers using "layer_property". Any ideas on how to achieve it on rasters or is ...
1
vote
1
answer
177
views
Adding more values to legend on print composer tool of QGIS
I am creating a map with a bathymetry layer (raster) on the print composer tool of QGIS. On the legend it only appears the minimum depth and the maximum depth.
Is there a way on QGIS to show more ...
1
vote
0
answers
134
views
QGIS 3.20 issue with print composer - layers not aligned
I have installed QGIS 3.20 and found that when moving from the canvas to print composer all my layers have moved, and do not line up anymore.They look fine each time I go back to the main canvas, but ...
3
votes
1
answer
611
views
QGIS Print Layouter exports only first page in PDF
I have a print layout of four A3-sized Maps showming different areas of the same QGIS-project. When I try to export them via Layout > Export as PDF ...' and check the option 'Create Geospatial PDF (...
1
vote
2
answers
244
views
How to centre all QGIS composers on the main map canvas
I have a template project that will be used for many future sites and I want to automatically centre all the composer layout maps to the same centre as the main canvas. Ideally this would be done as ...
3
votes
2
answers
261
views
Can individual inset maps be added to individual pages of QGIS atlas?
QGIS 3.20 on Windows 10 Pro.
I am about to create a 50 page atlas via QGIS Print Layout. I wish to insert enlargements on many pages to make congested areas on those pages more readable. On a ...
2
votes
1
answer
177
views
Unable to load raster image in QGIS 3.20 Print composer
I have loaded QGIS 3.20, and in print composer, I have tried to load a gif image I have used a lot in other versions, and it fails to load, just the red X through the box. I have checked 3.18 ...
1
vote
1
answer
118
views
Removing all legend entries except one in LayoutItemLegend using PyQGIS
For my QGIS Plugin want to remove all legend entries in my layoutItemLegend exept one entries (chiro_layer). I would like to browse all of my legend entries and delete this one if it does not match ...
4
votes
1
answer
259
views
QGIS 3.18: Listing visible features in print composer
I'm trying to achieve auto-listing of features visible (ie rendered and in Map's extents) in a text field rendered as HTML. My idea is:
Adding attribute's table to print composer, setting it to show ...
7
votes
2
answers
621
views
Resizing attribute table on QGIS print layout
I have a attribute table which I want to print using the layout composer. From here I have the following questions:
How to resize the columns in the print layout?
How do I set the horizontal ...
4
votes
1
answer
218
views
Adding folding marks to Print Layout in QGIS
Is there any way to automatically add folding marks to Print Layouts in QGIS?
I want to print maps on A0 size and need markers for folding to A4 size, like you can do in most CAD software for plans ...
4
votes
1
answer
331
views
QGIS: multi column legend wrapping: how to keep layer symbols aligned horizontally?
In my legend I have one layer with a group heading and due to layout reasons I need it to be split in 2 columns:
The only work around I can think of is to set heading to '' either in the layer panel ...
2
votes
0
answers
90
views
PDF export from print layout is smaller than page size in QGIS
I am trying to export a map to a 1132x1132 px pdf.
Here are the steps I followed:
create a new print layout with a custom 1132x1132 px page size
add the map and define Position and Size* properties
...
2
votes
0
answers
30
views
QGIS - page numbers in print layout [duplicate]
I use QGIS print layout to create atlas with many features.
I am tring to find a way to show page number left, right, up and down of atlas feature.
Is there any way to insert these page numbers to ...
0
votes
1
answer
116
views
PyQGIS Print Layout text rotation resets on view refresh
I have created a PyQGIS script that builds a Print Layout with various text labels that are rotated to read vertically on the page. The script creates the labels and places them just fine. But upon ...
1
vote
1
answer
266
views
In QGIS Atlas how to get the index and the number of features grouped/filtered by an Attribute with expression?
Using a QGIS Expression in the Layout Editor, how can one return the count of features matching a particular attribute value for an atlas feature, for example, "AREAS_Area".
In this ...
6
votes
1
answer
373
views
Is it possible to display all icons and labels but not cover other icons in QGIS?
I've been trying to find a way to automatically distribute icons and labels from different data sources so that they don't cover each other at any scale.
The PDF will have the data showing at this ...
8
votes
1
answer
763
views
Vertically and Horizontally align the labels in multi-column QGIS legends
In QGIS 3.18 (and older versions) I noticed that the first item in a multi-column legend isn't aligned with the items in other columns. I have played with the settings in the Spacing column but can't ...
7
votes
1
answer
489
views
Line pattern fill missing when exporting as SVG in QGIS Print Layout
When exporting from Print Layout as a .svg-file in QGIS the line fill pattern disappears of all polygons. How can I stop this happening?
The problem doesn't occur when exporting as an image file or ...
1
vote
1
answer
217
views
Is there any way to get QGIS Decorations passed through to prints or layouts or QGIS2Web?
I can't see any way to have the QGIS decorations that are available to the desktop passed on to any outputs, they don't show up in layouts.
They don't export to HTML via QGIS2web (except the scalebar)....
2
votes
1
answer
73
views
Print out centroid coordinates of a polygon in layout text box
I wanted to put the coordinates of the centre of a polygon in a text box in the print composer. When I run the expression in the labelling panel on the canvas it works, like below
However, when I run ...
2
votes
0
answers
262
views
QGIS 3.18.2 Print Composer/Layout map legend vanishes/goes blank when layer/theme is changed
Using the print composer/layout in QGIS 3.18.2 I have the following problem ...
Starting point:
I had a print layout set up with a map and legend. The map layers were set by 4 themes. The layout used ...
2
votes
1
answer
109
views
Plugin to extract print layouts layer by layer
I need a plugin that lets me extract all the layers i have active in the file one by one as a print layout.
So when i activate the plugin it automatically gives me png files of every layer separately
...
2
votes
1
answer
218
views
I would like to sum the total area of my attribute table to reflect in the print setup [duplicate]
I have the following attribute table and I wish to show the total area in hectares seperate to my attribute table on the print setup. I currently have to add these values manually. Is there a way to ...
4
votes
1
answer
231
views
Get size of a QgsLayoutItemPage in PyQGIS
I work on QGIS plugin in python, in my plugin I load several print layout in a project print layout manager. These print layouts are either A4 or A3. I would like to get the size value (A4 or A3) of ...
7
votes
2
answers
131
views
Get a certain part of the project name in QGIS print composer label field?
E.g. my project is named XXXX_YY_PRZZZ. Is there a way for me to get only the ZZZ part for my label field? Maybe with @project_basename or some variables like that?
2
votes
2
answers
237
views
Image size limitation in QGIS print layout using HTML code
I'm trying to make an atlas with QGIS, with one image per page.
My goal is more complex so I have to use HTML widget in order to display the images.
The below code works, but only if the picture is ...
4
votes
1
answer
167
views
Creating table coordinates of selected feature and adding it to layout with PyQGIS
I am working on a Plugin that allows users to look for a feature in the database, select it, and then open the Layout designer with map, arrow legend and some labels.
I am looking to add a table that ...
1
vote
1
answer
88
views
Use attribute of all filtered features of one layer as label in the Print composer
Is it possible to filter some features in one layer and use those filtered features as labels in the Print composer of another layer?
I am trying to make an atlas. I have two layers, one which has the ...
0
votes
2
answers
103
views
Remove a legend entry if the layer is not in the composer map
I am working on a QGIS plugin in python. In this plugin I load two layers. These layers are polygons which represent administrative boundaries. My plugin load also several print layout in a Qgis ...
2
votes
1
answer
125
views
Adapt attribute table QGIS legend from bottom
I have an attribute table controlled by Atlas on map composer from QGIS. I need to adapt the table for each map and its features but from bottom. In other words, I need to make grow the table from ...
1
vote
1
answer
187
views
Filter QGIS layout legend item style by expression for min, max, median values
Summary:
In the [print] Layout Composer in QGIS 3.18.1 I am trying to filter the legend styles displayed for an item that is a polygon layer styled by the "categorised renderer" by the min, ...
3
votes
1
answer
615
views
QGIS 3.18.1 Print layout grids are incorrect, cannot show them in DMS format
Normally, in ArcMap Print layout, enabling the grids and specifying the intervals would show the curved grids as in the following map:
But in QGIS, enabling the grids (1) does not have an option of ...
5
votes
1
answer
347
views
Frame and coordinates disappear when printing in QGIS
I'm trying to print my map in QGIS 3.18.0 including a zebra frame.
It looks great in the Print layout but when I print it, the zebra frame and coordinates are not there.
Is there a setting or ...