Questions tagged [print-composer]

Print composer provides growing layout and printing capabilities in QGIS.

Filter by
Sorted by
Tagged with
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 ...
user avatar
  • 2,626
15 votes
4 answers
10k 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 ...
user avatar
  • 681
15 votes
3 answers
1k views

How to determine 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 ...
user avatar
  • 74.7k
10 votes
2 answers
9k 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 ...
user avatar
  • 817
48 votes
8 answers
52k 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 ...
user avatar
  • 771
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 ...
user avatar
  • 74.7k
8 votes
2 answers
2k views

Is it possible in QGIS print composer to include a numeric scale in an html box?

For work I always have to create a table with my name, project name, date etc. into my map layouts. I also need to include the scale like "1:150000" in that table. So far I am solving that by ...
user avatar
  • 301
8 votes
2 answers
2k views

How to count points within the current Print composer atlas feature in QGIS 2.8?

In the print composer when generating an atlas, does anyone know how to show he feature count per each atlas coverage feature? For example, I have generated an atlas where each map is a different ...
user avatar
  • 143
2 votes
1 answer
890 views

QGIS 3.16 - Print layout grid coordinates in DMS?

I am trying to create a grid with coordinates printed in degrees, minutes, and seconds in print layout of QGIS 3.16. The project is defined to EPSG:32652 WGS 84/UTM Zone 52N. When I go to Grid > ...
user avatar
  • 23
7 votes
3 answers
3k views

How to add the current project path in Print Composer?

I'm trying to demonstrate to my company that we can begin using QGIS in conjunction with (and sometimes even instead of) ArcGIS and MapInfo. I've started setting up some layout templates but have run ...
user avatar
  • 21.2k
6 votes
1 answer
1k views

Printing only selected features in report QGIS 3?

My layer has more than 2900 elements, and I would like to release a map with 1 or 10 or 50 selected elements but never 2900 in the time. I can't select them other than visually (no column to identify)...
user avatar
4 votes
1 answer
3k views

Programmatically exporting composition as image from QGIS?

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 Python console ...
user avatar
  • 6,618
4 votes
2 answers
4k views

Adjusting QGIS Print Composer output resolution?

I am using QGIS 2.12. I would like to adjust the Print Composer's output resolution for "Export as Image" and "Export as PDF". The default is 300 dpi, but I would like 600 or 1200. Multiple ...
user avatar
  • 6,973
4 votes
2 answers
1k views

PDF in CMYK or RGB color space

In QGIS 2.14, in print composer I can save my project as a PDF file. There is no controls of the color space in which colors are specified in the output file. It will be very useful to have a choice ...
user avatar
  • 41
18 votes
2 answers
14k 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
user avatar
  • 291
40 votes
2 answers
31k 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 ...
user avatar
  • 403
11 votes
2 answers
1k 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 ...
user avatar
12 votes
4 answers
1k 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 ...
user avatar
  • 11.7k
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 ...
user avatar
  • 2,090
9 votes
1 answer
23k 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 ...
user avatar
  • 9,203
2 votes
1 answer
1k views

Why do labels in exports using HERE tiles appear tiny?

I am trying to export images from the QGIS print composer, the exported image has a basemap that is loaded from an XML file following this questions method. The export doesn't look at all like the ...
user avatar
  • 891
16 votes
4 answers
5k 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'...
user avatar
  • 5,306
5 votes
2 answers
5k views

Setting up QGIS print composer options from Python console [closed]

If I have a print composer called "ABC", I would like to "tell" its composer that I would like to update "Map 0" to simulate the "set to map canvas extent" ...
user avatar
  • 499
4 votes
2 answers
1k views

Getting extent of composer map in PyQGIS?

In answering a labeling question: Changing to alternate label if first label does not fit in QGIS? I found myself wondering if there was a way to programmatically get the extent of a composer map so ...
user avatar
10 votes
2 answers
3k 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;...
user avatar
  • 859
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?
user avatar
5 votes
3 answers
3k views

Why are size-scaled symbols missing from map layout legend? [closed]

I have a designed a map using a scaled simple marker symbol. It is a rule-based design and symbol scaling is done by the siye assistant based on a field value for any of the rules in the same way. ...
user avatar
5 votes
4 answers
2k views

QGIS Atlas generation for multiple map extents?

I'm trying to create 5 maps in composer showing the same layer features but different extents of a map (attached an image to give everyone an example). I've opted to use atlas to save me manually ...
user avatar
  • 357
7 votes
2 answers
1k views

Setting layer name in composer legend as "Hidden" using PyQGIS?

Is there a way to hide a layer name in the composer legend using pyqgis as we do from the legend properties (see picture)? The only way I've found so far is by changing the layer name in the composer ...
user avatar
  • 597
6 votes
2 answers
1k views

QGIS styling a legend

I am a newbie working on QGIS 3.6 / Windows 10 I need to style a legend for map with headings and sub headings The main divisions of the legend item need to be subdivided into sub-classes i.e. The ...
user avatar
4 votes
3 answers
531 views

Use text diagram for labeling in QGIS

I created text diagrams for my polygons and want to juse them as labels in the print layout. Is there way how to adjust the Textsize of the diagrams? I was thinking about labeling the centriod of the ...
user avatar
  • 171
3 votes
1 answer
1k views

QGIS Map Composer goes blank, outputs corrupt PDF

I am using 64bit 2.10.1-Pisa on Windows 10. When I set up my composer to print, everything looks fine until I try to print or export. The composer goes completely blank and outputs a corrupted PDF ...
user avatar
6 votes
1 answer
6k views

Problem with print composer when exporting a map with Google Maps Plugin in the background [duplicate]

Whenever I try to export a map with the Google Maps plugin in the background, it exports but just exports to a blank document. When I turn the Plugin off so it is not in the background, it prints fine....
user avatar
  • 61
4 votes
1 answer
3k views

Changing frame in print composer of QGIS

I made a map based on a raster from Natural Earth web site with some vector layers with the Qgis software. When I compose this map I cannot get the right size: there are too big or to small as you can ...
user avatar
  • 2,727
10 votes
3 answers
5k 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 ...
user avatar
32 votes
1 answer
21k 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 ...
user avatar
  • 927
7 votes
3 answers
4k views

How to create a reference grid in QGIS print composer?

Is there a way to create what is called a 'reference grid' in ArcMap using QGIS print composer:
user avatar
5 votes
1 answer
3k views

Make legend in QGIS only show features in the view extent?

I am trying to create a legend in QGIS 2.18.22 so that it only shows the features that are in the current map extent in the print composer. I have been selecting the 'only show items inside current ...
user avatar
  • 51
11 votes
5 answers
20k 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.
user avatar
  • 1,163
8 votes
3 answers
1k 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....
user avatar
15 votes
3 answers
740 views

Sort attribute table by hidden column in 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 ...
user avatar
  • 667
14 votes
2 answers
2k 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 ...
user avatar
  • 891
11 votes
2 answers
12k 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 ...
user avatar
  • 1,744
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 ...
user avatar
  • 101
18 votes
1 answer
21k 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?
user avatar
  • 305
9 votes
3 answers
9k 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.
user avatar
  • 285
6 votes
4 answers
1k views

Annotation Scaling

I made a map with annotations in QGIS 3.0. This is how it looks like in the layout view: If I print the map as PDF, one would expect to get the PDF to be WYSIWYG, right? However, it looks like this (...
user avatar
  • 183
6 votes
1 answer
5k views

Can I Turn Off or Remove Map Layers in QGIS Print Composer

The title pretty much says it all. I have a base map in QGIS that I am using with several Print Composers. In one of the Print Composers, I don't want one of the layers to show up. Is there any way ...
user avatar
  • 93
5 votes
2 answers
725 views

Is it possible to wrap the heading of a column of an attribut table within the print composer?

The "wrap text on" function seems not to work for the heading of the columns, only for the rows. I'm using QGIS 2.14.4
user avatar
  • 277
4 votes
3 answers
1k views

Dynamic grid with Atlas generation

I have ticked grid maps in Atlas composer. The problem is my maps don't have same scale to represent. Then, I would like to configure grid in such way that lines of grid in different maps change ...
user avatar

1
2 3 4 5