24 votes

OpenLayers low resolution and/or shifts in QGIS print composer?

It is a common bug, and there are many threads that deal with this. A solution is to make your map element/object fit the map composer. bug
user avatar
22 votes

How do I fix "name 'iface' is not defined"?

The iface module is automatically imported when directly working from the Python Console. In the other cases (for example, when running a script from the Processing Toolbox), you need to manually ...
user avatar
  • 15.6k
14 votes

OpenLayers low resolution and/or shifts in QGIS print composer?

For future readers who are viewing this post, this bug still exists at 2.12. Here's a visual example of the bug, screenshot from a pdf that I created using the Print Composer. All layers, as well as ...
user avatar
  • 7,088
13 votes
Accepted

Using Python to disable Scale map elements proportionally to changes in page size?

I assume you have installed comtypes successfully, according to the following SE Q/A: How do I access ArcObjects from Python? Code import arcpy from snippets102 import * from comtypes.client import ...
user avatar
11 votes

Saving huge detailed map with background into TIFF for printing size A0

Some approximate numbers: A0 paper is about 1m each side, a 600 sq km area is about a 25x25km square. So your printed map will be at a scale of 1:25000, more or less. I'm not familiar with SAS.Planet, ...
user avatar
  • 6,445
10 votes
Accepted

Creating several maps showing different layers but same area using QGIS?

In QGIS 2.8 you have the option to lock the styles in a map. First add number of map pages in the print composer. Example with two maps: And the corresponding print composer In the Print Composer ...
user avatar
  • 7,321
10 votes
Accepted

QGIS Print composer scale problems

EPSG:3857 doesn't conserve distances so this will depend on where on the earth you are mapping - I think the scale is calculated at the Equator. The easiest fix for this is to switch to an ...
user avatar
  • 75.5k
10 votes

Do I always have to project my layers for print maps?

You always get a distorted map, that how projection work (by distorting a 3D surface to project it to a 2D surface). You dont absolutely need to choose any projection : if your data are in geographic ...
user avatar
  • 12.2k
9 votes

OpenLayers low resolution and/or shifts in QGIS print composer?

I think I have identified the problem. when printing if you set the position and size of the map layer in the composer exactly equal to the page size, the open layers match the vector layers, ...
user avatar
9 votes
Accepted

Input content inside the object drawn in QGIS Print Layout

You mean to insert text inside a shape, as in Office Word. It is not possible to include a text content for layout shapes because they don't have any property for text. Eventually you will need to use ...
user avatar
8 votes

Set Print Composer map extent using Shapefile

You can use the Atlas generator with the squares as the coverage layer. In Print Composer on the Atlas generation tab check the box to generate and atlas. Pick your layer from the drop down. Then ...
user avatar
  • 1,832
7 votes
Accepted

Plotting two Maps on one sheet in QGIS?

I usually lock the map I want to prevent from updating automatically, using the option 'Lock layers for map item' within map properties in QGIS composer: In the canvas: check the layer(s) you need to ...
user avatar
  • 2,590
7 votes
Accepted

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

This works for me: use the aggregate() expression in a text label, with within($geometry,@atlas_geometry) as a filter for points within your atlas feature. The full syntax in your text label would be ...
user avatar
  • 7,524
7 votes

Printing highly detailed and/or complex maps on large format paper?

I have not used this in more than 15 years but ArcPress still seems to be part of ArcGIS for Desktop: The ArcPress printer engine is designed to make printing large, complex maps possible on ...
user avatar
  • 63.9k
6 votes

How to bulk print maps using ArcGIS or QGIS?

For ArcGIS you probably want to take a look at Data Driven Pages: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_Data_Driven_Pages/00sr00000007000000/ "Data Driven Pages ...
user avatar
  • 405
6 votes

How to divide attribute table in map composer between 2 or more pages?

QGIS 2.6 (scheduled to be released in a month) has built in support for this. Tables can be split across multiple frames, which can be placed on separate pages or in different positions on a single ...
user avatar
  • 26.4k
6 votes

Projecting a world map on 6 segments to print on ball

This won't be a complete answer as I finally searched the help of a professional to produce the gores with another software. Nonetheless, let me share with you what I (with the help of the links ...
user avatar
6 votes
Accepted

Print values from Tables in QGIS Console

You need to access the attributes of the features of the table. lyr = iface.activeLayer() features = lyr.getFeatures() for ft in features: attrs = ft.attributes() print attrs To access ...
user avatar
  • 7,321
6 votes
Accepted

Printing map on several pages in QGIS?

You can try the plugin “Grids for Atlas”. Make sure you list experimental plugins if this doesn't show up at first. Use the plugin to generate a grid, and then generate the atlas again. Make the size ...
user avatar
  • 2,207
6 votes
Accepted

Printing to Scale only works for PDF format

A PDF file has a controlled page size that can be used by the reader app (Adobe Reader or similar) to output a set page size when printed. Image files such as TIFF, PNG, BMP etc., are not a page at ...
user avatar
  • 29.2k
6 votes

Do I always have to project my layers for print maps?

(adding just to flesh out details alluded to in other answers) QGIS uses a coordinate system for any map you show (canvas) or print (layout). Based on your settings under Settings / Options / CRS, ...
user avatar
  • 6,445
6 votes
Accepted

QGIS print layout - map refresh not working

Before hitting refresh, you need to click the button to the right of it, which is "Set Map Extent to Match Main Canvas Extent". This will set the zoom and extent of the map to match your ...
user avatar
5 votes

How to Zoom in QGIS Print Composer Without a Scroll Wheel

For people looking for this in QGIS 3: The answer of James S is basically still valid but the Icon of the "Move item Content" has changed in the mean time and looks now like this: (in this case with ...
user avatar
  • 443
5 votes
Accepted

How to bulk print maps using ArcGIS or QGIS?

For QGIS, have a look at the Atlas functionality in the Print Composer. http://docs.qgis.org/2.2/en/docs/user_manual/print_composer/print_composer.html?highlight=atlas#atlas-generation The idea is ...
user avatar
  • 82.4k
5 votes
Accepted

Mapfish/Geoserver printing: layer problems

Ok, it was kind of obvious (as the stack trace said (it seems I was kind of blind at that moment)): It is a security issue: As soon as you add the url of the host of the respective layer to your ...
user avatar
5 votes

Grid and Graticule in QGIS Print Composer in QGIS 2.8

Under the map's Item Properties panel, look for the "Grids" section. Expand that out and click the green "+" button to add a new grid (you can now have multiple grids per map):
user avatar
  • 26.4k
5 votes

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

You need to create a script counting point within the current atlas geometry. In the expression function editor add this code: from qgis.core import * from qgis.gui import * from qgis.utils import ...
user avatar
  • 7,321
5 votes

Print values from Tables in QGIS Console

Just to add to @Jakob's brilliant answer, you can use name() to print the name of the layer: vl = QgsMapLayerRegistry.instance().mapLayersByName('Province')[0] print vl.name() If you have multiple ...
user avatar
  • 72.6k
5 votes

Can I export all print composers at the same time?

You can use the "Maps Printer" plugin, or the "multiprint" plugin which has this functionality. To take it even further, you can export multiple print composers from multiple .qgs files using the ...
user avatar
  • 9,991
5 votes

QGIS Print composer scale problems

Generally speaking the UTM grids are a good place to start if measurements or scales are involved. In your particular case (Switzerland) this would be UTM 32N and I'd recommend the ED50 (European ...
user avatar
  • 702

Only top scored, non community-wiki answers of a minimum length are eligible