Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [qgis-3.0]

For questions about Version 3.0 of QGIS

53
votes
13answers
18k views

Seeking QGIS tutorials and web resources?

I wish to familiarize myself with the capabilities of QGIS up to and beyond QGIS version 3.0. Can you recommend some good web resources and tutorials that would show me QGIS' capabilities? I am ...
12
votes
1answer
2k views

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

I'm writing a script which must work outside of QGIS GUI. I call some API functions from qgis.core but I'd like to use the processing plugin. I'm able to import processing with sys.path.append() but ...
46
votes
6answers
53k views

Will the OpenLayers Plugin be updated for QGIS3?

Upon searching for the OpenLayers plugin, it shows that this plugin is incompatible with version QGIS 3.0. Will this be updated? Is there another way to add Google imagery or any other aerial imagery ...
6
votes
4answers
4k views

Installing QGIS3 on Ubuntu 16.04 Xenial: dependency problem

I am trying to install QGIS3 on my Ubuntu 16.04 Xenial. Following the instructions on the QGIS Website I added the following lines to my sources.list: deb https://qgis.org/ubuntugis xenial main deb-...
13
votes
2answers
4k views

Is QgsMapLayerRegistry removed in QGIS3?

Is QgsMapLayerRegistry going to be availabe in pyqgis with QGIS3 When I typed it into the QGIS python console (2.99), python seems to recognize it because it auto-completes qgis.core....
7
votes
1answer
2k views

Using processing.runalg in QGIS 3

I try to create a common extent for rasters in QGIS 2.99. Here is my script: import processing processing.runalg("script:unifyextentandresolution", "/qgis_data/rasters/Image2.tif; ...
5
votes
1answer
3k views

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

In QGIS 2.8 there is a clear button to 'enable on the fly CRS transformation' in the "project properties" for a new project. Seen here: But in QGIS 3.0, I cannot find it to save my life. Can ...
6
votes
1answer
313 views

Why “Export as Python script” button is unaccessible in QGIS 3.0/3.1 Modeler by default?

In QGIS 3.0, "Processing Modeler" window has no "Export as Python script" button unlike QGIS 2.x. If you look at the codes (in DlgModeler.ui and ModelerDialog.py files), you see the code lines ...
3
votes
2answers
596 views

Why does QGIS 3.2 “native:extractvertices” algorithm not work properly in standalone script?

I execute standalone python code (almost identical to the code in the accepted answer): The output file does not contain data, and I get this error message: Warning 6: Normalized/laundered field ...
9
votes
2answers
1k views

Will core functions in QGIS exploit multi-threading?

After reading Enabling multithreaded processing in QGIS?, I was wondering if QGIS 2.6 will include this when running various processes. I checked online and I could only find that multi-threaded ...
8
votes
2answers
2k views

QGIS 3.0 Error when calling processing.runalg()

Hi everyone I'm in some way new with PyQGIS and I've been trying to run a script in QGIS 3.0 without success (it prefectly ran in 2.18) and always get the same error: AttributeError: module '...
17
votes
2answers
6k views

Setting print layout to portrait using QGIS 3?

I can't get the print layout to appear in portrait. It opens in landscape and Layout/Page Setup... allows for portrait, but the layout canvas remains in landscape. In 2.18 the "Composition" Panel ...
6
votes
2answers
2k views

How to compile QtDesigner user interface (.ui) and resource (.qrc) files with QGIS 3 on Windows?

I tried to transpose the QGIS 2 process with no success. I first had to edit C:\Program Files\QGIS 2.99\etc\ini\python-core.bat which contains references to Python27 instead of Python36. I run C:\...
9
votes
2answers
6k views

Unable to snap vertices and segment in QGIS 3.0

I'm unable to snap 2 polygons in QGIS 3.0. I tried snapping 2 polygons from the same layer and also 2 polygons from different layers. I ensured that snapping is enabled in the Settings>>Options>>...
4
votes
2answers
666 views

Photo Map tip in QGIS 3 on windows

How do you display a photo map tip in QGIS 3 on Windows? As a new user I'm not sure if this is my lack of experience or a bug, so I've tried to simplify it as far as I can: This is the contents of ...
22
votes
5answers
10k views

Installing QGIS3 on Mac?

Kyngchaos installer is not finding python3. I installed python3 using HomeBrew and is not located at /usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/bin/python3.6 How do I ...
12
votes
1answer
2k views

Writing a python processing script with Qgis 3.0

Following the update to Qgis 3.0, it has become very difficult to find any information concerning the writing of processing scripts in Qgis 3.0. @Underdark (see here ) has provided a basis for the ...
20
votes
1answer
6k views

QGIS 3 Plugin folder location

I am searching for default location for QGIS 3 Plugin folder I checked here but could not find : C:\Program Files\QGIS 3.0\apps\qgis\python\plugins C:\Users\Abhijit.qgis2 (cannot locate .qgis3, ...
13
votes
2answers
5k views

How does the QGIS3 vertex editor work?

I'm having two main problems: When hovering over a map with multiple layers, even though I only have one layer editable and visible, I am seeing all the nodes of all layers show up as red dots when ...
11
votes
2answers
2k views

Save and load user profiles in QGIS

Is there a way use a configuration file, maybe .ini to load in the relevant settings for QGIS when it is setup, maybe to share with various people? Plugins installed and plugin repositories filled in ...
15
votes
3answers
973 views

Controlling rule-based labelling using PyQGIS?

Following on from this question: How to turn on/off all labels of all layers in QGIS, OP mentioned in his comment that he uses rule-based labels. I tried searching online as to how these types of ...
8
votes
1answer
660 views

Missing “New 3D Map View” in QGIS3

I was really curious about the new 3D-Map-View function of QGIS3. Now, finally, QGIS3 just released but I'm missing the 3D Map View! It should be at View -> New 3D Map View but it isn't.(https://...
6
votes
1answer
350 views

Using QGIS 2.x processing model in QGIS 3.0?

Is it somehow possible to convert a QGIS 2.x processing model (*.model) to a *.model3 so i can run them in QGIS 3.0 without having to redo mine from scratch?
3
votes
1answer
835 views

Exporting processing modeler as Python script in QGIS 3.0?

How do I export my processing modeler as .py so that I can edit its code? This does not seem as intuitive as previous versions.
8
votes
4answers
2k views

Getting QGIS 2.x python code to work in QGIS 3.x? object has no attribute 'legendInterface' problem

The following piece of code works well in QGIS 2.x, however it does not work in QGIS 3.x. myDir = 'd:/work/output_folder/' layers = iface.legendInterface().layers() pipe = QgsRasterPipe() for layer ...
4
votes
4answers
639 views

Where to track the status of Processing in QGIS 2.99?

I've understood that the processing algs are going to be implemented in the master version of qgis. What is the best way to track the status of which algs that are implemented and the plan for the ...
2
votes
2answers
1k views

Set layer visibility using QgsMapCanvasLayer in QGIS 3?

How should one migrate code using QgsMapCanvasLayer to set layer visibility? The QGIS3 API break page didn't say that QgsMapCanvasLayer is removed or replaced by another class. Yet, it is not listed ...
1
vote
1answer
111 views

Distance Matrix with 2 point shapefiles and one street network

I have two point shapefiles (start/destination) and one sort of street network shapefile. I would like a to create a distance matrix from the start-shapefile to the destination points, using the ...
5
votes
1answer
646 views

Processing framework input variables from QGIS-2 not working in QGIS-3

A simple script created within the QGIS 2.18 processing toolbox: ##example=string print example Upon running would produce and input box in a window with a run button: Once executed would produce ...
4
votes
1answer
442 views

QGIS changing canvas CRS defaults to imported layer

I am having trouble setting the mapCanvas CRS in QGIS 3.0 using Python. I am effectively trying to replicate what happens when you change the CRS by clicking on the bottom-right corner of the Canvas ...
7
votes
2answers
3k views

Installing LAStools in QGIS 3.0?

I don't know how to install LAStools in QGIS 3.0. In QGIS 2.18, you can incorporate it as a provider in Processing -> Options-> Tools for LiDAR data (for example: Installing LAStools in QGIS 2.4?). ...
3
votes
1answer
269 views

Real centroid plugin QGIS3

I am looking to use realcentroid where I'm assuming it puts all points within the polygons rather than the tool in QGIS Vector -> geom -> centroid tool, which in my result some bendier polygons have ...
2
votes
3answers
2k views

QGIS 3.0 XYZ Tile 'OpenStreetMap' Text is Too Small to See

I installed QGIS 3.0 (standalone 64 bit installer) and added the standard XYX Tile layer 'OpenStreetMap' that was part of the install. It loads fine except the text is too small to see. Not sure if ...
2
votes
2answers
366 views

Usage of QgsTask and QgsTaskManager

I'm trying to test the new QgsTask and QgsTaskManager, I found some examples in the PullRequest in github. I modified it slightly and added a print(i) in the code bellow: from qgis.core import ...
10
votes
1answer
841 views

What is the new alglist and alghelp in QGIS 3.0 Processing?

Accessing the new QGIS 3.0 processing scripts through the Python console is proving to be a challenge for me, especially since the old processing.alglist() and processing.alghelp() commands appear to ...
8
votes
2answers
1k views

processing.getObject() in QGIS 3

It seems that processing.getObject() is no longer available in QGIS. from PyQt5.QtCore import * from qgis.core import * #... layer = processing.getObject(layer) # -> ...module 'processing' has no ...
5
votes
3answers
712 views

PyQGIS gives TypeError: QgsExpression.prepare(): argument 1 has unexpected type 'QgsFields'?

This question is very related to the unanswered Retrieve features from QgsFieldExpressionWidget pyqgis I have a layer and I've build a QgsExpression that involves a field of that layer. What I'm ...
4
votes
1answer
1k views

Importing paths for QGIS 3 standalone scripts

For QGIS 2.x, I used the batch file provided in the answer for this post in the OSGeo4W Shell to run standalone scripts: Problem with import qgis.core when writing a stand-alone PyQGIS script The ...
2
votes
2answers
180 views

Fill with @row_number based on group field in QGIS 3?

Is there a way to fill the table with a row number so that count will restart as new group (identified by a separate column) starts? As a result, "row number" column will restart the count when the ...
2
votes
1answer
33 views

Labels not rendering at appropriate resolution for a single polygon across different layers

I have re-used a single geometry layer and joined it with a lot of tables for regional maps of different variables. Now, I suddenly have an issue with labels for one of the polygons.The issue is ...
1
vote
1answer
88 views

Constructing Voronoi Polgon and Applying Nearest neigbour in it

I am learning QGIS 3.XX and currently working on Voronoi Polygons. I have three layers Point layer Building Layer Population CSV file. These points layer are basically water tanks and building ...
1
vote
0answers
84 views

What happens when you press cancel on a QgsTask?

I'm trying to get the "cancel" to work for my QgsTask, I have created a simple example to illustrate, When I press the "x" i want it to print reslut: None values: False, hence it just finishes without ...
1
vote
1answer
306 views

Draw rectangle in QGIS 3?

I want to draw a perfect rectangle. How can I do that with QGIS v.3+? Here is a possible way to draw a rectangle in old QGIS versions. Is there a similar solution for the latest QGIS version?
1
vote
1answer
87 views

Error in executing Voronoi polygon algorithm

I am trying to create Voronoi polygon on point layer of my project. I need to save this new layer as .shp file. The following is the code I have written in Python console, using QGIS 3.0 import ...
10
votes
4answers
4k views

Installing QGIS 3 on Ubuntu?

QGIS 3.0 is released. However, in the download page, there does not seem to be an entry (for Ubuntu (16.04) at least): Latest Release 2.18.x Las Palmas (new LTR) https://qgis.org/...
5
votes
2answers
981 views

Using processing.runandload in QGIS 3

I want to create and elevation hillshade but I found the script for QGIS 2.18. What should I use instead of processing.runandload? Here is my script on QGIS 2.99 python console: import processing ...
9
votes
6answers
5k views

QGIS 3.0 can't load plugin processing, no module named 'osgeo', on Manjaro Linux

I have installed QGIS3 from the AUR package, as well as all optional dependencies: https://aur.archlinux.org/packages/qgis/ However, when launching, I receive the following error: Couldn't load ...
9
votes
1answer
403 views

Pause Labeling in QGIS?

Is it possible to pause/stop labeling temporarily in QGIS like in Arcmap for all layers at once? The label toolbar offers no solution.
2
votes
1answer
225 views

Label display based on cluster size

In QGIS 3.0, I am using the new clustering style. I want to display labels based on cluster size. What I tried in expression field: case when @cluster_size>5 then "label_name" end
7
votes
2answers
5k views

How to install QGIS-3 (2.99) on Ubuntu 17.10?

I tried to install QGIS 3 (2.99) on LUbuntu 17.10, but run into errors. I tried to follow/adapt the instructions on QGIS website. If I add artful entries to /etc/apt/sources.list: deb http://ppa....