Questions tagged [print-composer]

Print composer provides growing layout and printing capabilities in QGIS.

Filter by
Sorted by
Tagged with
9
votes
2answers
5k 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 ...
10
votes
4answers
8k 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 ...
3
votes
2answers
4k 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. ...
6
votes
2answers
938 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 ...
30
votes
7answers
24k 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 ...
10
votes
3answers
595 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
724 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 ...
5
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
2k 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
448 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 ...
5
votes
2answers
988 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 ...
4
votes
1answer
796 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 ...
4
votes
1answer
543 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
2k 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 ...
14
votes
2answers
7k 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?
9
votes
2answers
1k 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;...
7
votes
1answer
12k 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 ...
4
votes
3answers
1k views

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

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. ...
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 ...
13
votes
3answers
3k views

How do I set the composer layout units to inches?

I open an 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 ...
6
votes
1answer
5k 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....
9
votes
1answer
547 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 ...
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:
10
votes
1answer
913 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 ...
11
votes
1answer
1k 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 ...
4
votes
0answers
284 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
3answers
3k 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 ...
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 ...
2
votes
1answer
731 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 ...
2
votes
2answers
882 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 ...
5
votes
1answer
570 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 ...
5
votes
1answer
146 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
1answer
148 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 ...
4
votes
1answer
3k 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 ...
4
votes
1answer
478 views

Changing legend item text with pyQGIS?

Using code I found at Go through items in a composer legend (QGIS 2.6) I can access the the layers in my legend fine. However, I have layers that are styled by category and I can't figure out how to ...
3
votes
2answers
566 views

Print Composer exporting different image with Thunderforest base map

I prepared a map in the Print Composer of QGIS. The scale of the map is 1:150,000,000. I imported the Thunderforest Pioneer base layer. At the scale I used, country labels do not show when working on ...
3
votes
1answer
722 views

Problems printing OpenLayers Plugin Maps To Scale [duplicate]

In the print composer I can print all maps to scale and satisfactory. However, when I add the OpenLayers, usually Bing Aerial, to the project I cannot print it out to scale. I click the scale box, set ...
3
votes
2answers
600 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 ...
2
votes
1answer
1k views

Map scale vs. map extent vs. map canvas size in Print Map Composer

I am using QGIS 2.0 and when I try to create my map in the print composer, I cannot make the scale and the extent the way that I need it. I need my map to be at the scale of 1:10 000. However, the ...
2
votes
1answer
1k views

Set print composer to map canvas extent using python

I have a QGIS python script which successfully loads a specified print composer template. At the end of this script I have attempted to set the composer to the map canvas extent, but I receive the ...
1
vote
1answer
2k views

Exporting a PDF from QGIS Print Composer for Avenza Pdf Maps

Alright I actually did this successfully a few months back following these steps http://www.avenza.com/resources/blog/2016/12/06/exporting-qgis-avenza-maps. Now when I bring the map into Avenza, I ...
0
votes
1answer
2k views

QGIS 2.0 - can't select items in Print Composer

I am having an issue where I can create a print Layout in Print Composer, but once I have clicked away from an item (like map, legend, arrow, etc) I cannot select it again.
8
votes
2answers
2k 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
4answers
605 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 ...
8
votes
1answer
3k views

How to create an extent indicator in QGIS 1.8 print composer?

I'm looking to put an inset map for my main map frame onto my map layout in QGIS print composer. I would like it to indicate the extent and location of the main map on a larger regional map. This ...
8
votes
4answers
13k 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.
6
votes
2answers
2k views

Why do quickmapservices basemap labels shrink when printed?

I am using QGIS with quickmapservices for my basemaps. In the composer the image looks good, with labels appropriately sized. When I go to print the PDF however, the scales on everything is much ...
8
votes
2answers
6k 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 ...
4
votes
1answer
130 views

Indenting subitems in QGIS Composer legend?

My legend looks like this: I would like the items under "Roads & Trails" to be indented to the right. Likewise for the items under "Streams". The spacing controls don't affect this. I could add ...