Questions tagged [print-composer]
Print composer provides growing layout and printing capabilities in QGIS.
1,425
questions
50
votes
8
answers
59k
views
Using continuous color band for raster legend in QGIS composer legend?
I'm looking for a way to insert continuous colour legend for a raster layer.
I managed to create discrete symbols with values along the bar, but I would like to have a continuous bar with some values ...
40
votes
2
answers
39k
views
Setting print layout to portrait using QGIS 3?
I can't get the print layout to appear in portrait. It opens in landscape and Layout/Page Setup... allows for portrait, but the layout canvas remains in landscape.
In 2.18 the "Composition" Panel ...
33
votes
1
answer
24k
views
Getting legend label on multiple lines in QGIS?
This question was posted in 2011, and someone has said that QGIS now allows multiple lines for legend entries, but no one mentioned how to do this. I am running wein 2.8.1 and I cannot figure out how ...
22
votes
5
answers
66k
views
How to change page size in QGIS Composer
I've made a few maps in QGIS Composer and set them up initially as 8.5x11 page size. I want to begin with that layout and apply it to 11x17 page size. However when I change this in the Page Layout, ...
21
votes
1
answer
2k
views
Dual-unit scale bar using QGIS?
I would like to create a scale bar for a map displaying a coral atoll. Ideally, showing two different measurements with kilometers being on the top division and nautical miles on the bottom division ...
20
votes
1
answer
27k
views
Exporting map with transparent background in QGIS
I have gone into Composer and specified the page background to be transparent. It still comes out white. Is there a solution?
19
votes
2
answers
16k
views
How to add a halo to a text in the composer?
I would like to add texts with halo, in the composer (not in the map). Do you know a way to do it?
I'm using QGIS 2.0.1
17
votes
3
answers
827
views
Sorting attribute table by hidden column in QGIS Print Composer
In a QGIS 2.18.20 attribute table I have some values with random numbers, but at the print composer I want to show them with order (clockwise). So I made a new integer column, and added numbers with ...
16
votes
2
answers
3k
views
How to create a histogram legend in QGIS print composer?
I've found this blog post while looking for a way to dynamically build a graph (histogram) in print composer.
The feature I want to replicate from the blog is drawing static rectangles in the qgis ...
16
votes
5
answers
6k
views
Setting composer layout units to inches in QGIS
I open a new composer and select ANSI A for my paper. The notation after the name is "Letter; 8.5inx11in", but the width and height are displayed in mm, and the units selection is grayed out, so I can'...
15
votes
3
answers
2k
views
Determining neighbouring tile ids in QGIS
I was asked in a recent training course if QGIS could automatically calculate the next/previous and above/below page numbers for a map book created using the atlas generator. I managed to work out a ...
15
votes
4
answers
11k
views
Save Print/Map QGIS composer view as PNG/PDF using Python (without changing anything in visible layout)?
I have a QGIS composer/print view opened with all elements adjusted as I wish.
Now I need to print/save/export this as a PNG or PDF file from Python console/Python script.
I do not want to change ...
14
votes
3
answers
19k
views
QGIS Print Composer does not change from landscape to portrait orientation?
Using 2.10.1, I open a new Print Composer and immediately change the Page Setup Orientation from Landscape to Portrait. But the orientation of the screen does not change; it continues to display ...
14
votes
1
answer
4k
views
Is it possible to create a round map frame in QGIS Map Composer to create circumpolar maps?
Does anybody know if it's possible to create a round map frame in QGIS Map Composer to create circumpolar maps?
14
votes
2
answers
3k
views
Editing Layout-Items after loading a QPT-Template in QGIS 3 with Python
I am facing a problem with the new Layout API while implementing a plugin for QGIS 3.
Starting point is a layout template in qpt-Format, which contains different elements like (attribute) tables, map, ...
13
votes
1
answer
15k
views
How to remove layer names from the print composer legend?
I'm creating a map in QGIS Composer that is the result of two merged layers. The legend (screenshot below) is adding two rows with the titles of the layers. The edit property sheet does not give me an ...
13
votes
4
answers
2k
views
Synchronizing views in QGIS print composer?
I found a question very similar to my problem: How to link dataframes in ArcGIS or QGIS?. But the solution for QGIS doesn't work now (Dual View plug-in is not available anymore).
I want to sync three ...
13
votes
1
answer
9k
views
Creating several maps showing different layers but same area using QGIS?
I know about the print composer's atlas generation tool, which allows users to create multiple maps that show the same layers/features but different geographical areas.
What I am looking for is a ...
12
votes
3
answers
15k
views
How to center a map in Print Composer to the same center as in map window?
I can't figure out how can I center the map in Print Composer to layer/object/map center in the same way as in map window in QGIS 1.8. Let's say I have layer which I want have in the center of the map....
12
votes
1
answer
4k
views
Where is composition tab in QGIS Composer to change page size?
I am trying to change the page size in the QGIS 3.0 Composer but I am not able to see the Composition tab. I have right clicked an empty space in the toolbar but did not see anything about ...
12
votes
2
answers
11k
views
Making overview with linked detailed maps in QGIS
I want to create 4-5 detailed maps, and then an overview map that has rectangles that marks the locations of the detailed maps. Best case would be if the rectangles were linked to the detailed map.
I ...
12
votes
1
answer
26k
views
Adding Multiple Maps in QGIS Composer?
I am working with QGIS Composer 2.0 and I would like to add a second map.
What I would like to do is to have a main map that takes up the majority of the print area. This map, Main Map, will have ...
12
votes
1
answer
50k
views
How to put North Arrow and Scale on map in COMPOSER in QGIS 2.2.0
I am new to QGIS and the questions asked and answered here about the North Arrow do not seem to help me solve my problem below.
In the main mapping pane of QGIS 2.2.0 Valmiera, I can add the scale ...
12
votes
1
answer
287
views
Position of a map element depending on the position of another map element
In my layout, the legend is placed between other elements. The scale bar is located above the legend and an overview map below it. You can see it in the screenshot below.
The legend is expanded or ...
12
votes
3
answers
1k
views
QGIS Print Layout - Rotation of Grid Coordinates to match map rotation
I have a layout in QGIS where 3 map views are rotated to 35 deg. The grids automatically rotate to match the maps rotation, however the labels do not.
Does anyone know a way to make the coordinate ...
12
votes
1
answer
1k
views
QGIS composer add attribute table with repeating columns
I need some help with QGIS print composer. I use the atlas composer and I try to use add attribute table from layout tab.
I have create my expression where I want to print in composer.
field ...
11
votes
5
answers
22k
views
Resizing the map item in QGIS print composer without changing scale?
Is it possible to lock the scale in the QGIS 2.0.1 print composer? Every time I resize the map, the scale is adjusted. This makes trying out different map layouts really annoying.
11
votes
2
answers
7k
views
Loading composer from template and generating atlas using PyQGIS
I am trying to build a plugin to load a print composer from file, generate an atlas and export to image. So far I have been successful in loading the template and exporting it to image.
I have been ...
11
votes
2
answers
4k
views
Putting scale bar labels below scale bar in QGIS?
I added two scale elements to my map composition. For layout harmonisation, I want the ticks and the label text below the scale bar.
Standard is this:
What I want is this (manually changed in the ...
11
votes
2
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 ...
11
votes
1
answer
11k
views
Is there any other option to display DMS grid and graticule in QGIS Print Composer?
Is there any other option to display DMS grid and graticule in QGIS Print Composer, since there is no plugins available yet?
11
votes
2
answers
15k
views
How to create a zoomed in portion of a map in print composer?
I posted a question yesterday about troubles I was having with labeling (which are still plaguing me), but it hit me today that it would probably be easier for me to just create zoomed in sections of ...
11
votes
2
answers
2k
views
Clickable HTML link in QGIS print composer pdf export?
According to qgis help files here:
'Labels can be interpreted as html code: check the checkbox Render as HTML. You can now insert a url, an clickable image that link to a web page or something more ...
11
votes
1
answer
3k
views
Automatic map rotation in map composer QGIS
The thing is that I wonder to make it possible to calculate automatically the map rotation in map composer. I have many maps in one file with their own projection parameters, and I would like to ...
11
votes
2
answers
366
views
How to prevent label rendering in bleed space in QGIS composer?
I'm making maps for a book where maps run to the edge of the page. The printer has advised a 3mm bleed space around images, therefore if my page is 127x177 mm, images should be 133x183 mm. This bleed ...
10
votes
2
answers
4k
views
Adding coordinate system to layout in QGIS composer?
I would like to know if there is a way to add a dynamic coordinate system field into a QGIS composer layout.
I can use an expression to add many items such as document name, file path, etc but I can;...
10
votes
3
answers
6k
views
Is it possible to change legend symbols in the QGIS print composer legend?
I have some layers with very complex data-defined symbols.
If I use a legend in the print composer these symbols are not drawn correctly.
Is there a way to change the legend-symbols with pyqgis, so I ...
10
votes
2
answers
3k
views
Is it possible to pan the map in QGIS composer?
I am relatively new to the composer feature of QGIS, and often have difficulty getting the map centred exactly where I want it. In particular the area of interest often moves when I set the scale.
Is ...
10
votes
1
answer
453
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 = ...
10
votes
3
answers
1k
views
Changing to alternate label if first label does not fit in QGIS?
I'm trying to create a map to print out and the size of my polygons varies greatly. As this will be a reference map I need to label every polygon, but some of the names will not fit in the polygon. In ...
10
votes
2
answers
726
views
Overlap map and frame in QGIS print composer
Often in old maps you see where the cartographer has "cheated" by allowing part of the map to extend over the frame. You can see an example at the top (or the bottom of the inset) of this map:
Is ...
10
votes
1
answer
2k
views
Is it possible to print WMTS tile layers with desired resolution / zoom level in QGIS?
I have a project which uses WMTS and some vector layers in QGIS. I can freely zoom in and out, and tiles are refreshed with appropriate zoom level, just as expected.
Now I would like to export part ...
10
votes
1
answer
1k
views
How to fill composer map with canvas data and export composition as png using Python script in QGIS
I'd like to create a Python script in QGIS that will take some data (shp + tif, in my example), use tamplate Map Composer (from a file) and export created composition to a png image.
With almost no ...
10
votes
1
answer
5k
views
How to create a customizabe table in QGIS Print Composer?
I would like to add a custom table to a map layout created in QGIS. I would like a fair bit of control over the look of the table (borders, background colours of the cells, etc.), and it appears that ...
9
votes
3
answers
10k
views
Importing Composer Template into QGIS Print Composer
How can I import a .qpt-file into Print Composer (Composer Manager) in QGIS? I've tried saving it in the composer_templates folder but to no avail.
9
votes
2
answers
2k
views
Using QGIS 3.0 API for layout?
I am trying to generate an atlas with python in qgis 3.0. I have :
projectInstance= QgsProject.instance()
projectLayoutManager = projectInstance.layoutManager()
for comp in projectLayoutManager....
9
votes
3
answers
4k
views
Updating only one of two maps in QGIS Print-Composer without updating other map
I have two maps within the map composer in qgis. Whenever I want to update one map it updates both maps.
How can I prevent QGIS from updating the other map?
9
votes
1
answer
182
views
Match map's borders to graticule in QGIS Layout
I'm using QGIS v.3.22.0.
I've been going crazy trying to adjust a map size to match a graticule in the Print Layout.
I don't want to have any squares cut in the middle.
I don't want to adjust the grid ...
9
votes
3
answers
2k
views
Creating and manipulating an HTML frame in QGIS 3.2.0 Print Composer using PyQGIS
I'm trying to create, reposition and resize an HTML frame in a QGIS 3.2.0 Print Composer layout using PyQGIS:
proj = QgsProject.instance()
comp = QgsPrintLayout(proj)
blockStats = QgsLayoutItemHtml....