Questions tagged [print-composer]

Print composer provides growing layout and printing capabilities in QGIS.

Filter by
Sorted by
Tagged with
1 vote
2 answers
85 views

How to bring feature selection into print composer

I have a PostGIS multipolygon layer in the map view and want to bring the feature selection into the print composer. Also, only the label for the selected feature should be visible in the map I want ...
user avatar
  • 531
0 votes
2 answers
36 views

Checking layout for compatibility with b/w printing in ArcGIS Pro

I often have to produce paper maps that would likely later be printed in black and white, is there a way in ArcGIS Pro to apply a visual filter on a map to see how (approximately) the print layout ...
user avatar
  • 641
2 votes
2 answers
74 views

QGIS 3.16 - I want to make by 6"x9" map a 24x36, but all of the text/layers are tiny. Is it possible to automatically scale all of the layers?

I recently got a freelancing gig and am really excited, but I'm having troubles exporting my map in a different size in QGIS. My client wants a map sized 24"x36", and I have created one that'...
user avatar
2 votes
1 answer
903 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
1 vote
0 answers
73 views

PyQGIS Print Composer not exporting raster layer successfully (CRS in correct format)

I have a Python script that runs and creates statistics using zonal statistics sum tool. The python script adds each layer to the map successfully: # Add Base Map OSMBase = "....\\OSM_Base.xml&...
user avatar
  • 173
1 vote
0 answers
53 views

Aggregating Virtual Fields in the QGIS Layout

I have an atlas creating maps of parks. These parks contain different areas with different types of surfaces, which need to be managed differently. In my map-layout I'd like to summarise the area of ...
user avatar
  • 103
0 votes
1 answer
466 views

QGIS 3.18 Override raster gradient legends

In the new QGIS 3.18 (Zurich), raster color ramps automatically show up in the print layout as gradient legends! This is great, but I am trying to match some old maps to new maps for a publication and ...
user avatar
1 vote
1 answer
120 views

How to show data defined centroid fill marker font in the legend?

I'm using QGIS 3.18.0 on Windows 10 (from OSGeo4W Network Installer). I have a polygon-shapefile with an attribute table including the attributes "signatur", "r", "g" and ...
user avatar
  • 1,229
4 votes
1 answer
156 views

cropToContents not working properly in PyQGIS

I have a template qpt which I read via pyqgis script to export multiple maps as png. I have a map and a legend in qpt file and I chose "Only show items inside linked map" so the legend shows ...
user avatar
  • 1,373
3 votes
1 answer
83 views

Repeat a QgsLayoutItem on several pages without using atlas

I am creating a script to export an attribute table in pdf format with PyQGIS 3. The number of features is different regarding the farmer's number of fields and features are sorted by the field id. ...
user avatar
1 vote
0 answers
26 views

Merging values in print composer table

Is there a way in qgis to merge repeated values in attribute table print composer? Something like on the second image bellow.
user avatar
  • 1,054
1 vote
1 answer
151 views

Get feature value to use in print composer label

I'm trying to get the value of a feature (the area) to use as label in the print composer, but I'm not getting much success. This is the expression I'm using in the text label in composer: attribute(...
user avatar
  • 1,054
1 vote
1 answer
189 views

Making street names visible on OSMM WMS, increasing resolution of WMS map at constant scale (Scale Dependent OSMM -SV)

I have my map at a scale where the OSMM background map is not showing the street names. Is there a way to make the street names visible without changing the scale of my map (can't increase scale as ...
user avatar
  • 23
1 vote
0 answers
175 views

QGIS keeps crashing when exporting print layout map - how to stop this?

When exporting my map which contains vector data and two maps (one as a global locator insert map) as an SVG file QGIS keeps crashing. I need the map to be exported as an SVG file as I want to edit it ...
user avatar
  • 169
0 votes
0 answers
22 views

QGIS' 3.x - Atlas feature not printing second pdf page

So, I have created a layout managed by Atlas; every layout has 2 A4 pages, one with the atlas view and another with a table based on visible objects. It works perfect when printing to paper (duplex), ...
user avatar
  • 333
1 vote
1 answer
147 views

Can you assign and use variables within text box QGIS print composer

I'm using dynamic text within a text box in print composer in QGIS 3.12. Is it possible to assign and use variables within this to avoid repeating the same call several times? I'm using [% attribute(@...
user avatar
5 votes
1 answer
72 views

Automatically switch scalebar units at certain scale

I have a scalebar with a element-width of 70 mm. It has three segments and their width is set to be between 50 and 60 mm. Scalebar units are set to [m]. This works fine when it comes to automated ...
user avatar
  • 12.5k
2 votes
1 answer
66 views

Show multiple layers in a QGIS Atlas using 'Lock layers' with an attribute field

I'm wondering if it is possible to use an attribute field in a QGIS Atlas coverage layer to show multiple map layers. I know this is possible with one layer by having the layer's name in the attribute ...
user avatar
  • 1,254
1 vote
1 answer
238 views

Sort attribute table in an atlas layout with PyQGIS 3

I wrote a script that automate the production of an atlas layout with PyQGIS 3 that works well but it remains a detail I can't figure out. Each page of my atlas contains a map zoomed on a particular ...
user avatar
2 votes
1 answer
199 views

Adding metadata from JSON file as text to QGIS print layout

I have a have a static URL pointing to a json file on the web that I load to QGIS. It is updated regularly. In the source, before listing the features, it contains metadata, between else a line "...
user avatar
  • 40.1k
3 votes
1 answer
244 views

Copying legend in QGIS Map layout

I am creating a map where I have many legend items. Initially, I divided them into two columns but now I want to separate them. When they were together I have customised font size, style etc. I can ...
user avatar
2 votes
1 answer
90 views

Unable to find print composer on QGIS

Anyone have information about where Print Composer is hiding. I have followed the instructions on the QGIS website which says it is under Projects or the button in the control panel. Neither option is ...
user avatar
  • 21
6 votes
5 answers
710 views

QGIS: How to invert the values in a layout legend?

At 3.16.3 I have added this legend to a map layout. Notice how the lowest value is at the top, with values increasing towards the bottom: I would like to instead have the lowest value at the bottom, ...
user avatar
  • 6,995
2 votes
0 answers
119 views

Exporting many rasters as .png maps

I'm not used to QGIS, and I'm working on a project that involves hundreds of .tiff rasters (interpolations) of attributes of the same place. (the rasters are not really related by time) In order to ...
user avatar
3 votes
1 answer
389 views

QGIS expression on legend for duplicated values

Having a building table, grouped by an id and its respective amount of apartments. I want to label every symbol id on map composer legend with the amount of apartments. For a simple expression '...
user avatar
  • 161
0 votes
0 answers
94 views

Different timeout values in print composer and regular map view in QGIS?

I'm experiencing some issues in the print composer when exporting maps including WMS-layers. One of the WMS-layers takes a lot of time to load, and I've increased the timeout for network requests in ...
user avatar
  • 31
2 votes
1 answer
146 views

Is it possible to rotate the map in layout manager?

QGIS 3.12 - Often I have property boundaries that would better fit on an A3 output if rotated 45-90 degrees from that represented in the map view. I can rotate in the map view but the layout manager ...
user avatar
  • 23
4 votes
1 answer
58 views

Update a round numeric scale with atlas page - PyQGIS3

I would like to add a rounded numeric scale to each map of my atlas, with a blank as thousands separator. The code below allows to produce this kind of numeric scale but it's not changing with the ...
user avatar
3 votes
1 answer
113 views

Add an expression to calculate an attribute in the print composer with PyQGIS

In the print composer, it's possible to add an expression in the window "select attributes", in order to display an attribute that wasn't calculated in the attribute table of a layer, see an ...
user avatar
9 votes
1 answer
241 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 = ...
user avatar
5 votes
2 answers
163 views

Changing fields name of an attribute table in a layout with PyQGIS 3

I have an attribute table in my layout, defined as follow : layout = QgsPrintLayout(project) layout.initializeDefaults() QgsProject.instance().layoutManager().addLayout(layout) pdf = QgsProject....
user avatar
4 votes
1 answer
131 views

Defining a cell style of an attribute table in a layout using PyQGIS 3

I have an attribute table in my layout, defined as follow : layout = QgsPrintLayout(project) layout.initializeDefaults() QgsProject.instance().layoutManager().addLayout(layout) pdf = QgsProject....
user avatar
5 votes
1 answer
451 views

Choosing extent and scale while exporting a map

I'm exporting a map to a PNG file in QGIS 3.10.4 via Project > Import/Export > Export Map to Image. In the dialog that shows up, I can select the extent (exported area), scale, resolution (DPI), ...
user avatar
5 votes
2 answers
79 views

Populate legend items with values from another layer

I'm using QGIS 3.10. I'm trying to label my map with values taken from a different layer (meaning not my atlas coverage layer), which is intersecting the atlas cover layer. This layer named "...
user avatar
3 votes
2 answers
444 views

QGIS coordinates not displaying correctly

Making my first Print in QGIS, and for some reason the coordinates are all over the place (see image). Does anyone know what would be causing this? All of my settings seem quite standard, I will post ...
user avatar
9 votes
1 answer
263 views

Adding page number to an atlas layout with PyQGIS 3

I am learning PyQGIS 3 for a few weeks and I am trying to understand how to create an atlas with PyQGIS 3 from the beginning. UPDATE : Here is where I am now : project = QgsProject.instance() client = ...
user avatar
7 votes
1 answer
100 views

Optimizing number of printing pages in QGIS

When I try to print under QGIS, due to the framing, it prints me 4 pages. Looking more closely, and one by changing the angle of the 2 pages, I am at 2. How do I automate this? Current situation: ...
user avatar
0 votes
0 answers
56 views

Print layout of multiple maps revert to one identical map after save as image/zoom

I have a map with 8 graduated classes. I have created a print layout with 8 separate maps - one for each of the classes. I used "lock layers" to ensure that each separate map displays just ...
user avatar
5 votes
1 answer
119 views

QGIS HTML labels only for objects visible on map

I'm printing QR-code that is generated on the fly in QGIS Print Composer. The URL to get the QR-code ist stored in a PostgreSQL database in the attribute-field "url". <img src = "[% &...
user avatar
  • 1,170
8 votes
1 answer
5k views

Adding page to layout after populating the page using PyQGIS

TL;DR How can I add items to the page (QgsLayoutItemPage) without using layout? I want to add an item to the 2nd (or 3rd, ...) page in the project layout. Normally, I can add the item to the 2nd page ...
user avatar
3 votes
1 answer
128 views

Apply expression to synchronize multiple map extents in QGIS 3 layout using PyQGIS

I am using the following code to make a map with multiple map items. I would like to add the synchronization of the maps extents. How do you apply an expression to the min/max extents of a map item on ...
user avatar
  • 116
1 vote
1 answer
97 views

Values within an attribute table are displayed in a legend in a layout using PyQGIS

I currently have a script that runs data within my map and then exports it as a layout in print composer. On the map, I have a legend key that is reference to the data on the map. Within my legend, I ...
user avatar
  • 173
4 votes
1 answer
94 views

Wrong coordinates in layout

My map is not exporting the right coordinates. As you can see it makes a local sistem. It should be around 46 N , 20 E. Do you have any idea what am I doing wrong?
user avatar
3 votes
1 answer
364 views

QGIS 3: How to set Print Layout Size above A4/Legal?

QGis Layout Manager does not show page size above A4 Menu Layout > Page Setup Composition cannot be created for bigger format Customize size is rejected QGIS versions tested: 3.4, 3.10
user avatar
  • 799
0 votes
1 answer
825 views

QGIS - Labels on print layout move or don't appear on exported PDF

QGIS 3.16.1 on Windows 10 Pro. I often manage to get a print layout with label placement just the way I want it, but when I export to PDF, some labels either don't appear or appear in a less ...
user avatar
  • 757
2 votes
0 answers
51 views

QGIS Composer - Read entered textbox value in another textbox

I'm Limited to QGIS 2.18 composer for several reasons. I have two textboxes. BOX1 - User INPUT value, where user enters an integer value. BOX2 needs to read this value to be able to calculate results. ...
user avatar
  • 21
4 votes
1 answer
810 views

Editing and changing the default symbol of North arrow in QGIS 3.10

The North arrow shortcut in the layout environment is very useful and I wonder if I can edit the default symbol and change it, with another symbol, from SVG library?
user avatar
  • 667
4 votes
1 answer
769 views

Changing the scale of an extent for a layout using PyQGIS

I have a script that creates a print layout and contains all of my vector/raster layers. I have changed my extent to 'mem_layer', which is my buffer layer I am using for this project. However, when I ...
user avatar
  • 173
2 votes
0 answers
43 views

Why is the pdf output of my QGIS map different from the one I see in the Print Composer?

I'm working on a map of migrant deaths and missings in and around the Medditerranean Sea. It includes a legend. When I work in the print composer mode, the legend seems to be looking fine. Here it is: ...
user avatar
2 votes
0 answers
106 views

Remove a raster from the composer legend, but display it on the map

I'm working with PyQGIS in QGIS 3.10. I'm trying to remove a layer from the composer legend if it is a raster (but I want to see the raster on the map). This is my code: for i in self.newLayout.items()...
user avatar
  • 369

1 2 3
4
5
27