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

1
vote
0answers
129 views

Running algorithms in PyQGIS (QGIS 3) [duplicate]

I'd like to use PyQGIS to run algorithms from the toolbox in QGIS 2.99 but runalg does not seem to be known. For instance, the following would generate a grid in QGIS 2.18: processing.runalg('qgis:...
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
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 ...
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....
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:\...
6
votes
3answers
3k views

Install QGIS3 (QGIS-dev) on MacOSX

As it mentioned on the official doc we can download a nightly build for QGIS-dev-2.99. I did, but the version is actually outdated QGIS_2-99-0_2016-09-20_cd1d44b.dmg it's the 2.15 dev version instead ...
11
votes
3answers
2k views

Make QGIS python plugin for both versions 2.x and 3.x?

I am in the process of migrating a QGIS python plugin from QGIS 2 to QGIS 3, and browsing various resources. It's not clear if it's possible to have the plugin compatible with both versions or if it'...
4
votes
1answer
139 views

PostGIS table shows twice in QGIS Browser panel

I've observed for a while that for many (but not all) of my tables, QGIS 3 (2.99) shows the same table name twice in the Browser Panel on the left, when I expand my PostGIS data source. The first ...
3
votes
1answer
965 views

Will QGIS 2.99 and QGIS 3.0 always be the same?

For a dev, QGIS 2.99.0-Master is the next QGIS version which will be released. that why http://doc.qgis.org/api/index.html is so important to make the bridge. But it is simple as that ? What will ...
2
votes
1answer
681 views

Loading layer and check for polygon WkbType in QGIS 3.0

I am trying to edit a plugin to work in QGIS 3.0 and want to check for layer is polygon. for layer in layers: if layer.type() == QgsMapLayer.VectorLayer and layer.wkbType() == Qgis.Polygon: ...
4
votes
2answers
373 views

Making selected lines thicker to see overlapped features in QGIS?

I have a bunch of overlapped lines. Some of the shorter ones are covered by others and are difficult to see. I am trying to see those lines by highlighting them via selection in the attribute table. ...
2
votes
0answers
230 views

Algorithm provider not work in qgis3

I am working on qgis plugin bufferbypercentage. # Import the PyQt and QGIS libraries from PyQt5.QtCore import * from PyQt5.QtGui import * from qgis.core import * # Initialize Qt resources ...
1
vote
1answer
193 views

How to 'Extract by location' in QGIS 2.99.0?

Once in the good old times of QGIS 2.14.17, there was an 'extract by location' algorithm: In QGIS 2.99.0 neither searching for 'extract' nor for 'location' delivers such result: (Oops, NO hit when ...
4
votes
1answer
120 views

QGIS 2.99.0-149 modeler inputs Feature Source vs. Vector Layer

In QGIS 2.99.0 modeler, there is a obviously a new input type called Feature Source, wich does what Vector Layer did in previous versions (but Vector Layer is still available): New behaviour, as can ...
1
vote
1answer
183 views

QGIS 2.99.0 Providers not available in processing options

I just wanted to have a deeper look at the graphical modeller in QGIS 2.99.0-147, and I stumbled upon the providers not available under Settings|Options...|Processing|Providers as shown in the ...
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 ...
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 ...
2
votes
1answer
770 views

QGIS3 plugin missing/disappearing?

I wrote a toy plugin for QGIS-3 (2.99 Ubuntu 16.04), which worked for quite a while. But after a recent upgrade, the plugin disappeared from the QGIS toolbar while the rest of QGIS seem to be working ...
0
votes
1answer
897 views

How to select features (by polygon) from multiple layers in QGIS?

I was trying to export features from multiple layers in a common region into new shapefiles after selecting them using the "Selection By Polygon" tool/button. However, the "Selection by Polygon" tool ...
1
vote
1answer
1k views

`NameError: name `qgis` is not defined` in QGIS Plugins

In the QGIS (2.99) Python Console, the name/variable qgis seems to be automatically defined. However, in writing a plugin, there is an error whenever I refer to qgis. For example, in I have qgis....
1
vote
1answer
270 views

Combining a MapTool and a QGIS plugin toolbar?

This is a follow-up question to my question about how to build a QGIS plugin and link a textbox to the plugin toolbar (Adding textbox to QGIS plugin toolbar?). In addition to that, I was wondering ...
5
votes
2answers
565 views

Adding textbox to QGIS plugin toolbar?

I am trying to write a plugin with a input control such as textbox on it. I looked around quite a bit for building plugins. But I can only find examples of how to build a plugin with buttons/icons in ...
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....
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 ...
7
votes
1answer
1k views

How to turn on the 'on-the-fly' functionality with PyQGIS?

Before QgsMapRenderer was deprecated if we wanted to activate OTF we used code like this: canvas = QgsMapCanvas() canvas.mapRenderer().setProjectionsEnabled(True) Currently, QgsMapRenderer is ...
1
vote
1answer
146 views

Retrieving features from QgsFieldExpressionWidget using PyQGIS?

I'm working on a plugin for QGIS 3 and I'm fighting with the QgsFieldExpressionWidget widget. I don't know how how to evaluate the expression added in the box and get the corresponding features as a ...
1
vote
1answer
334 views

Processing runalg gdalogr Error: Algorithm not found

I can not use the "gdalogr"-Processing in QGIS 3.0 (2.99) QGIS code revision 1182816 import processing processing.runalg('gdalogr:convertformat','', 0, '' ,'') Error: Algorithm not found Does ...
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 ...
3
votes
0answers
133 views

Will core functionality in QGIS 3.0 exploit multi-threading? [duplicate]

As mentioned in a recent QGIS blog by Tim Sutton, the major changes to QGIS 3.0 are: Updating Qt4 to Qt5 Updating PyQt4 to PyQt5 Updating Python 2.7 to Python 3 Improving the QGIS API Also, a couple ...
14
votes
1answer
588 views

How to control the arrow length of vector field markers in the layer list legend?

In QGIS 2.14.5 LTR (and recently in QGIS 3.0) I've set up a beautiful map design with a graduated renderer and vector field markers for each value range (arrow length is directly proportional to ...
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 ...
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 ...
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 ...