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".
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/...
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 ...
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 ...
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.
...
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.
...
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
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 ...
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 ...
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, ...
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...
...
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 @...
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 ...
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 ...
27
votes
Accepted
Changing column order with Table Manager Plugin in QGIS 3
Yes, you can use the "Refactor fields" tool from the Toolbox:
26
votes
Accepted
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 ...
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#...
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...
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 ...
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 ...
23
votes
Accepted
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 = ...
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.
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 ...
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" ...
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 ...
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 ...
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()]
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).
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
qgis-3 × 4367qgis × 1569
pyqgis × 1102
qgis-plugins × 400
pyqgis-3 × 339
qgis-processing × 304
python × 191
coordinate-system × 150
print-composer × 144
raster × 142
symbology × 139
labeling × 138
qgis-modeler × 130
polygon × 105
attribute-table × 95
layers × 81
line × 78
fields-attributes × 76
shapefile × 73
expression × 72
point × 71
postgis × 69
field-calculator × 66
pyqt5 × 64
installation × 61