Linked Questions

15
votes
2answers
10k views

Accessing `processing` with Python?

I want to access the explode lines function in Python outside of QGIS from a standalone script. What module do I have to load in order to use it? How can I access processing? from qgis.core import ...
4
votes
2answers
1k 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 ...
4
votes
1answer
1k views

Failed to create memory layers in QGIS application on Linux

I have written a python class which reads properties of map layers from an XML file and creates appropriate memory layers. I have developed and tested this code with QGIS 2.8.2 on a Windows 7 machine (...
4
votes
2answers
476 views

pyQGIS 3.0 script not running with processing import

I have problems using version 3 of QGIS with Python 3. I followed different tutorials like this one : how to use pyqgis processing runalg clipvectorsbypolygon But it seems to be working only with ...
3
votes
1answer
530 views

How to adjust Python code from PyQGIS 2 to 3 to create a buffer on a shapefile

I am starting to learn PyQGIS and following tutorials online. However, I have QGIS 3.0 and most of the tutorials use QGIS version 2. I am trying to do a buffer on a point shapefile, but only have the ...
3
votes
2answers
223 views

Call QGIS geoprocessing tools from command line (terminal, bash-script)

Is there any possibility to call tools found in the QGIS processing toolbox from the command line, other than using python? It is my understanding that if you use any GDAL tools, the QGIS gui is ...
0
votes
1answer
311 views

Using processing algorithm 'native:hublines' in standalone QGIS application

I am trying to make hub lines between two vector files. I succeed manually to do that (in QGIS 3.0) and in a PyQGIS 2.18. But my code doesn't work in PyQGIS 3.0. Here it is: output = '/home/user/...
3
votes
1answer
286 views

QGIS 3.4/3.6 standalone script

So, I have this little script (which I would like to build more upon). I was able to make it work in QGIS3.2 (just change all paths and environments to 3.2) but now, after deleting QGIS 3.2 and ...
4
votes
1answer
257 views

Updating Algorithm list in pyqgis3?

I am attempting to run a union operation in a standalone pyqgis script and I'm receiving this error: Algorithm qgis:union not found The union operation fails with this code: params = { 'INPUT' ...
2
votes
1answer
371 views

Import Processing Toolbox in PyQGIS 3.0

I am trying to import processing toolbox in my standalone PyQGIS application. But I am in trouble. I follow this instruction: Importing QGIS Processing in stand-alone python script? and this Using ...
1
vote
1answer
220 views

PyQGIS scripts outside of QGIS GUI running processing algorithms from GRASS provider

I'm writing a script that I would like to work outside of QGIS GUI. The script uses the processing algorithm standalone just fine for the native algorithms, however I am experiencing errors when ...
1
vote
1answer
209 views

Running qgis processing algorithm in qgis plugin

I try to run a qgis native algorithm in a qgis plugin and I can't make it work. I follow espescially this answer on a GIS SE question. I will add my whole code at the end of the question, since I do ...
1
vote
1answer
107 views

Contour Plugin Processing Algorithm is not detected in PyQGIS 3 Standalone

I was trying to access processing algorithm using PyQGIS 3 on a standalone script. I found this solution and tried it but when I list the processing algorithm using print(QgsApplication....
0
votes
0answers
132 views

Can the tools in QGIS be used in python code?

Can the tools in QGIS, e.g. Vector>>>Geometry Tool>>>Extract Vertices be used in Python code? For example, to run through a shapefile to get all the points for for polygons within ...
0
votes
0answers
64 views

Developing and desirably debugging pygis-3 processing scripts?

The writing of processing scripts in QGIS3 changed substantially. On the basis of many tutorials/blog posts and answers on this site I got a running processing script in QGIS3. But it was, for a lousy ...

15 30 50 per page