Questions tagged [print-composer]

Print composer provides growing layout and printing capabilities in QGIS.

Filter by
Sorted by
Tagged with
10
votes
2answers
6k views

Programmatically load composer from template and generate 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 ...
12
votes
4answers
9k 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 ...
5
votes
2answers
6k 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 markes the locations of the detailed maps. Best case would be if the rectangles were links to the detailed map. ...
37
votes
8answers
35k 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 ...
7
votes
2answers
1k 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 ...
7
votes
2answers
1k 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 ...
10
votes
3answers
883 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 ...
11
votes
3answers
899 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 ...
6
votes
3answers
2k 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 ...
4
votes
1answer
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 ...
2
votes
1answer
726 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 ...
4
votes
1answer
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 ...
35
votes
2answers
19k 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 ...
11
votes
2answers
875 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
1answer
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 ...
8
votes
1answer
16k 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 ...
5
votes
1answer
552 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)...
4
votes
2answers
752 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 ...
3
votes
2answers
3k 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 ...
15
votes
2answers
9k 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
11
votes
1answer
10k 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?
10
votes
2answers
2k 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;...
6
votes
2answers
316 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 ...
4
votes
3answers
2k 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. ...
15
votes
3answers
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'...
3
votes
1answer
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 ...
6
votes
1answer
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....
10
votes
3answers
4k 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 ...
6
votes
3answers
3k 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:
5
votes
2answers
774 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....
15
votes
3answers
479 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 ...
14
votes
2answers
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 ...
10
votes
1answer
976 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 ...
5
votes
2answers
826 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 ...
4
votes
3answers
820 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 ...
11
votes
1answer
12k views

How to export a map with a 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?
6
votes
1answer
4k 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 ...
6
votes
4answers
809 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 (...
5
votes
4answers
1k 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 ...
4
votes
0answers
300 views

Launch Atlas composer generation from command line

I am using QGIS 2.2 and have configured a composer with atlas generation. I would like to launch this atlas generation every day. The idea is to write a batch and launch it with a cron. Is it ...
3
votes
1answer
740 views

Print composer custom grid label problem

In answer to this question Klas Karlsson puts forward a solution to the problem of formatting print composer grid labels for projected maps. I'm very weak on scripting, but in QGIS 2.14 I've tried to ...
3
votes
1answer
2k views

Print Composer Map with Table using PyQGIS

I am looking for a way to print a custom feature form created in PyQt Designer for QGIS 2.4 using PyQGIS. My goal is to print/save image as the current extent of the map with the selected feature's ...
3
votes
2answers
946 views

Transpose attribute table in QGIS Composer?

I have difficulty in how to rotating attribute table in QGIS Composer. The default is horizontal, it's because data I have too much around 50 tables. So I want to rotated it to horizontal. Under the ...
3
votes
3answers
4k views

Adding excel table to QGIS print composer?

Can anyone suggest some ideas to add a excel table to the print composer which will then be exported as a A3 png while retaining resolution. Attempted pasting in word as an enhanced meta file then ...
2
votes
2answers
1k views

Draw rectangle with a given size (height/length) from attribute table

I would like to build a rectangle (shape or symbol) with a given size (height/length) from the attribute-table. In detail: I build a Atlas of maps with alternating sizes, like 145x129 or 165x129. The ...
2
votes
1answer
838 views

Programmatically import new composer from template to project using PyQGIS

I am trying to find information about how to programmatically import new composer from template, but it is impossible. There is a lot of information how to print the composer to image, but not save ...
7
votes
2answers
6k views

How to import a 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.
5
votes
1answer
278 views

QGIS 3.2 Layout Map render/cache/rectangle no longer available

In previous version of QGIS when using the print composer there was an option to have the map displayed as a rectangle, cached or render. This was particularly useful when the map showed lots of ...
4
votes
2answers
2k 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. ...
4
votes
1answer
155 views

How to create a printable data sheet when using edit widget “value realtion” in QGIS 2.0?

I created a spatiaLite Database with a point layer (every point is a tree). Additional I created several tables to fill the columns of the spatial layer with attributes using the editing widget “value ...