Hot answers tagged

95 votes
Accepted

Setting print layout to portrait using QGIS 3?

In QGIS 3.x you have to right click on the page in your layout to find "Page Properties".
Michel Stuyts's user avatar
73 votes
Accepted

What is the default plugin folder location in QGIS 3?

Go to menu Settings -> User profiles -> Open active profile folder From there, you can go to python -> plugins. That's the plugin folder for QGIS v3. On my GNU/Linux machine: /home/USER/.local/...
Germán Carrillo's user avatar
71 votes
Accepted

Will the OpenLayers Plugin be updated for QGIS3?

In QGIS 3 use the XYZ Tiles in Data Browser use http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga 12th March 2018 update There is a python script that will load in ...
Mapperz's user avatar
  • 49.6k
63 votes
Accepted

Using QGIS Processing algorithms from PyQGIS standalone scripts (outside of GUI)

You can run a QGIS Processing algorithm in standalone (no GUI) mode in this way: import sys from qgis.core import ( QgsApplication, QgsProcessingFeedback, QgsVectorLayer ) # See ...
Germán Carrillo's user avatar
47 votes

Using QGIS vertex editor?

In QGIS 3.0, the vertex tool (same as node tool from QGIS 2.x) works a bit differently. Whether this is an improvement or not is a matter of opinion. It certainly takes a bit of getting used to. ...
csk's user avatar
  • 24.5k
46 votes
Accepted

Was QgsMapLayerRegistry being removed in QGIS 3?

Yes it has been removed, but alternatives exist. Changes of the 3.0 API are listed here: https://qgis.org/api/api_break.html QgsMapLayerRegistry: Its functionality has been moved to QgsProject. ...
Matthias Kuhn's user avatar
45 votes
Accepted

Recent Projects List missing when opening QGIS

It seems the panel is hidden: Can you try to drag and drop the border of dialog like in this GIF? Answer from Nyall, https://github.com/qgis/QGIS/issues/33718#issuecomment-573907204
etrimaille's user avatar
  • 7,150
37 votes

Installing QGIS3 on Mac?

NEW UPDATE QGIS3 can now be installed from osgeo's homebrew tap, which saves mucking about with python symlinks... i.e. brew tap osgeo/osgeo4mac brew install qgis Then type qgis in the terminal to ...
songololo's user avatar
  • 1,694
33 votes
Accepted

Writing a python processing script with QGIS 3.0

With the transition from QGIS2.x to QGIS3.x the whole processing framework has been reworked and large parts of it run now as C++ classes that you can interact with using Python. Unfortunately the ...
root676's user avatar
  • 2,375
32 votes
Accepted

Getting the output layer reference returned by Processing tool

Please note that all solutions explained here are related to vector layer used as the input and QGIS native algorithms. The answer doesn't explain the results of other providers' tools. (GRASS, GDAL, ...
Kadir Şahbaz's user avatar
32 votes

Unable to snap vertices and segment in QGIS 3.0

In QGIS 3.0, the snapping settings are accessed through the snapping toolbar. This is a change from previous versions. In QGIS 2.x they were accessed through Options menu > Snapping Options... ...
csk's user avatar
  • 24.5k
29 votes

Installing QGIS3 on Mac?

If you have installed Python3 with Homebrew, you can use symlinks to comply with the installer needs (as suggested by @shongololo). It seems, the installer needs Python3 installed at (thanks @...
Evenfire's user avatar
  • 391
29 votes

Splitting polygon into equal area polygons using QGIS

All of the necessary tools can be found from processing toolbox and you have to be a bit innovative to achieve this. Basically by adopting this method you could achieve pretty good results, although ...
tjukanov's user avatar
  • 613
27 votes
Accepted

Can QGIS 3.0 be installed and run side-by-side with QGIS 2.x?

Short answer Yes Slightly longer answer The two applications save all their settings in different places and when they use different versions of the same library, these library versions can safely ...
Matthias Kuhn's user avatar
27 votes
Accepted

Changing column order with Table Manager Plugin in QGIS 3

Yes, you can use the "Refactor fields" tool from the Toolbox:
RafDouglas C. Tommasi's user avatar
26 votes
Accepted

Seeking AutoTrace/Trace Tool in QGIS 3?

The tracing tool has moved to the Snapping toolbar:
Joseph's user avatar
  • 75.3k
25 votes

Will the OpenLayers Plugin be updated for QGIS3?

Qgis 3 has a new plugin architecture so plugins are not immediately compatible with this new version. From the source repository it seems they wait for the official release of QGIS 3 to produce a new ...
Billy34's user avatar
  • 691
24 votes

Was QgsMapLayerRegistry being removed in QGIS 3?

You can do the same thing easily just do: QgsProject.instance().addMapLayer(your_Qgs_whaterver_Layer) for more details, see the following: https://qgis.org/api/classQgsProject.html#...
Abhijit Gujar's user avatar
24 votes
Accepted

Setting layer transparency in QGIS 3

You have to click on the layer rendering arrow (see the bottom of your second image) to access the slider and other option. in QGIS 2 it was on by default, in QGIS 3 it's off by default...
J.R's user avatar
  • 15.3k
24 votes
Accepted

How to fix QGIS being extremely slow?

So after taking into account what ThomasG77 told me to fix my QGIS, I've found that indeed creating a new profile fixes the slowdown, but I didn't want to have to create a new profile everytime it got ...
EnGIsNowhere's user avatar
24 votes
Accepted

Quickly review all the features one by one in QGIS

You can use the following script. It creates a toolbar containing Zoom Previous, Zoom Next actions and ID text box. When you click the action it zooms to next/previous feature (in active layer) with ...
Kadir Şahbaz's user avatar
23 votes
Accepted

"invert" color ramp in QGIS 3.0

It moved into the Color ramp drop-down menu. Enjoy! :)
Kazuhito's user avatar
  • 30.5k
22 votes
Accepted

Reading and setting label settings in PyQGIS

I found the answer for QGIS 3.0: layer_settings = QgsPalLayerSettings() text_format = QgsTextFormat() text_format.setFont(QFont("Arial", 12)) text_format.setSize(12) buffer_settings = ...
Kezah's user avatar
  • 856
22 votes

Setting layer transparency in QGIS 3

As an alternative option, you can open Legend tab and select Opacity slider widget. It will add an opacity slider in the Layers panel.
Kazuhito's user avatar
  • 30.5k
22 votes

Map display not filling window in QGIS on Mac?

I have the same (OS X 10.11, Qgis 3.2.2). What I'm doing is opening a new map window (View / New Map View), anchoring it to the top or side edge, resizing it and closing it again. This causes the ...
Agustín Rudas's user avatar
22 votes
Accepted

Buffering only sides of polygons in QGIS

Starting with a polygon (or several polygons): Run the "Polygons to Lines": Then "Explode lines". This won't look any different but if you enable "Show feature count" ...
Spacedman's user avatar
  • 62.7k
22 votes
Accepted

Candy Cane Style Symbology (Christmas)

The symbol is from multiple parts: A white 5mm Simple Line as base, using a round join style. On top of that: A Hashed Line using an interval of 6mm and a hash length of 3mm which is drawing a red ...
bugmenot123's user avatar
  • 10.8k
21 votes

Adding OpenStreetMap WMS layer to QGIS

There is now a plugin called QuickMapServices. It provides map layers really easily : Add the plugin Chose the plugin from the Plugins Window Add a layer Now You can add OpenStreetMap layer from ...
Francois's user avatar
  • 311
21 votes
Accepted

"AttributeError: 'QgisInterface' object has no attribute 'legendInterface'" in PyQGIS 3

You could just replace layers = iface.legendInterface().layers() with layers = [layer for layer in QgsProject.instance().mapLayers().values()]
Joseph's user avatar
  • 75.3k
21 votes
Accepted

Enable 'on the fly' CRS transformation in QGIS 3?

In QGIS 3.0, on-the-fly (OTF) reprojection is always enabled (https://issues.qgis.org/issues/11644).
ndawson's user avatar
  • 27.4k

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